#include <G4NeutronHPPolynomExpansion.hh>
Public Member Functions | |
G4NeutronHPPolynomExpansion () | |
~G4NeutronHPPolynomExpansion () | |
void | Init (std::ifstream &theData) |
G4double | GetValue (G4double anEnergy) |
Definition at line 38 of file G4NeutronHPPolynomExpansion.hh.
G4NeutronHPPolynomExpansion::G4NeutronHPPolynomExpansion | ( | ) | [inline] |
G4NeutronHPPolynomExpansion::~G4NeutronHPPolynomExpansion | ( | ) | [inline] |
Definition at line 62 of file G4NeutronHPPolynomExpansion.hh.
Referenced by G4NeutronHPNeutronYield::GetMean().
00063 { 00064 G4int i; 00065 G4double result=0; 00066 G4double base = anEnergy/CLHEP::eV; 00067 G4double running = 1; 00068 for(i=0; i<nPoly; i++) 00069 { 00070 result+=theCoeff[i]*running; 00071 running *= base; 00072 } 00073 return result; 00074 }
void G4NeutronHPPolynomExpansion::Init | ( | std::ifstream & | theData | ) | [inline] |
Definition at line 51 of file G4NeutronHPPolynomExpansion.hh.
Referenced by G4NeutronHPNeutronYield::InitMean().
00052 { 00053 theData >> nPoly; 00054 theCoeff = new G4double[nPoly]; 00055 G4int i; 00056 for(i=0;i<nPoly;i++) 00057 { 00058 theData >> theCoeff[i]; 00059 } 00060 }