Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4NeutronHPLegendreTable Class Reference

#include <G4NeutronHPLegendreTable.hh>

Public Member Functions

 G4NeutronHPLegendreTable ()
 
 ~G4NeutronHPLegendreTable ()
 
void operator= (const G4NeutronHPLegendreTable &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 38 of file G4NeutronHPLegendreTable.hh.

Constructor & Destructor Documentation

G4NeutronHPLegendreTable::G4NeutronHPLegendreTable ( )
inline

Definition at line 41 of file G4NeutronHPLegendreTable.hh.

42  {
43  nCoeff=0;
44  theCoeff = 0;
45  }
G4NeutronHPLegendreTable::~G4NeutronHPLegendreTable ( )
inline

Definition at line 46 of file G4NeutronHPLegendreTable.hh.

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

Member Function Documentation

G4double G4NeutronHPLegendreTable::GetCoeff ( G4int  l)
inline

Definition at line 94 of file G4NeutronHPLegendreTable.hh.

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

94 {return theCoeff[l];}
G4double G4NeutronHPLegendreTable::GetEnergy ( )
inline
const G4InterpolationManager& G4NeutronHPLegendreTable::GetManager ( )
inline

Definition at line 99 of file G4NeutronHPLegendreTable.hh.

99 {return theManager;}
G4int G4NeutronHPLegendreTable::GetNumberOfPoly ( )
inline
G4int G4NeutronHPLegendreTable::GetRepresentation ( )
inline

Definition at line 98 of file G4NeutronHPLegendreTable.hh.

98 {return theRep;}
G4double G4NeutronHPLegendreTable::GetTemperature ( void  )
inline

Definition at line 96 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPLegendreStore::GetTemperature().

96 {return theTemp;}
void G4NeutronHPLegendreTable::Init ( std::istream &  aDataFile)
inline

Definition at line 66 of file G4NeutronHPLegendreTable.hh.

References SetCoeff().

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

67  {
68  G4double eNeu, coeff;
69  G4int nPoly;
70  aDataFile >> eNeu >> nPoly;
71  eNeu *= CLHEP::eV;
72  Init(eNeu, nPoly);
73  for(G4int l=0; l<nPoly; l++)
74  {
75  aDataFile >> coeff;
76  SetCoeff(l+1, coeff);
77  }
78  }
void Init(std::istream &aDataFile)
int G4int
Definition: G4Types.hh:78
void SetCoeff(G4int l, G4double coeff)
double G4double
Definition: G4Types.hh:76
void G4NeutronHPLegendreTable::Init ( G4double  e,
G4int  n 
)
inline

Definition at line 80 of file G4NeutronHPLegendreTable.hh.

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

Definition at line 48 of file G4NeutronHPLegendreTable.hh.

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

Definition at line 91 of file G4NeutronHPLegendreTable.hh.

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

91 {theCoeff[l]=coeff;}
void G4NeutronHPLegendreTable::SetEnergy ( G4double  energy)
inline

Definition at line 89 of file G4NeutronHPLegendreTable.hh.

References energy().

Referenced by G4NeutronHPLegendreStore::SetEnergy().

89 { theEnergy = energy; }
double precision function energy(A, Z)
Definition: dpm25nuc6.f:4106
void G4NeutronHPLegendreTable::SetRepresentation ( G4int  aRep)
inline

Definition at line 92 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPDiscreteTwoBody::Init().

92 {theRep = aRep;}
void G4NeutronHPLegendreTable::SetTemperature ( G4double  temp)
inline

Definition at line 90 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPLegendreStore::SetTemperature().

90 { theTemp = temp; }

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