Geant4  10.02.p03
G4ParticleHPParticleYield Class Reference

#include <G4ParticleHPParticleYield.hh>

Collaboration diagram for G4ParticleHPParticleYield:

Public Member Functions

 G4ParticleHPParticleYield ()
 
 ~G4ParticleHPParticleYield ()
 
G4double GetTargetMass ()
 
void InitMean (std::istream &aDataFile)
 
void InitPrompt (std::istream &aDataFile)
 
void InitDelayed (std::istream &aDataFile)
 
G4double GetMean (G4double anEnergy)
 
G4double GetPrompt (G4double anEnergy)
 
G4double GetDelayed (G4double anEnergy)
 
G4double GetDecayConstant (G4int i)
 

Private Attributes

G4double targetMass
 
G4bool simpleMean
 
G4ParticleHPPolynomExpansion theMean
 
G4ParticleHPVector theSimpleMean
 
G4bool hasPromptData
 
G4bool spontPrompt
 
G4ParticleHPVector thePrompt
 
G4double theSpontPrompt
 
G4bool hasDelayedData
 
G4bool spontDelayed
 
G4ParticleHPList thePrecursorDecayConstants
 
G4ParticleHPVector theDelayed
 
G4double theSpontDelayed
 

Detailed Description

Definition at line 39 of file G4ParticleHPParticleYield.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPParticleYield()

G4ParticleHPParticleYield::G4ParticleHPParticleYield ( )
inline

◆ ~G4ParticleHPParticleYield()

G4ParticleHPParticleYield::~G4ParticleHPParticleYield ( )
inline

Definition at line 49 of file G4ParticleHPParticleYield.hh.

49 {}

Member Function Documentation

◆ GetDecayConstant()

G4double G4ParticleHPParticleYield::GetDecayConstant ( G4int  i)
inline

Definition at line 130 of file G4ParticleHPParticleYield.hh.

131  {
133  }
G4double GetValue(G4int i)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDelayed()

G4double G4ParticleHPParticleYield::GetDelayed ( G4double  anEnergy)
inline

Definition at line 120 of file G4ParticleHPParticleYield.hh.

121  {
122  if(!hasDelayedData) return 0;
123  if(spontDelayed)
124  {
125  return theSpontDelayed;
126  }
127  return theDelayed.GetY(anEnergy);
128  }
G4double GetY(G4double x)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetMean()

G4double G4ParticleHPParticleYield::GetMean ( G4double  anEnergy)
inline

Definition at line 101 of file G4ParticleHPParticleYield.hh.

102  {
103  if(simpleMean)
104  {
105  return theSimpleMean.GetY(anEnergy);
106  }
107  return theMean.GetValue(anEnergy);
108  }
G4ParticleHPPolynomExpansion theMean
G4double GetY(G4double x)
G4double GetValue(G4double anEnergy)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetPrompt()

G4double G4ParticleHPParticleYield::GetPrompt ( G4double  anEnergy)
inline

Definition at line 110 of file G4ParticleHPParticleYield.hh.

111  {
112  if(!hasPromptData) return 0;
113  if(spontPrompt)
114  {
115  return theSpontPrompt;
116  }
117  return thePrompt.GetY(anEnergy);
118  }
G4double GetY(G4double x)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTargetMass()

G4double G4ParticleHPParticleYield::GetTargetMass ( )
inline

Definition at line 51 of file G4ParticleHPParticleYield.hh.

Here is the caller graph for this function:

◆ InitDelayed()

void G4ParticleHPParticleYield::InitDelayed ( std::istream &  aDataFile)
inline

Definition at line 84 of file G4ParticleHPParticleYield.hh.

85  {
86  hasDelayedData = true;
87  G4int iflag;
88  aDataFile >> targetMass >>iflag;
89  thePrecursorDecayConstants.Init(aDataFile, 1./CLHEP::s); // s is the CLHEP unit second
90  if(iflag == 2) spontDelayed = false;
91  if(spontDelayed)
92  {
93  aDataFile >> theSpontDelayed;
94  }
95  else
96  {
97  theDelayed.Init(aDataFile, CLHEP::eV);
98  }
99  }
void Init(std::istream &aDataFile, G4int nPar, G4double unit=1.)
int G4int
Definition: G4Types.hh:78
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
static const double s
static const double eV
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitMean()

void G4ParticleHPParticleYield::InitMean ( std::istream &  aDataFile)
inline

Definition at line 53 of file G4ParticleHPParticleYield.hh.

54  {
55  G4int iflag;
56  aDataFile >> targetMass >>iflag;
57  if(iflag == 1) simpleMean=false;
58  if(simpleMean)
59  {
60  theSimpleMean.Init(aDataFile, CLHEP::eV);
61  }
62  else
63  {
64  theMean.Init(aDataFile);
65  }
66  }
G4ParticleHPPolynomExpansion theMean
int G4int
Definition: G4Types.hh:78
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
static const double eV
Here is the call graph for this function:
Here is the caller graph for this function:

◆ InitPrompt()

void G4ParticleHPParticleYield::InitPrompt ( std::istream &  aDataFile)
inline

Definition at line 68 of file G4ParticleHPParticleYield.hh.

69  {
70  hasPromptData = true;
71  G4int iflag;
72  aDataFile >> targetMass >>iflag;
73  if(iflag == 2) spontPrompt = false;
74  if(spontPrompt)
75  {
76  aDataFile >> theSpontPrompt;
77  }
78  else
79  {
80  thePrompt.Init(aDataFile, CLHEP::eV);
81  }
82  }
int G4int
Definition: G4Types.hh:78
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
static const double eV
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ hasDelayedData

G4bool G4ParticleHPParticleYield::hasDelayedData
private

Definition at line 150 of file G4ParticleHPParticleYield.hh.

◆ hasPromptData

G4bool G4ParticleHPParticleYield::hasPromptData
private

Definition at line 144 of file G4ParticleHPParticleYield.hh.

◆ simpleMean

G4bool G4ParticleHPParticleYield::simpleMean
private

Definition at line 139 of file G4ParticleHPParticleYield.hh.

◆ spontDelayed

G4bool G4ParticleHPParticleYield::spontDelayed
private

Definition at line 151 of file G4ParticleHPParticleYield.hh.

◆ spontPrompt

G4bool G4ParticleHPParticleYield::spontPrompt
private

Definition at line 145 of file G4ParticleHPParticleYield.hh.

◆ targetMass

G4double G4ParticleHPParticleYield::targetMass
private

Definition at line 137 of file G4ParticleHPParticleYield.hh.

◆ theDelayed

G4ParticleHPVector G4ParticleHPParticleYield::theDelayed
private

Definition at line 153 of file G4ParticleHPParticleYield.hh.

◆ theMean

G4ParticleHPPolynomExpansion G4ParticleHPParticleYield::theMean
private

Definition at line 140 of file G4ParticleHPParticleYield.hh.

◆ thePrecursorDecayConstants

G4ParticleHPList G4ParticleHPParticleYield::thePrecursorDecayConstants
private

Definition at line 152 of file G4ParticleHPParticleYield.hh.

◆ thePrompt

G4ParticleHPVector G4ParticleHPParticleYield::thePrompt
private

Definition at line 146 of file G4ParticleHPParticleYield.hh.

◆ theSimpleMean

G4ParticleHPVector G4ParticleHPParticleYield::theSimpleMean
private

Definition at line 141 of file G4ParticleHPParticleYield.hh.

◆ theSpontDelayed

G4double G4ParticleHPParticleYield::theSpontDelayed
private

Definition at line 154 of file G4ParticleHPParticleYield.hh.

◆ theSpontPrompt

G4double G4ParticleHPParticleYield::theSpontPrompt
private

Definition at line 147 of file G4ParticleHPParticleYield.hh.


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