Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4NeutronHPGamma Class Reference

#include <G4NeutronHPGamma.hh>

Public Member Functions

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

Detailed Description

Definition at line 39 of file G4NeutronHPGamma.hh.

Constructor & Destructor Documentation

G4NeutronHPGamma::G4NeutronHPGamma ( )

Definition at line 35 of file G4NeutronHPGamma.cc.

36  {
37  next = 0;
38  instancecount ++;
39  }
G4NeutronHPGamma::~G4NeutronHPGamma ( )

Definition at line 41 of file G4NeutronHPGamma.cc.

41 {instancecount--;}

Member Function Documentation

G4DynamicParticleVector* G4NeutronHPGamma::GetDecayGammas ( )
inline

Definition at line 53 of file G4NeutronHPGamma.hh.

References G4Gamma::Gamma(), G4NeutronHPLevel::GetDecayGammas(), G4DynamicParticle::SetDefinition(), and G4DynamicParticle::SetKineticEnergy().

Referenced by G4NeutronHPLevel::GetDecayGammas().

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

Definition at line 76 of file G4NeutronHPGamma.hh.

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

77  {
78  return gammaEnergy;
79  }
G4double G4NeutronHPGamma::GetLevelEnergy ( )
inline

Definition at line 71 of file G4NeutronHPGamma.hh.

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

72  {
73  return levelEnergy;
74  }
G4double G4NeutronHPGamma::GetWeight ( )
inline

Definition at line 81 of file G4NeutronHPGamma.hh.

Referenced by G4NeutronHPLevel::GetDecayGammas().

82  {
83  return probability;
84  }
G4bool G4NeutronHPGamma::Init ( std::istream &  aDataFile)

Definition at line 43 of file G4NeutronHPGamma.cc.

References python.hepunit::keV.

Referenced by G4NeutronHPDeExGammas::Init().

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:79
void G4NeutronHPGamma::SetNext ( G4NeutronHPLevel aLevel)
inline

Definition at line 48 of file G4NeutronHPGamma.hh.

Referenced by G4NeutronHPDeExGammas::Init().

49  {
50  next = aLevel;
51  }

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