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

#include <G4ParticleHPGamma.hh>

Public Member Functions

 G4ParticleHPGamma ()
 
 ~G4ParticleHPGamma ()
 
G4bool Init (std::istream &aDataFile)
 
void SetNext (G4ParticleHPLevel *aLevel)
 
G4DynamicParticleVectorGetDecayGammas ()
 
G4double GetLevelEnergy ()
 
G4double GetGammaEnergy ()
 
G4double GetWeight ()
 

Detailed Description

Definition at line 40 of file G4ParticleHPGamma.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPGamma()

G4ParticleHPGamma::G4ParticleHPGamma ( )

Definition at line 37 of file G4ParticleHPGamma.cc.

38 {
39 next = 0;
40 instancecount ++;
41 levelEnergy = 0.0;
42 gammaEnergy = 0.0;
43 probability = 0.0;
44 }

◆ ~G4ParticleHPGamma()

G4ParticleHPGamma::~G4ParticleHPGamma ( )

Definition at line 46 of file G4ParticleHPGamma.cc.

46{instancecount--;}

Member Function Documentation

◆ GetDecayGammas()

G4DynamicParticleVector * G4ParticleHPGamma::GetDecayGammas ( )
inline

Definition at line 54 of file G4ParticleHPGamma.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:85
G4DynamicParticleVector * GetDecayGammas()

Referenced by G4ParticleHPLevel::GetDecayGammas().

◆ GetGammaEnergy()

G4double G4ParticleHPGamma::GetGammaEnergy ( )
inline

Definition at line 77 of file G4ParticleHPGamma.hh.

78 {
79 return gammaEnergy;
80 }

Referenced by G4ParticleHPLevel::GetGammaEnergy(), and G4ParticleHPDeExGammas::Init().

◆ GetLevelEnergy()

G4double G4ParticleHPGamma::GetLevelEnergy ( )
inline

Definition at line 72 of file G4ParticleHPGamma.hh.

73 {
74 return levelEnergy;
75 }

Referenced by G4ParticleHPDeExGammas::Init(), and G4ParticleHPLevel::SetGamma().

◆ GetWeight()

G4double G4ParticleHPGamma::GetWeight ( )
inline

Definition at line 82 of file G4ParticleHPGamma.hh.

83 {
84 return probability;
85 }

Referenced by G4ParticleHPLevel::GetDecayGammas().

◆ Init()

G4bool G4ParticleHPGamma::Init ( std::istream &  aDataFile)

Definition at line 48 of file G4ParticleHPGamma.cc.

49{
50 G4bool theResult = true;
51 if(aDataFile >> levelEnergy)
52 {
53 aDataFile >> gammaEnergy >> probability;
54 levelEnergy *= keV;
55 gammaEnergy *= keV;
56 }
57 else
58 {
59 theResult=false;
60 }
61 return theResult;
62}
bool G4bool
Definition: G4Types.hh:86

Referenced by G4ParticleHPDeExGammas::Init().

◆ SetNext()

void G4ParticleHPGamma::SetNext ( G4ParticleHPLevel aLevel)
inline

Definition at line 49 of file G4ParticleHPGamma.hh.

50 {
51 next = aLevel;
52 }

Referenced by G4ParticleHPDeExGammas::Init().


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