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 (  )  [inline]

Definition at line 42 of file G4NeutronHPLegendreTable.hh.

00043   {
00044     nCoeff=0; 
00045     theCoeff = 0;
00046   }

G4NeutronHPLegendreTable::~G4NeutronHPLegendreTable (  )  [inline]

Definition at line 47 of file G4NeutronHPLegendreTable.hh.

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


Member Function Documentation

G4double G4NeutronHPLegendreTable::GetCoeff ( G4int  l  )  [inline]

Definition at line 95 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPLegendreStore::GetCoeff(), G4NeutronHPDiscreteTwoBody::Sample(), G4NeutronHPLegendreStore::SampleElastic(), and G4NeutronHPLegendreStore::SampleMax().

00095 {return theCoeff[l];}

G4double G4NeutronHPLegendreTable::GetEnergy (  )  [inline]

Definition at line 96 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPLegendreStore::GetEnergy(), G4NeutronHPLegendreStore::Sample(), G4NeutronHPDiscreteTwoBody::Sample(), G4NeutronHPLegendreStore::SampleDiscreteTwoBody(), G4NeutronHPLegendreStore::SampleElastic(), and G4NeutronHPLegendreStore::SampleMax().

00096 {return theEnergy;}

const G4InterpolationManager& G4NeutronHPLegendreTable::GetManager (  )  [inline]

Definition at line 100 of file G4NeutronHPLegendreTable.hh.

00100 {return theManager;}

G4int G4NeutronHPLegendreTable::GetNumberOfPoly (  )  [inline]

Definition at line 98 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPLegendreStore::GetNumberOfPoly(), G4NeutronHPLegendreStore::Integrate(), G4NeutronHPDiscreteTwoBody::Sample(), G4NeutronHPLegendreStore::SampleDiscreteTwoBody(), G4NeutronHPLegendreStore::SampleElastic(), and G4NeutronHPLegendreStore::SampleMax().

00098 {return nCoeff;}

G4int G4NeutronHPLegendreTable::GetRepresentation (  )  [inline]

Definition at line 99 of file G4NeutronHPLegendreTable.hh.

00099 {return theRep;}

G4double G4NeutronHPLegendreTable::GetTemperature ( void   )  [inline]

Definition at line 97 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPLegendreStore::GetTemperature().

00097 {return theTemp;}

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

Definition at line 81 of file G4NeutronHPLegendreTable.hh.

00082   {
00083     nCoeff = n+1;
00084     theCoeff = new G4double[nCoeff];
00085     for(G4int i=0; i<nCoeff; i++) theCoeff[i] = 0;
00086     theCoeff[0]=1.;
00087     theEnergy = e;
00088 //    G4cout << "G4NeutronHPLegendreTable::Init called "<<e<<" "<<n<<G4endl;
00089   }

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

Definition at line 67 of file G4NeutronHPLegendreTable.hh.

References SetCoeff().

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

00068   {
00069     G4double eNeu, coeff;
00070     G4int nPoly;
00071     aDataFile >> eNeu >> nPoly;
00072     eNeu *= CLHEP::eV;
00073     Init(eNeu, nPoly);
00074     for(G4int l=0; l<nPoly; l++)
00075     {
00076       aDataFile >> coeff;
00077       SetCoeff(l+1, coeff);
00078     }
00079   }

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

Definition at line 49 of file G4NeutronHPLegendreTable.hh.

References nCoeff, theCoeff, theEnergy, theManager, theRep, and theTemp.

00050   {
00051     if(&aSet!=this)
00052     {
00053       theRep = aSet.theRep;
00054       theEnergy = aSet.theEnergy;
00055       theTemp = aSet.theTemp;
00056       theManager = aSet.theManager;
00057       nCoeff = aSet.nCoeff;
00058       if(theCoeff!=0) delete [] theCoeff;
00059       theCoeff = new G4double[nCoeff];
00060       for(G4int i=0; i<nCoeff; i++)
00061       {
00062         theCoeff[i] = aSet.theCoeff[i];
00063       }
00064     }
00065   }

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

Definition at line 92 of file G4NeutronHPLegendreTable.hh.

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

00092 {theCoeff[l]=coeff;}

void G4NeutronHPLegendreTable::SetEnergy ( G4double  energy  )  [inline]

Definition at line 90 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPLegendreStore::SetEnergy().

00090 { theEnergy = energy; }

void G4NeutronHPLegendreTable::SetRepresentation ( G4int  aRep  )  [inline]

Definition at line 93 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPDiscreteTwoBody::Init().

00093 {theRep = aRep;}

void G4NeutronHPLegendreTable::SetTemperature ( G4double  temp  )  [inline]

Definition at line 91 of file G4NeutronHPLegendreTable.hh.

Referenced by G4NeutronHPLegendreStore::SetTemperature().

00091 { theTemp = temp; }


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:52:39 2013 for Geant4 by  doxygen 1.4.7