Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 ( )
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 ( )
inline

Definition at line 50 of file G4ParticleHPLegendreTable.hh.

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

Member Function Documentation

G4double G4ParticleHPLegendreTable::GetCoeff ( G4int  l)
inline

Definition at line 98 of file G4ParticleHPLegendreTable.hh.

98 {return theCoeff[l];}

Here is the caller graph for this function:

G4double G4ParticleHPLegendreTable::GetEnergy ( )
inline

Definition at line 99 of file G4ParticleHPLegendreTable.hh.

99 {return theEnergy;}

Here is the caller graph for this function:

const G4InterpolationManager& G4ParticleHPLegendreTable::GetManager ( )
inline

Definition at line 103 of file G4ParticleHPLegendreTable.hh.

103 {return theManager;}
G4int G4ParticleHPLegendreTable::GetNumberOfPoly ( )
inline

Definition at line 101 of file G4ParticleHPLegendreTable.hh.

101 {return nCoeff;}

Here is the caller graph for this function:

G4int G4ParticleHPLegendreTable::GetRepresentation ( )
inline

Definition at line 102 of file G4ParticleHPLegendreTable.hh.

102 {return theRep;}

Here is the caller graph for this function:

G4double G4ParticleHPLegendreTable::GetTemperature ( void  )
inline

Definition at line 100 of file G4ParticleHPLegendreTable.hh.

100 {return theTemp;}

Here is the caller graph for this function:

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  }
int G4int
Definition: G4Types.hh:78
void SetCoeff(G4int l, G4double coeff)
static constexpr double eV
double G4double
Definition: G4Types.hh:76
void Init(std::istream &aDataFile)

Here is the call graph for this function:

Here is the caller graph for this function:

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  }
int G4int
Definition: G4Types.hh:78
const G4int n
double G4double
Definition: G4Types.hh:76
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  }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76
void G4ParticleHPLegendreTable::SetCoeff ( G4int  l,
G4double  coeff 
)
inline

Definition at line 95 of file G4ParticleHPLegendreTable.hh.

95 {theCoeff[l]=coeff;}

Here is the caller graph for this function:

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)

Here is the call graph for this function:

Here is the caller graph for this function:

void G4ParticleHPLegendreTable::SetRepresentation ( G4int  aRep)
inline

Definition at line 96 of file G4ParticleHPLegendreTable.hh.

96 {theRep = aRep;}

Here is the caller graph for this function:

void G4ParticleHPLegendreTable::SetTemperature ( G4double  temp)
inline

Definition at line 94 of file G4ParticleHPLegendreTable.hh.

94 { theTemp = temp; }

Here is the caller graph for this function:


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