Geant4  10.02.p03
G4ParticleHPLegendreTable Class Reference

#include <G4ParticleHPLegendreTable.hh>

Collaboration diagram for G4ParticleHPLegendreTable:

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

Private Attributes

G4int theRep
 
G4double theEnergy
 
G4double theTemp
 
G4int nCoeff
 
G4InterpolationManager theManager
 
G4doubletheCoeff
 

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.

◆ ~G4ParticleHPLegendreTable()

G4ParticleHPLegendreTable::~G4ParticleHPLegendreTable ( )
inline

Definition at line 47 of file G4ParticleHPLegendreTable.hh.

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

Member Function Documentation

◆ GetCoeff()

G4double G4ParticleHPLegendreTable::GetCoeff ( G4int  l)
inline

Definition at line 95 of file G4ParticleHPLegendreTable.hh.

95 {return theCoeff[l];}
Here is the caller graph for this function:

◆ GetEnergy()

G4double G4ParticleHPLegendreTable::GetEnergy ( )
inline

Definition at line 96 of file G4ParticleHPLegendreTable.hh.

Here is the caller graph for this function:

◆ GetManager()

const G4InterpolationManager& G4ParticleHPLegendreTable::GetManager ( )
inline

Definition at line 100 of file G4ParticleHPLegendreTable.hh.

100 {return theManager;}

◆ GetNumberOfPoly()

G4int G4ParticleHPLegendreTable::GetNumberOfPoly ( )
inline

Definition at line 98 of file G4ParticleHPLegendreTable.hh.

Here is the caller graph for this function:

◆ GetRepresentation()

G4int G4ParticleHPLegendreTable::GetRepresentation ( )
inline

Definition at line 99 of file G4ParticleHPLegendreTable.hh.

◆ GetTemperature()

G4double G4ParticleHPLegendreTable::GetTemperature ( void  )
inline

Definition at line 97 of file G4ParticleHPLegendreTable.hh.

Here is the caller graph for this function:

◆ Init() [1/2]

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

Definition at line 67 of file G4ParticleHPLegendreTable.hh.

68  {
69  G4double eNeu, coeff;
70  G4int nPoly;
71  aDataFile >> eNeu >> nPoly;
72  eNeu *= CLHEP::eV;
73  Init(eNeu, nPoly);
74  for(G4int l=0; l<nPoly; l++)
75  {
76  aDataFile >> coeff;
77  SetCoeff(l+1, coeff);
78  }
79  }
int G4int
Definition: G4Types.hh:78
void SetCoeff(G4int l, G4double coeff)
double G4double
Definition: G4Types.hh:76
void Init(std::istream &aDataFile)
static const double eV
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Init() [2/2]

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

Definition at line 81 of file G4ParticleHPLegendreTable.hh.

82  {
83  nCoeff = n+1;
84  theCoeff = new G4double[nCoeff];
85  for(G4int i=0; i<nCoeff; i++) theCoeff[i] = 0;
86  theCoeff[0]=1.;
87  theEnergy = e;
88 // G4cout << "G4ParticleHPLegendreTable::Init called "<<e<<" "<<n<<G4endl;
89  }
int G4int
Definition: G4Types.hh:78
Char_t n[5]
double G4double
Definition: G4Types.hh:76

◆ operator=()

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

Definition at line 49 of file G4ParticleHPLegendreTable.hh.

50  {
51  if(&aSet!=this)
52  {
53  theRep = aSet.theRep;
54  theEnergy = aSet.theEnergy;
55  theTemp = aSet.theTemp;
56  theManager = aSet.theManager;
57  nCoeff = aSet.nCoeff;
58  if(theCoeff!=0) delete [] theCoeff;
59  theCoeff = new G4double[nCoeff];
60  for(G4int i=0; i<nCoeff; i++)
61  {
62  theCoeff[i] = aSet.theCoeff[i];
63  }
64  }
65  }
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76

◆ SetCoeff()

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

Definition at line 92 of file G4ParticleHPLegendreTable.hh.

Here is the caller graph for this function:

◆ SetEnergy()

void G4ParticleHPLegendreTable::SetEnergy ( G4double  energy)
inline

Definition at line 90 of file G4ParticleHPLegendreTable.hh.

90 { theEnergy = energy; }
double energy
Definition: plottest35.C:25
Here is the caller graph for this function:

◆ SetRepresentation()

void G4ParticleHPLegendreTable::SetRepresentation ( G4int  aRep)
inline

Definition at line 93 of file G4ParticleHPLegendreTable.hh.

◆ SetTemperature()

void G4ParticleHPLegendreTable::SetTemperature ( G4double  temp)
inline

Definition at line 91 of file G4ParticleHPLegendreTable.hh.

Here is the caller graph for this function:

Member Data Documentation

◆ nCoeff

G4int G4ParticleHPLegendreTable::nCoeff
private

Definition at line 106 of file G4ParticleHPLegendreTable.hh.

◆ theCoeff

G4double* G4ParticleHPLegendreTable::theCoeff
private

Definition at line 108 of file G4ParticleHPLegendreTable.hh.

◆ theEnergy

G4double G4ParticleHPLegendreTable::theEnergy
private

Definition at line 104 of file G4ParticleHPLegendreTable.hh.

◆ theManager

G4InterpolationManager G4ParticleHPLegendreTable::theManager
private

Definition at line 107 of file G4ParticleHPLegendreTable.hh.

◆ theRep

G4int G4ParticleHPLegendreTable::theRep
private

Definition at line 103 of file G4ParticleHPLegendreTable.hh.

◆ theTemp

G4double G4ParticleHPLegendreTable::theTemp
private

Definition at line 105 of file G4ParticleHPLegendreTable.hh.


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