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

#include <G4ParticleHPParticleYield.hh>

Public Member Functions

 G4ParticleHPParticleYield ()
 
 ~G4ParticleHPParticleYield ()=default
 
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::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::~G4ParticleHPParticleYield ( )
default

Member Function Documentation

◆ GetDecayConstant()

G4double G4ParticleHPParticleYield::GetDecayConstant ( G4int i)
inline

Definition at line 126 of file G4ParticleHPParticleYield.hh.

126{ return thePrecursorDecayConstants.GetValue(i); }
G4double GetValue(G4int i)

Referenced by G4ParticleHPFSFissionFS::ApplyYourself().

◆ GetDelayed()

G4double G4ParticleHPParticleYield::GetDelayed ( G4double anEnergy)
inline

Definition at line 117 of file G4ParticleHPParticleYield.hh.

118 {
119 if (!hasDelayedData) return 0;
120 if (spontDelayed) {
121 return theSpontDelayed;
122 }
123 return theDelayed.GetY(anEnergy);
124 }
G4double GetY(G4double x)

Referenced by G4ParticleHPFSFissionFS::SampleNeutronMult().

◆ GetMean()

G4double G4ParticleHPParticleYield::GetMean ( G4double anEnergy)
inline

Definition at line 100 of file G4ParticleHPParticleYield.hh.

101 {
102 if (simpleMean) {
103 return theSimpleMean.GetY(anEnergy);
104 }
105 return theMean.GetValue(anEnergy);
106 }

Referenced by G4ParticleHPFSFissionFS::SampleNeutronMult().

◆ GetPrompt()

G4double G4ParticleHPParticleYield::GetPrompt ( G4double anEnergy)
inline

Definition at line 108 of file G4ParticleHPParticleYield.hh.

109 {
110 if (!hasPromptData) return 0;
111 if (spontPrompt) {
112 return theSpontPrompt;
113 }
114 return thePrompt.GetY(anEnergy);
115 }

Referenced by G4ParticleHPFSFissionFS::SampleNeutronMult().

◆ GetTargetMass()

G4double G4ParticleHPParticleYield::GetTargetMass ( )
inline

Definition at line 56 of file G4ParticleHPParticleYield.hh.

56{ return targetMass; }

Referenced by G4ParticleHPFSFissionFS::GetMass(), and G4FissionLibrary::Init().

◆ InitDelayed()

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

Definition at line 85 of file G4ParticleHPParticleYield.hh.

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

Referenced by G4FissionLibrary::Init(), and G4ParticleHPFSFissionFS::Init().

◆ InitMean()

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 theSimpleMean.Init(aDataFile, CLHEP::eV);
65 }
66 else {
67 theMean.Init(aDataFile);
68 }
69 }

Referenced by G4FissionLibrary::Init(), and G4ParticleHPFSFissionFS::Init().

◆ InitPrompt()

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

Definition at line 71 of file G4ParticleHPParticleYield.hh.

72 {
73 hasPromptData = true;
74 G4int iflag;
75 aDataFile >> targetMass >> iflag;
76 if (iflag == 2) spontPrompt = false;
77 if (spontPrompt) {
78 aDataFile >> theSpontPrompt;
79 }
80 else {
81 thePrompt.Init(aDataFile, CLHEP::eV);
82 }
83 }

Referenced by G4FissionLibrary::Init(), and G4ParticleHPFSFissionFS::Init().


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