Geant4  10.02.p03
G4ParticleHPGamma Class Reference

#include <G4ParticleHPGamma.hh>

Collaboration diagram for G4ParticleHPGamma:

Public Member Functions

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

Private Attributes

G4double levelEnergy
 
G4double gammaEnergy
 
G4double probability
 
G4ParticleHPLevelnext
 

Static Private Attributes

static G4ThreadLocal int instancecount = 0
 

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  }
G4ParticleHPLevel * next
static G4ThreadLocal int instancecount

◆ ~G4ParticleHPGamma()

G4ParticleHPGamma::~G4ParticleHPGamma ( )

Definition at line 43 of file G4ParticleHPGamma.cc.

43 {instancecount--;}
static G4ThreadLocal int 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  }
65  G4DynamicParticle * theNew = new G4DynamicParticle;
66  theNew->SetDefinition(G4Gamma::Gamma());
68  theResult->push_back(theNew);
69  return theResult;
70  }
G4ParticleHPLevel * next
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:

◆ GetGammaEnergy()

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:

◆ GetLevelEnergy()

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:

◆ GetWeight()

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:

◆ Init()

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

Definition at line 45 of file G4ParticleHPGamma.cc.

46 {
47  G4bool theResult = true;
48  if(aDataFile >> levelEnergy)
49  {
50  aDataFile >> gammaEnergy >> probability;
51  levelEnergy *= keV;
52  gammaEnergy *= keV;
53  }
54  else
55  {
56  theResult=false;
57  }
58  return theResult;
59 }
bool G4bool
Definition: G4Types.hh:79
static const double keV
Definition: G4SIunits.hh:213
Here is the caller graph for this function:

◆ SetNext()

void G4ParticleHPGamma::SetNext ( G4ParticleHPLevel aLevel)
inline

Definition at line 49 of file G4ParticleHPGamma.hh.

50  {
51  next = aLevel;
52  }
G4ParticleHPLevel * next
Here is the caller graph for this function:

Member Data Documentation

◆ gammaEnergy

G4double G4ParticleHPGamma::gammaEnergy
private

Definition at line 90 of file G4ParticleHPGamma.hh.

◆ instancecount

G4ThreadLocal int G4ParticleHPGamma::instancecount = 0
staticprivate

Definition at line 94 of file G4ParticleHPGamma.hh.

◆ levelEnergy

G4double G4ParticleHPGamma::levelEnergy
private

Definition at line 89 of file G4ParticleHPGamma.hh.

◆ next

G4ParticleHPLevel* G4ParticleHPGamma::next
private

Definition at line 93 of file G4ParticleHPGamma.hh.

◆ probability

G4double G4ParticleHPGamma::probability
private

Definition at line 91 of file G4ParticleHPGamma.hh.


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