28 #ifndef G4NeutronHPPhotonXSection_h
29 #define G4NeutronHPPhotonXSection_h 1
38 #include "G4VNeutronVector.hh"
55 if(theExclusive!=0)
delete [] theExclusive;
56 if(theExShell != 0)
delete [] theExShell;
57 if(theExEnergy != 0)
delete [] theExEnergy;
58 if(theExFlag != 0)
delete [] theExFlag;
59 if(theExDisFlag != 0)
delete [] theExDisFlag;
62 inline void Init(std::istream & aDataFile)
64 aDataFile >> nChannels >> targetMass;
67 aDataFile >> theIncEnergy>>theIncShell>>theIncFlag>>theIncDisFlag;
68 theaDataFileInclusive.Init(aDataFile, CLHEP::eV);
71 theExShell =
new G4double[nChannels];
72 theExEnergy =
new G4double[nChannels];
73 theExFlag =
new G4int[nChannels];
74 theExDisFlag =
new G4int[nChannels];
75 for(
G4int i=0; i<nChannels; i++)
77 aDataFile>>theExEnergy[i]>>theExShell[i]>>theExFlag[i]>>theExDisFlag[i];
78 theExclusive[i].
Init(aDataFile,CLHEP::eV);
101 G4int * theExDisFlag;
void Init(std::istream &aDataFile)
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
G4double Sample(G4double anEnergy)
G4NeutronHPPhotonXSection()
~G4NeutronHPPhotonXSection()