Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ParticleHPLegendreTable Class Reference

#include <G4ParticleHPLegendreTable.hh>

Public Member Functions

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

Detailed Description

Definition at line 39 of file G4ParticleHPLegendreTable.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPLegendreTable()

G4ParticleHPLegendreTable::G4ParticleHPLegendreTable ( )
inline

Definition at line 42 of file G4ParticleHPLegendreTable.hh.

43 {
44 nCoeff=0;
45 theCoeff = 0;
46 theRep = 0;
47 theEnergy = 0.0;
48 theTemp = 0.0;
49 }

◆ ~G4ParticleHPLegendreTable()

G4ParticleHPLegendreTable::~G4ParticleHPLegendreTable ( )
inline

Definition at line 50 of file G4ParticleHPLegendreTable.hh.

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

Member Function Documentation

◆ GetCoeff()

G4double G4ParticleHPLegendreTable::GetCoeff ( G4int  l)
inline

Definition at line 98 of file G4ParticleHPLegendreTable.hh.

98{return theCoeff[l];}

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

◆ GetEnergy()

◆ GetManager()

const G4InterpolationManager & G4ParticleHPLegendreTable::GetManager ( )
inline

Definition at line 103 of file G4ParticleHPLegendreTable.hh.

103{return theManager;}

◆ GetNumberOfPoly()

◆ GetRepresentation()

G4int G4ParticleHPLegendreTable::GetRepresentation ( )
inline

Definition at line 102 of file G4ParticleHPLegendreTable.hh.

102{return theRep;}

Referenced by G4ParticleHPDiscreteTwoBody::Sample().

◆ GetTemperature()

G4double G4ParticleHPLegendreTable::GetTemperature ( )
inline

Definition at line 100 of file G4ParticleHPLegendreTable.hh.

100{return 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;
87 theCoeff = new G4double[nCoeff];
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

◆ 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)

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;
59 theManager = aSet.theManager;
60 nCoeff = aSet.nCoeff;
61 if(theCoeff!=0) delete [] theCoeff;
62 theCoeff = new G4double[nCoeff];
63 for(G4int i=0; i<nCoeff; i++)
64 {
65 theCoeff[i] = aSet.theCoeff[i];
66 }
67 }
68 }

◆ SetCoeff()

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

Definition at line 95 of file G4ParticleHPLegendreTable.hh.

95{theCoeff[l]=coeff;}

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)

Referenced by G4ParticleHPLegendreStore::SetEnergy().

◆ SetRepresentation()

void G4ParticleHPLegendreTable::SetRepresentation ( G4int  aRep)
inline

Definition at line 96 of file G4ParticleHPLegendreTable.hh.

96{theRep = aRep;}

Referenced by G4ParticleHPDiscreteTwoBody::Init().

◆ SetTemperature()

void G4ParticleHPLegendreTable::SetTemperature ( G4double  temp)
inline

Definition at line 94 of file G4ParticleHPLegendreTable.hh.

94{ theTemp = temp; }

Referenced by G4ParticleHPLegendreStore::SetTemperature().


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