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

#include <G4NeutronHPLegendreTable.hh>

Public Member Functions

 G4NeutronHPLegendreTable ()
 
 ~G4NeutronHPLegendreTable ()
 
void operator= (const G4NeutronHPLegendreTable &aSet)
 
void Init (std::ifstream &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 G4NeutronHPLegendreTable.hh.

Constructor & Destructor Documentation

◆ G4NeutronHPLegendreTable()

G4NeutronHPLegendreTable::G4NeutronHPLegendreTable ( )
inline

Definition at line 42 of file G4NeutronHPLegendreTable.hh.

43 {
44 nCoeff=0;
45 theCoeff = 0;
46 }

◆ ~G4NeutronHPLegendreTable()

G4NeutronHPLegendreTable::~G4NeutronHPLegendreTable ( )
inline

Definition at line 47 of file G4NeutronHPLegendreTable.hh.

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

Member Function Documentation

◆ GetCoeff()

G4double G4NeutronHPLegendreTable::GetCoeff ( G4int  l)
inline

Definition at line 95 of file G4NeutronHPLegendreTable.hh.

95{return theCoeff[l];}

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

◆ GetEnergy()

◆ GetManager()

const G4InterpolationManager & G4NeutronHPLegendreTable::GetManager ( )
inline

Definition at line 100 of file G4NeutronHPLegendreTable.hh.

100{return theManager;}

◆ GetNumberOfPoly()

◆ GetRepresentation()

G4int G4NeutronHPLegendreTable::GetRepresentation ( )
inline

Definition at line 99 of file G4NeutronHPLegendreTable.hh.

99{return theRep;}

◆ GetTemperature()

G4double G4NeutronHPLegendreTable::GetTemperature ( )
inline

Definition at line 97 of file G4NeutronHPLegendreTable.hh.

97{return theTemp;}

Referenced by G4NeutronHPLegendreStore::GetTemperature().

◆ Init() [1/2]

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

Definition at line 81 of file G4NeutronHPLegendreTable.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 << "G4NeutronHPLegendreTable::Init called "<<e<<" "<<n<<G4endl;
89 }
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66

◆ Init() [2/2]

void G4NeutronHPLegendreTable::Init ( std::ifstream &  aDataFile)
inline

Definition at line 67 of file G4NeutronHPLegendreTable.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 }
void SetCoeff(G4int l, G4double coeff)
void Init(std::ifstream &aDataFile)

Referenced by G4NeutronHPLegendreStore::Init(), G4NeutronHPDiscreteTwoBody::Init(), Init(), and G4NeutronHPPhotonDist::InitAngular().

◆ operator=()

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

Definition at line 49 of file G4NeutronHPLegendreTable.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 }

◆ SetCoeff()

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

Definition at line 92 of file G4NeutronHPLegendreTable.hh.

92{theCoeff[l]=coeff;}

Referenced by G4NeutronHPDiscreteTwoBody::Init(), Init(), and G4NeutronHPLegendreStore::SetCoeff().

◆ SetEnergy()

void G4NeutronHPLegendreTable::SetEnergy ( G4double  energy)
inline

Definition at line 90 of file G4NeutronHPLegendreTable.hh.

90{ theEnergy = energy; }

Referenced by G4NeutronHPLegendreStore::SetEnergy().

◆ SetRepresentation()

void G4NeutronHPLegendreTable::SetRepresentation ( G4int  aRep)
inline

Definition at line 93 of file G4NeutronHPLegendreTable.hh.

93{theRep = aRep;}

Referenced by G4NeutronHPDiscreteTwoBody::Init().

◆ SetTemperature()

void G4NeutronHPLegendreTable::SetTemperature ( G4double  temp)
inline

Definition at line 91 of file G4NeutronHPLegendreTable.hh.

91{ theTemp = temp; }

Referenced by G4NeutronHPLegendreStore::SetTemperature().


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