#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 G4InterpolationManager & | GetManager () |
Definition at line 39 of file G4NeutronHPLegendreTable.hh.
G4NeutronHPLegendreTable::G4NeutronHPLegendreTable | ( | ) | [inline] |
G4NeutronHPLegendreTable::~G4NeutronHPLegendreTable | ( | ) | [inline] |
Definition at line 95 of file G4NeutronHPLegendreTable.hh.
Referenced by G4NeutronHPLegendreStore::GetCoeff(), G4NeutronHPDiscreteTwoBody::Sample(), G4NeutronHPLegendreStore::SampleElastic(), and G4NeutronHPLegendreStore::SampleMax().
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().
const G4InterpolationManager& G4NeutronHPLegendreTable::GetManager | ( | ) | [inline] |
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().
G4int G4NeutronHPLegendreTable::GetRepresentation | ( | ) | [inline] |
G4double G4NeutronHPLegendreTable::GetTemperature | ( | void | ) | [inline] |
Definition at line 97 of file G4NeutronHPLegendreTable.hh.
Referenced by G4NeutronHPLegendreStore::GetTemperature().
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 }
Definition at line 92 of file G4NeutronHPLegendreTable.hh.
Referenced by Init(), G4NeutronHPDiscreteTwoBody::Init(), and G4NeutronHPLegendreStore::SetCoeff().
void G4NeutronHPLegendreTable::SetEnergy | ( | G4double | energy | ) | [inline] |
Definition at line 90 of file G4NeutronHPLegendreTable.hh.
Referenced by G4NeutronHPLegendreStore::SetEnergy().
void G4NeutronHPLegendreTable::SetRepresentation | ( | G4int | aRep | ) | [inline] |
Definition at line 93 of file G4NeutronHPLegendreTable.hh.
Referenced by G4NeutronHPDiscreteTwoBody::Init().
void G4NeutronHPLegendreTable::SetTemperature | ( | G4double | temp | ) | [inline] |
Definition at line 91 of file G4NeutronHPLegendreTable.hh.
Referenced by G4NeutronHPLegendreStore::SetTemperature().