#include <G4NeutronHPPhotonXSection.hh>
◆ G4NeutronHPPhotonXSection()
G4NeutronHPPhotonXSection::G4NeutronHPPhotonXSection |
( |
| ) |
|
|
inline |
Definition at line 46 of file G4NeutronHPPhotonXSection.hh.
47 {
48 theExclusive = 0;
49 theExShell = 0;
50 theExEnergy = 0;
51 theExFlag = 0;
52 theExDisFlag = 0;
53 }
◆ ~G4NeutronHPPhotonXSection()
G4NeutronHPPhotonXSection::~G4NeutronHPPhotonXSection |
( |
| ) |
|
|
inline |
Definition at line 54 of file G4NeutronHPPhotonXSection.hh.
55 {
56 if(theExclusive!=0) delete [] theExclusive;
57 if(theExShell != 0) delete [] theExShell;
58 if(theExEnergy != 0) delete [] theExEnergy;
59 if(theExFlag != 0) delete [] theExFlag;
60 if(theExDisFlag != 0) delete [] theExDisFlag;
61 }
◆ Init()
void G4NeutronHPPhotonXSection::Init |
( |
std::ifstream & |
aDataFile | ) |
|
|
inline |
Definition at line 63 of file G4NeutronHPPhotonXSection.hh.
64 {
65 aDataFile >> nChannels >> targetMass;
66 if(nChannels!=1)
67 {
68 aDataFile >> theIncEnergy>>theIncShell>>theIncFlag>>theIncDisFlag;
69 theaDataFileInclusive.Init(aDataFile, CLHEP::eV);
70 }
72 theExShell =
new G4double[nChannels];
73 theExEnergy =
new G4double[nChannels];
74 theExFlag =
new G4int[nChannels];
75 theExDisFlag =
new G4int[nChannels];
76 for(
G4int i=0; i<nChannels; i++)
77 {
78 aDataFile>>theExEnergy[i]>>theExShell[i]>>theExFlag[i]>>theExDisFlag[i];
79 theExclusive[i].
Init(aDataFile,CLHEP::eV);
80 }
81 }
void Init(std::ifstream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
◆ Sample()
The documentation for this class was generated from the following file: