#include <G4NeutronHPGamma.hh>
Public Member Functions | |
G4NeutronHPGamma () | |
~G4NeutronHPGamma () | |
G4bool | Init (std::ifstream &aDataFile) |
void | SetNext (G4NeutronHPLevel *aLevel) |
G4DynamicParticleVector * | GetDecayGammas () |
G4double | GetLevelEnergy () |
G4double | GetGammaEnergy () |
G4double | GetWeight () |
Definition at line 40 of file G4NeutronHPGamma.hh.
G4NeutronHPGamma::G4NeutronHPGamma | ( | ) |
G4NeutronHPGamma::~G4NeutronHPGamma | ( | ) |
G4DynamicParticleVector* G4NeutronHPGamma::GetDecayGammas | ( | ) | [inline] |
Definition at line 54 of file G4NeutronHPGamma.hh.
References G4Gamma::Gamma(), G4NeutronHPLevel::GetDecayGammas(), G4DynamicParticle::SetDefinition(), and G4DynamicParticle::SetKineticEnergy().
Referenced by G4NeutronHPLevel::GetDecayGammas().
00055 { 00056 G4DynamicParticleVector * theResult; 00057 if(next == 0) 00058 { 00059 theResult = new G4DynamicParticleVector; 00060 } 00061 else 00062 { 00063 theResult = next->GetDecayGammas(); 00064 } 00065 G4DynamicParticle * theNew = new G4DynamicParticle; 00066 theNew->SetDefinition(G4Gamma::Gamma()); 00067 theNew->SetKineticEnergy(gammaEnergy); 00068 theResult->push_back(theNew); 00069 return theResult; 00070 }
G4double G4NeutronHPGamma::GetGammaEnergy | ( | ) | [inline] |
Definition at line 77 of file G4NeutronHPGamma.hh.
Referenced by G4NeutronHPLevel::GetGammaEnergy(), and G4NeutronHPDeExGammas::Init().
G4double G4NeutronHPGamma::GetLevelEnergy | ( | ) | [inline] |
Definition at line 72 of file G4NeutronHPGamma.hh.
Referenced by G4NeutronHPDeExGammas::Init(), and G4NeutronHPLevel::SetGamma().
G4double G4NeutronHPGamma::GetWeight | ( | ) | [inline] |
Definition at line 82 of file G4NeutronHPGamma.hh.
Referenced by G4NeutronHPLevel::GetDecayGammas().
G4bool G4NeutronHPGamma::Init | ( | std::ifstream & | aDataFile | ) |
Definition at line 43 of file G4NeutronHPGamma.cc.
00044 { 00045 G4bool theResult = true; 00046 if(aDataFile >> levelEnergy) 00047 { 00048 aDataFile >> gammaEnergy >> probability; 00049 levelEnergy *= keV; 00050 gammaEnergy *= keV; 00051 } 00052 else 00053 { 00054 theResult=false; 00055 } 00056 return theResult; 00057 }
void G4NeutronHPGamma::SetNext | ( | G4NeutronHPLevel * | aLevel | ) | [inline] |