#include <G4NeutronHPList.hh>
Public Member Functions | |
G4NeutronHPList () | |
~G4NeutronHPList () | |
void | SetValue (G4int i, G4double y) |
G4double | GetValue (G4int i) |
G4int | GetListLength () |
void | Dump () |
void | Init (std::ifstream &aDataFile, G4int nPar, G4double unit=1.) |
void | Init (std::ifstream &aDataFile, G4double unit=1.) |
void | SetLabel (G4double aLabel) |
G4double | GetLabel () |
Definition at line 34 of file G4NeutronHPList.hh.
G4NeutronHPList::G4NeutronHPList | ( | ) | [inline] |
Definition at line 38 of file G4NeutronHPList.hh.
00039 { 00040 theData = new G4double[2]; 00041 nPoints=2; 00042 nEntries=0; 00043 }
G4NeutronHPList::~G4NeutronHPList | ( | ) | [inline] |
void G4NeutronHPList::Dump | ( | ) |
G4double G4NeutronHPList::GetLabel | ( | ) | [inline] |
Definition at line 67 of file G4NeutronHPList.hh.
Referenced by G4NeutronHPContAngularPar::Merge(), and G4NeutronHPContAngularPar::Sample().
G4int G4NeutronHPList::GetListLength | ( | ) | [inline] |
Definition at line 74 of file G4NeutronHPList.cc.
References GetListLength().
Referenced by G4NeutronHPNeutronYield::GetDecayConstant(), G4NeutronHPContAngularPar::Merge(), and G4NeutronHPContAngularPar::Sample().
00075 { 00076 // G4cout << "TestList "<<i<<" "<<nEntries<<G4endl; 00077 if(nEntries<0) 00078 { 00079 // G4cout <<nPoints<<" "<<nEntries<<" "<<theData<<G4endl; 00080 // for(G4int ii=0; ii<2; ii++) G4cout << theData[ii]<<" "; 00081 // G4cout << G4endl; 00082 } 00083 if (i<0) i=0; 00084 if(i>=GetListLength()) i=GetListLength()-1; 00085 return theData[i]; 00086 }
void G4NeutronHPList::Init | ( | std::ifstream & | aDataFile, | |
G4double | unit = 1. | |||
) |
Definition at line 62 of file G4NeutronHPList.cc.
References SetValue().
00063 { 00064 G4int total, i; 00065 aDataFile >> total; 00066 G4double y; 00067 for (i=0;i<total;i++) 00068 { 00069 aDataFile >>y; 00070 SetValue(i,y*unit); 00071 } 00072 }
Definition at line 51 of file G4NeutronHPList.cc.
References SetValue().
Referenced by G4NeutronHPContAngularPar::Init(), and G4NeutronHPNeutronYield::InitDelayed().
00052 { 00053 G4int i; 00054 G4double y; 00055 for (i=0; i<nPar; i++) 00056 { 00057 aDataFile >> y; 00058 SetValue(i,y*unit); 00059 } 00060 }
void G4NeutronHPList::SetLabel | ( | G4double | aLabel | ) | [inline] |
Definition at line 50 of file G4NeutronHPList.hh.
Referenced by Init(), and G4NeutronHPContAngularPar::Merge().