Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ParticleHPParticleYield Class Reference

#include <G4ParticleHPParticleYield.hh>

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)
 

Detailed Description

Definition at line 39 of file G4ParticleHPParticleYield.hh.

Constructor & Destructor Documentation

G4ParticleHPParticleYield::G4ParticleHPParticleYield ( )
inline

Definition at line 42 of file G4ParticleHPParticleYield.hh.

43  {
44  simpleMean = true;
45  spontPrompt = true;
46  hasPromptData = false;
47  hasDelayedData = false;
48 
49  targetMass = 0.0;
50  theSpontPrompt = 0.0;
51  spontDelayed = true;
52  theSpontDelayed = 0.0;
53  }
G4ParticleHPParticleYield::~G4ParticleHPParticleYield ( )
inline

Definition at line 54 of file G4ParticleHPParticleYield.hh.

54 {}

Member Function Documentation

G4double G4ParticleHPParticleYield::GetDecayConstant ( G4int  i)
inline

Definition at line 135 of file G4ParticleHPParticleYield.hh.

136  {
137  return thePrecursorDecayConstants.GetValue(i);
138  }
G4double GetValue(G4int i)

Here is the call graph for this function:

Here is the caller graph for this function:

G4double G4ParticleHPParticleYield::GetDelayed ( G4double  anEnergy)
inline

Definition at line 125 of file G4ParticleHPParticleYield.hh.

126  {
127  if(!hasDelayedData) return 0;
128  if(spontDelayed)
129  {
130  return theSpontDelayed;
131  }
132  return theDelayed.GetY(anEnergy);
133  }
G4double GetY(G4double x)

Here is the call graph for this function:

Here is the caller graph for this function:

G4double G4ParticleHPParticleYield::GetMean ( G4double  anEnergy)
inline

Definition at line 106 of file G4ParticleHPParticleYield.hh.

107  {
108  if(simpleMean)
109  {
110  return theSimpleMean.GetY(anEnergy);
111  }
112  return theMean.GetValue(anEnergy);
113  }
G4double GetY(G4double x)
G4double GetValue(G4double anEnergy)

Here is the call graph for this function:

Here is the caller graph for this function:

G4double G4ParticleHPParticleYield::GetPrompt ( G4double  anEnergy)
inline

Definition at line 115 of file G4ParticleHPParticleYield.hh.

116  {
117  if(!hasPromptData) return 0;
118  if(spontPrompt)
119  {
120  return theSpontPrompt;
121  }
122  return thePrompt.GetY(anEnergy);
123  }
G4double GetY(G4double x)

Here is the call graph for this function:

Here is the caller graph for this function:

G4double G4ParticleHPParticleYield::GetTargetMass ( )
inline

Definition at line 56 of file G4ParticleHPParticleYield.hh.

56 { return targetMass; }

Here is the caller graph for this function:

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

Definition at line 89 of file G4ParticleHPParticleYield.hh.

90  {
91  hasDelayedData = true;
92  G4int iflag;
93  aDataFile >> targetMass >>iflag;
94  thePrecursorDecayConstants.Init(aDataFile, 1./CLHEP::s); // s is the CLHEP unit second
95  if(iflag == 2) spontDelayed = false;
96  if(spontDelayed)
97  {
98  aDataFile >> theSpontDelayed;
99  }
100  else
101  {
102  theDelayed.Init(aDataFile, CLHEP::eV);
103  }
104  }
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 constexpr double s
static constexpr double eV

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 58 of file G4ParticleHPParticleYield.hh.

59  {
60  G4int iflag;
61  aDataFile >> targetMass >>iflag;
62  if(iflag == 1) simpleMean=false;
63  if(simpleMean)
64  {
65  theSimpleMean.Init(aDataFile, CLHEP::eV);
66  }
67  else
68  {
69  theMean.Init(aDataFile);
70  }
71  }
int G4int
Definition: G4Types.hh:78
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
static constexpr double eV

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 73 of file G4ParticleHPParticleYield.hh.

74  {
75  hasPromptData = true;
76  G4int iflag;
77  aDataFile >> targetMass >>iflag;
78  if(iflag == 2) spontPrompt = false;
79  if(spontPrompt)
80  {
81  aDataFile >> theSpontPrompt;
82  }
83  else
84  {
85  thePrompt.Init(aDataFile, CLHEP::eV);
86  }
87  }
int G4int
Definition: G4Types.hh:78
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)
static constexpr double eV

Here is the call graph for this function:

Here is the caller graph for this function:


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