#include <G4NeutronHPPhotonXSection.hh>
Public Member Functions | |
G4NeutronHPPhotonXSection () | |
~G4NeutronHPPhotonXSection () | |
void | Init (std::ifstream &aDataFile) |
G4double | Sample (G4double anEnergy) |
Definition at line 43 of file G4NeutronHPPhotonXSection.hh.
G4NeutronHPPhotonXSection::G4NeutronHPPhotonXSection | ( | ) | [inline] |
Definition at line 46 of file G4NeutronHPPhotonXSection.hh.
00047 { 00048 theExclusive = 0; 00049 theExShell = 0; 00050 theExEnergy = 0; 00051 theExFlag = 0; 00052 theExDisFlag = 0; 00053 }
G4NeutronHPPhotonXSection::~G4NeutronHPPhotonXSection | ( | ) | [inline] |
Definition at line 54 of file G4NeutronHPPhotonXSection.hh.
00055 { 00056 if(theExclusive!=0) delete [] theExclusive; 00057 if(theExShell != 0) delete [] theExShell; 00058 if(theExEnergy != 0) delete [] theExEnergy; 00059 if(theExFlag != 0) delete [] theExFlag; 00060 if(theExDisFlag != 0) delete [] theExDisFlag; 00061 }
void G4NeutronHPPhotonXSection::Init | ( | std::ifstream & | aDataFile | ) | [inline] |
Definition at line 63 of file G4NeutronHPPhotonXSection.hh.
References G4NeutronHPVector::Init().
00064 { 00065 aDataFile >> nChannels >> targetMass; 00066 if(nChannels!=1) 00067 { 00068 aDataFile >> theIncEnergy>>theIncShell>>theIncFlag>>theIncDisFlag; 00069 theaDataFileInclusive.Init(aDataFile, CLHEP::eV); 00070 } 00071 theExclusive = new G4NeutronHPVector[nChannels]; 00072 theExShell = new G4double[nChannels]; 00073 theExEnergy = new G4double[nChannels]; 00074 theExFlag = new G4int[nChannels]; 00075 theExDisFlag = new G4int[nChannels]; 00076 for(G4int i=0; i<nChannels; i++) 00077 { 00078 aDataFile>>theExEnergy[i]>>theExShell[i]>>theExFlag[i]>>theExDisFlag[i]; 00079 theExclusive[i].Init(aDataFile,CLHEP::eV); 00080 } 00081 }