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

#include <G4NeutronHPGamma.hh>

Public Member Functions

 G4NeutronHPGamma ()
 
 ~G4NeutronHPGamma ()
 
G4bool Init (std::ifstream &aDataFile)
 
void SetNext (G4NeutronHPLevel *aLevel)
 
G4DynamicParticleVectorGetDecayGammas ()
 
G4double GetLevelEnergy ()
 
G4double GetGammaEnergy ()
 
G4double GetWeight ()
 

Detailed Description

Definition at line 40 of file G4NeutronHPGamma.hh.

Constructor & Destructor Documentation

◆ G4NeutronHPGamma()

G4NeutronHPGamma::G4NeutronHPGamma ( )

Definition at line 35 of file G4NeutronHPGamma.cc.

36 {
37 next = 0;
38 instancecount ++;
39 }

◆ ~G4NeutronHPGamma()

G4NeutronHPGamma::~G4NeutronHPGamma ( )

Definition at line 41 of file G4NeutronHPGamma.cc.

41{instancecount--;}

Member Function Documentation

◆ GetDecayGammas()

G4DynamicParticleVector * G4NeutronHPGamma::GetDecayGammas ( )
inline

Definition at line 54 of file G4NeutronHPGamma.hh.

55 {
56 G4DynamicParticleVector * theResult;
57 if(next == 0)
58 {
59 theResult = new G4DynamicParticleVector;
60 }
61 else
62 {
63 theResult = next->GetDecayGammas();
64 }
67 theNew->SetKineticEnergy(gammaEnergy);
68 theResult->push_back(theNew);
69 return theResult;
70 }
std::vector< G4DynamicParticle * > G4DynamicParticleVector
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)
void SetKineticEnergy(G4double aEnergy)
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
G4DynamicParticleVector * GetDecayGammas()

Referenced by G4NeutronHPLevel::GetDecayGammas().

◆ GetGammaEnergy()

G4double G4NeutronHPGamma::GetGammaEnergy ( )
inline

Definition at line 77 of file G4NeutronHPGamma.hh.

78 {
79 return gammaEnergy;
80 }

Referenced by G4NeutronHPLevel::GetGammaEnergy(), and G4NeutronHPDeExGammas::Init().

◆ GetLevelEnergy()

G4double G4NeutronHPGamma::GetLevelEnergy ( )
inline

Definition at line 72 of file G4NeutronHPGamma.hh.

73 {
74 return levelEnergy;
75 }

Referenced by G4NeutronHPDeExGammas::Init(), and G4NeutronHPLevel::SetGamma().

◆ GetWeight()

G4double G4NeutronHPGamma::GetWeight ( )
inline

Definition at line 82 of file G4NeutronHPGamma.hh.

83 {
84 return probability;
85 }

Referenced by G4NeutronHPLevel::GetDecayGammas().

◆ Init()

G4bool G4NeutronHPGamma::Init ( std::ifstream &  aDataFile)

Definition at line 43 of file G4NeutronHPGamma.cc.

44{
45 G4bool theResult = true;
46 if(aDataFile >> levelEnergy)
47 {
48 aDataFile >> gammaEnergy >> probability;
49 levelEnergy *= keV;
50 gammaEnergy *= keV;
51 }
52 else
53 {
54 theResult=false;
55 }
56 return theResult;
57}
bool G4bool
Definition: G4Types.hh:67

Referenced by G4NeutronHPDeExGammas::Init().

◆ SetNext()

void G4NeutronHPGamma::SetNext ( G4NeutronHPLevel aLevel)
inline

Definition at line 49 of file G4NeutronHPGamma.hh.

50 {
51 next = aLevel;
52 }

Referenced by G4NeutronHPDeExGammas::Init().


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