Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NeutronHPPhotonXSection Class Reference

#include <G4NeutronHPPhotonXSection.hh>

Public Member Functions

 G4NeutronHPPhotonXSection ()
 
 ~G4NeutronHPPhotonXSection ()
 
void Init (std::ifstream &aDataFile)
 
G4double Sample (G4double anEnergy)
 

Detailed Description

Definition at line 43 of file G4NeutronHPPhotonXSection.hh.

Constructor & Destructor Documentation

◆ 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 }

Member Function Documentation

◆ 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 }
71 theExclusive = new G4NeutronHPVector[nChannels];
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 }
double G4double
Definition: G4Types.hh:64
int G4int
Definition: G4Types.hh:66
void Init(std::ifstream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)

◆ Sample()

G4double G4NeutronHPPhotonXSection::Sample ( G4double  anEnergy)
inline

Definition at line 83 of file G4NeutronHPPhotonXSection.hh.

84 {
85 return -1;
86 }

The documentation for this class was generated from the following file: