29#ifndef G4ParticleHPParticleYield_h
30#define G4ParticleHPParticleYield_h 1
46 hasPromptData =
false;
47 hasDelayedData =
false;
52 theSpontDelayed = 0.0;
61 aDataFile >> targetMass >>iflag;
62 if(iflag == 1) simpleMean=
false;
65 theSimpleMean.
Init(aDataFile, CLHEP::eV);
69 theMean.
Init(aDataFile);
77 aDataFile >> targetMass >>iflag;
78 if(iflag == 2) spontPrompt =
false;
81 aDataFile >> theSpontPrompt;
85 thePrompt.
Init(aDataFile, CLHEP::eV);
91 hasDelayedData =
true;
93 aDataFile >> targetMass >>iflag;
94 thePrecursorDecayConstants.
Init(aDataFile, 1./CLHEP::s);
95 if(iflag == 2) spontDelayed =
false;
98 aDataFile >> theSpontDelayed;
102 theDelayed.
Init(aDataFile, CLHEP::eV);
110 return theSimpleMean.
GetY(anEnergy);
117 if(!hasPromptData)
return 0;
120 return theSpontPrompt;
122 return thePrompt.
GetY(anEnergy);
127 if(!hasDelayedData)
return 0;
130 return theSpontDelayed;
132 return theDelayed.
GetY(anEnergy);
137 return thePrecursorDecayConstants.
GetValue(i);
void Init(std::istream &aDataFile, G4int nPar, G4double unit=1.)
G4double GetValue(G4int i)
G4double GetMean(G4double anEnergy)
G4double GetDecayConstant(G4int i)
~G4ParticleHPParticleYield()
void InitMean(std::istream &aDataFile)
void InitDelayed(std::istream &aDataFile)
G4double GetPrompt(G4double anEnergy)
void InitPrompt(std::istream &aDataFile)
G4ParticleHPParticleYield()
G4double GetDelayed(G4double anEnergy)
G4double GetValue(G4double anEnergy)
void Init(std::istream &theData)
G4double GetY(G4double x)
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)