Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4NeutronHPPhotonXSection Class Reference

#include <G4NeutronHPPhotonXSection.hh>

Public Member Functions

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

Detailed Description

Definition at line 42 of file G4NeutronHPPhotonXSection.hh.

Constructor & Destructor Documentation

G4NeutronHPPhotonXSection::G4NeutronHPPhotonXSection ( )
inline

Definition at line 45 of file G4NeutronHPPhotonXSection.hh.

46  {
47  theExclusive = 0;
48  theExShell = 0;
49  theExEnergy = 0;
50  theExFlag = 0;
51  theExDisFlag = 0;
52  }
G4NeutronHPPhotonXSection::~G4NeutronHPPhotonXSection ( )
inline

Definition at line 53 of file G4NeutronHPPhotonXSection.hh.

54  {
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;
60  }

Member Function Documentation

void G4NeutronHPPhotonXSection::Init ( std::istream &  aDataFile)
inline

Definition at line 62 of file G4NeutronHPPhotonXSection.hh.

References G4NeutronHPVector::Init().

63  {
64  aDataFile >> nChannels >> targetMass;
65  if(nChannels!=1)
66  {
67  aDataFile >> theIncEnergy>>theIncShell>>theIncFlag>>theIncDisFlag;
68  theaDataFileInclusive.Init(aDataFile, CLHEP::eV);
69  }
70  theExclusive = new G4NeutronHPVector[nChannels];
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++)
76  {
77  aDataFile>>theExEnergy[i]>>theExShell[i]>>theExFlag[i]>>theExDisFlag[i];
78  theExclusive[i].Init(aDataFile,CLHEP::eV);
79  }
80  }
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
int G4int
Definition: G4Types.hh:78
double G4double
Definition: G4Types.hh:76
G4double G4NeutronHPPhotonXSection::Sample ( G4double  anEnergy)
inline

Definition at line 82 of file G4NeutronHPPhotonXSection.hh.

83  {
84  return -1;
85  }

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