Geant4 11.2.2
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 40 of file G4ParticleHPLegendreTable.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPLegendreTable()

G4ParticleHPLegendreTable::G4ParticleHPLegendreTable ( )
inline

Definition at line 43 of file G4ParticleHPLegendreTable.hh.

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

◆ ~G4ParticleHPLegendreTable()

G4ParticleHPLegendreTable::~G4ParticleHPLegendreTable ( )
inline

Definition at line 51 of file G4ParticleHPLegendreTable.hh.

51{ delete[] theCoeff; }

Member Function Documentation

◆ GetCoeff()

G4double G4ParticleHPLegendreTable::GetCoeff ( G4int l)
inline

Definition at line 97 of file G4ParticleHPLegendreTable.hh.

97{ return theCoeff[l]; }

◆ GetEnergy()

G4double G4ParticleHPLegendreTable::GetEnergy ( )
inline

Definition at line 98 of file G4ParticleHPLegendreTable.hh.

98{ return theEnergy; }

Referenced by G4ParticleHPDiscreteTwoBody::Sample().

◆ GetManager()

const G4InterpolationManager & G4ParticleHPLegendreTable::GetManager ( )
inline

Definition at line 102 of file G4ParticleHPLegendreTable.hh.

102{ return theManager; }

◆ GetNumberOfPoly()

G4int G4ParticleHPLegendreTable::GetNumberOfPoly ( )
inline

Definition at line 100 of file G4ParticleHPLegendreTable.hh.

100{ return nCoeff; }

Referenced by G4ParticleHPDiscreteTwoBody::Sample().

◆ GetRepresentation()

G4int G4ParticleHPLegendreTable::GetRepresentation ( )
inline

Definition at line 101 of file G4ParticleHPLegendreTable.hh.

101{ return theRep; }

Referenced by G4ParticleHPDiscreteTwoBody::Sample().

◆ GetTemperature()

G4double G4ParticleHPLegendreTable::GetTemperature ( )
inline

Definition at line 99 of file G4ParticleHPLegendreTable.hh.

99{ return theTemp; }

◆ Init() [1/2]

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

Definition at line 82 of file G4ParticleHPLegendreTable.hh.

83 {
84 nCoeff = n + 1;
85 theCoeff = new G4double[nCoeff];
86 for (G4int i = 0; i < nCoeff; i++)
87 theCoeff[i] = 0;
88 theCoeff[0] = 1.;
89 theEnergy = e;
90 // G4cout << "G4ParticleHPLegendreTable::Init called "<<e<<" "<<n<<G4endl;
91 }
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 69 of file G4ParticleHPLegendreTable.hh.

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

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

◆ operator=()

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

Definition at line 53 of file G4ParticleHPLegendreTable.hh.

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

◆ SetCoeff()

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

Definition at line 94 of file G4ParticleHPLegendreTable.hh.

94{ theCoeff[l] = coeff; }

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

◆ SetEnergy()

void G4ParticleHPLegendreTable::SetEnergy ( G4double energy)
inline

Definition at line 92 of file G4ParticleHPLegendreTable.hh.

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

◆ SetRepresentation()

void G4ParticleHPLegendreTable::SetRepresentation ( G4int aRep)
inline

Definition at line 95 of file G4ParticleHPLegendreTable.hh.

95{ theRep = aRep; }

Referenced by G4ParticleHPDiscreteTwoBody::Init().

◆ SetTemperature()

void G4ParticleHPLegendreTable::SetTemperature ( G4double temp)
inline

Definition at line 93 of file G4ParticleHPLegendreTable.hh.

93{ theTemp = temp; }

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