Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ( )

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 ( )

Definition at line 46 of file G4ParticleHPGamma.cc.

46 {instancecount--;}

Member Function Documentation

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  }
65  G4DynamicParticle * theNew = new G4DynamicParticle;
66  theNew->SetDefinition(G4Gamma::Gamma());
67  theNew->SetKineticEnergy(gammaEnergy);
68  theResult->push_back(theNew);
69  return theResult;
70  }
G4DynamicParticleVector * GetDecayGammas()
std::vector< G4DynamicParticle * > G4DynamicParticleVector
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
void SetKineticEnergy(G4double aEnergy)
void SetDefinition(const G4ParticleDefinition *aParticleDefinition)

Here is the call graph for this function:

Here is the caller graph for this function:

G4double G4ParticleHPGamma::GetGammaEnergy ( )
inline

Definition at line 77 of file G4ParticleHPGamma.hh.

78  {
79  return gammaEnergy;
80  }

Here is the caller graph for this function:

G4double G4ParticleHPGamma::GetLevelEnergy ( )
inline

Definition at line 72 of file G4ParticleHPGamma.hh.

73  {
74  return levelEnergy;
75  }

Here is the caller graph for this function:

G4double G4ParticleHPGamma::GetWeight ( )
inline

Definition at line 82 of file G4ParticleHPGamma.hh.

83  {
84  return probability;
85  }

Here is the caller graph for this function:

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:79
static constexpr double keV
Definition: G4SIunits.hh:216

Here is the caller graph for this function:

void G4ParticleHPGamma::SetNext ( G4ParticleHPLevel aLevel)
inline

Definition at line 49 of file G4ParticleHPGamma.hh.

50  {
51  next = aLevel;
52  }

Here is the caller graph for this function:


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