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

Definition at line 35 of file G4NeutronHPGamma.cc.

00036   {
00037     next = 0;
00038     instancecount ++;
00039   }

G4NeutronHPGamma::~G4NeutronHPGamma (  ) 

Definition at line 41 of file G4NeutronHPGamma.cc.

00041 {instancecount--;}


Member Function Documentation

G4DynamicParticleVector* G4NeutronHPGamma::GetDecayGammas (  )  [inline]

Definition at line 54 of file G4NeutronHPGamma.hh.

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

Referenced by G4NeutronHPLevel::GetDecayGammas().

00055   {
00056     G4DynamicParticleVector * theResult;
00057     if(next == 0)
00058     {
00059       theResult = new G4DynamicParticleVector;
00060     }
00061     else
00062     {
00063       theResult = next->GetDecayGammas();
00064     }
00065     G4DynamicParticle * theNew = new G4DynamicParticle;
00066     theNew->SetDefinition(G4Gamma::Gamma());
00067     theNew->SetKineticEnergy(gammaEnergy);
00068     theResult->push_back(theNew);
00069     return theResult;
00070   }

G4double G4NeutronHPGamma::GetGammaEnergy (  )  [inline]

Definition at line 77 of file G4NeutronHPGamma.hh.

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

00078   {
00079     return gammaEnergy;
00080   }

G4double G4NeutronHPGamma::GetLevelEnergy (  )  [inline]

Definition at line 72 of file G4NeutronHPGamma.hh.

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

00073   {
00074     return levelEnergy;
00075   }

G4double G4NeutronHPGamma::GetWeight (  )  [inline]

Definition at line 82 of file G4NeutronHPGamma.hh.

Referenced by G4NeutronHPLevel::GetDecayGammas().

00083   {
00084     return probability;
00085   }

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

Definition at line 43 of file G4NeutronHPGamma.cc.

00044 {
00045   G4bool theResult = true;
00046   if(aDataFile >> levelEnergy)
00047   {
00048     aDataFile >> gammaEnergy >> probability;
00049     levelEnergy *= keV;
00050     gammaEnergy *= keV;
00051   }
00052   else
00053   {
00054     theResult=false;
00055   }
00056   return theResult;
00057 }

void G4NeutronHPGamma::SetNext ( G4NeutronHPLevel aLevel  )  [inline]

Definition at line 49 of file G4NeutronHPGamma.hh.

00050   {
00051     next = aLevel;
00052   }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:38 2013 for Geant4 by  doxygen 1.4.7