Geant4-11
Public Member Functions | Private Attributes
G4ParticleHPLegendreTable Class Reference

#include <G4ParticleHPLegendreTable.hh>

Public Member Functions

 G4ParticleHPLegendreTable ()
 
G4double GetCoeff (G4int l)
 
G4double GetEnergy ()
 
const G4InterpolationManagerGetManager ()
 
G4int GetNumberOfPoly ()
 
G4int GetRepresentation ()
 
G4double GetTemperature ()
 
void Init (G4double e, G4int n)
 
void Init (std::istream &aDataFile)
 
void operator= (const G4ParticleHPLegendreTable &aSet)
 
void SetCoeff (G4int l, G4double coeff)
 
void SetEnergy (G4double energy)
 
void SetRepresentation (G4int aRep)
 
void SetTemperature (G4double temp)
 
 ~G4ParticleHPLegendreTable ()
 

Private Attributes

G4int nCoeff
 
G4doubletheCoeff
 
G4double theEnergy
 
G4InterpolationManager theManager
 
G4int theRep
 
G4double theTemp
 

Detailed Description

Definition at line 39 of file G4ParticleHPLegendreTable.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPLegendreTable()

G4ParticleHPLegendreTable::G4ParticleHPLegendreTable ( )
inline

◆ ~G4ParticleHPLegendreTable()

G4ParticleHPLegendreTable::~G4ParticleHPLegendreTable ( )
inline

Definition at line 50 of file G4ParticleHPLegendreTable.hh.

50{if(theCoeff!=0) delete [] theCoeff;}

References theCoeff.

Member Function Documentation

◆ GetCoeff()

G4double G4ParticleHPLegendreTable::GetCoeff ( G4int  l)
inline

Definition at line 98 of file G4ParticleHPLegendreTable.hh.

98{return theCoeff[l];}

References theCoeff.

Referenced by G4ParticleHPLegendreStore::GetCoeff(), and G4ParticleHPLegendreStore::Integrate().

◆ GetEnergy()

G4double G4ParticleHPLegendreTable::GetEnergy ( )
inline

◆ GetManager()

const G4InterpolationManager & G4ParticleHPLegendreTable::GetManager ( )
inline

Definition at line 103 of file G4ParticleHPLegendreTable.hh.

103{return theManager;}

References theManager.

◆ GetNumberOfPoly()

G4int G4ParticleHPLegendreTable::GetNumberOfPoly ( )
inline

◆ GetRepresentation()

G4int G4ParticleHPLegendreTable::GetRepresentation ( )
inline

Definition at line 102 of file G4ParticleHPLegendreTable.hh.

102{return theRep;}

References theRep.

Referenced by G4ParticleHPDiscreteTwoBody::Sample().

◆ GetTemperature()

G4double G4ParticleHPLegendreTable::GetTemperature ( void  )
inline

Definition at line 100 of file G4ParticleHPLegendreTable.hh.

100{return theTemp;}

References theTemp.

Referenced by G4ParticleHPLegendreStore::GetTemperature().

◆ Init() [1/2]

void G4ParticleHPLegendreTable::Init ( G4double  e,
G4int  n 
)
inline

Definition at line 84 of file G4ParticleHPLegendreTable.hh.

85 {
86 nCoeff = n+1;
88 for(G4int i=0; i<nCoeff; i++) theCoeff[i] = 0;
89 theCoeff[0]=1.;
90 theEnergy = e;
91// G4cout << "G4ParticleHPLegendreTable::Init called "<<e<<" "<<n<<G4endl;
92 }
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85

References CLHEP::detail::n, nCoeff, theCoeff, and theEnergy.

◆ Init() [2/2]

void G4ParticleHPLegendreTable::Init ( std::istream &  aDataFile)
inline

Definition at line 70 of file G4ParticleHPLegendreTable.hh.

71 {
72 G4double eNeu, coeff;
73 G4int nPoly;
74 aDataFile >> eNeu >> nPoly;
75 eNeu *= CLHEP::eV;
76 Init(eNeu, nPoly);
77 for(G4int l=0; l<nPoly; l++)
78 {
79 aDataFile >> coeff;
80 SetCoeff(l+1, coeff);
81 }
82 }
void SetCoeff(G4int l, G4double coeff)
void Init(std::istream &aDataFile)
static constexpr double eV

References CLHEP::eV, Init(), and SetCoeff().

Referenced by G4ParticleHPLegendreStore::Init(), G4ParticleHPDiscreteTwoBody::Init(), Init(), and G4ParticleHPPhotonDist::InitAngular().

◆ operator=()

void G4ParticleHPLegendreTable::operator= ( const G4ParticleHPLegendreTable aSet)
inline

Definition at line 52 of file G4ParticleHPLegendreTable.hh.

53 {
54 if(&aSet!=this)
55 {
56 theRep = aSet.theRep;
57 theEnergy = aSet.theEnergy;
58 theTemp = aSet.theTemp;
60 nCoeff = aSet.nCoeff;
61 if(theCoeff!=0) delete [] theCoeff;
63 for(G4int i=0; i<nCoeff; i++)
64 {
65 theCoeff[i] = aSet.theCoeff[i];
66 }
67 }
68 }

References nCoeff, theCoeff, theEnergy, theManager, theRep, and theTemp.

◆ SetCoeff()

void G4ParticleHPLegendreTable::SetCoeff ( G4int  l,
G4double  coeff 
)
inline

Definition at line 95 of file G4ParticleHPLegendreTable.hh.

95{theCoeff[l]=coeff;}

References theCoeff.

Referenced by G4ParticleHPDiscreteTwoBody::Init(), Init(), and G4ParticleHPLegendreStore::SetCoeff().

◆ SetEnergy()

void G4ParticleHPLegendreTable::SetEnergy ( G4double  energy)
inline

Definition at line 93 of file G4ParticleHPLegendreTable.hh.

93{ theEnergy = energy; }
G4double energy(const ThreeVector &p, const G4double m)

References G4INCL::KinematicsUtils::energy(), and theEnergy.

Referenced by G4ParticleHPLegendreStore::SetEnergy().

◆ SetRepresentation()

void G4ParticleHPLegendreTable::SetRepresentation ( G4int  aRep)
inline

Definition at line 96 of file G4ParticleHPLegendreTable.hh.

96{theRep = aRep;}

References theRep.

Referenced by G4ParticleHPDiscreteTwoBody::Init().

◆ SetTemperature()

void G4ParticleHPLegendreTable::SetTemperature ( G4double  temp)
inline

Definition at line 94 of file G4ParticleHPLegendreTable.hh.

94{ theTemp = temp; }

References theTemp.

Referenced by G4ParticleHPLegendreStore::SetTemperature().

Field Documentation

◆ nCoeff

G4int G4ParticleHPLegendreTable::nCoeff
private

◆ theCoeff

G4double* G4ParticleHPLegendreTable::theCoeff
private

◆ theEnergy

G4double G4ParticleHPLegendreTable::theEnergy
private

◆ theManager

G4InterpolationManager G4ParticleHPLegendreTable::theManager
private

Definition at line 110 of file G4ParticleHPLegendreTable.hh.

Referenced by GetManager(), and operator=().

◆ theRep

G4int G4ParticleHPLegendreTable::theRep
private

◆ theTemp

G4double G4ParticleHPLegendreTable::theTemp
private

The documentation for this class was generated from the following file: