G4NeutronHPNeutronYield Class Reference

#include <G4NeutronHPNeutronYield.hh>


Public Member Functions

 G4NeutronHPNeutronYield ()
 ~G4NeutronHPNeutronYield ()
G4double GetTargetMass ()
void InitMean (std::ifstream &aDataFile)
void InitPrompt (std::ifstream &aDataFile)
void InitDelayed (std::ifstream &aDataFile)
G4double GetMean (G4double anEnergy)
G4double GetPrompt (G4double anEnergy)
G4double GetDelayed (G4double anEnergy)
G4double GetDecayConstant (G4int i)


Detailed Description

Definition at line 39 of file G4NeutronHPNeutronYield.hh.


Constructor & Destructor Documentation

G4NeutronHPNeutronYield::G4NeutronHPNeutronYield (  )  [inline]

Definition at line 42 of file G4NeutronHPNeutronYield.hh.

00043   {
00044     simpleMean = true;
00045     spontPrompt = true;
00046     hasPromptData = false;
00047     hasDelayedData = false;
00048   }

G4NeutronHPNeutronYield::~G4NeutronHPNeutronYield (  )  [inline]

Definition at line 49 of file G4NeutronHPNeutronYield.hh.

00049 {}


Member Function Documentation

G4double G4NeutronHPNeutronYield::GetDecayConstant ( G4int  i  )  [inline]

Definition at line 130 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPList::GetValue().

Referenced by G4NeutronHPFSFissionFS::ApplyYourself().

00131   {
00132     return thePrecursorDecayConstants.GetValue(i);
00133   }

G4double G4NeutronHPNeutronYield::GetDelayed ( G4double  anEnergy  )  [inline]

Definition at line 120 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPVector::GetY().

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

00121   {
00122     if(!hasDelayedData) return 0;
00123     if(spontDelayed)
00124     {
00125       return theSpontDelayed;
00126     }
00127     return theDelayed.GetY(anEnergy);
00128   }

G4double G4NeutronHPNeutronYield::GetMean ( G4double  anEnergy  )  [inline]

Definition at line 101 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPPolynomExpansion::GetValue(), and G4NeutronHPVector::GetY().

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

00102   {
00103     if(simpleMean)
00104     {
00105     return theSimpleMean.GetY(anEnergy);
00106     }
00107     return theMean.GetValue(anEnergy);
00108   }

G4double G4NeutronHPNeutronYield::GetPrompt ( G4double  anEnergy  )  [inline]

Definition at line 110 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPVector::GetY().

Referenced by G4NeutronHPFSFissionFS::SampleNeutronMult().

00111   {
00112     if(!hasPromptData) return 0;
00113     if(spontPrompt)
00114     {
00115       return theSpontPrompt;
00116     }
00117     return thePrompt.GetY(anEnergy);
00118   }

G4double G4NeutronHPNeutronYield::GetTargetMass (  )  [inline]

Definition at line 51 of file G4NeutronHPNeutronYield.hh.

Referenced by G4NeutronHPFSFissionFS::Init(), and G4FissionLibrary::Init().

00051 { return targetMass; }

void G4NeutronHPNeutronYield::InitDelayed ( std::ifstream &  aDataFile  )  [inline]

Definition at line 84 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPVector::Init(), and G4NeutronHPList::Init().

Referenced by G4NeutronHPFSFissionFS::Init(), and G4FissionLibrary::Init().

00085   {
00086     hasDelayedData = true;
00087     G4int iflag;
00088     aDataFile >> targetMass >>iflag;
00089     thePrecursorDecayConstants.Init(aDataFile, 1./CLHEP::s); // s is the CLHEP unit second
00090     if(iflag == 2) spontDelayed = false;
00091     if(spontDelayed)
00092     {
00093       aDataFile >> theSpontDelayed;
00094     }
00095     else
00096     {
00097       theDelayed.Init(aDataFile, CLHEP::eV);
00098     }
00099   }

void G4NeutronHPNeutronYield::InitMean ( std::ifstream &  aDataFile  )  [inline]

Definition at line 53 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPPolynomExpansion::Init(), and G4NeutronHPVector::Init().

Referenced by G4NeutronHPFSFissionFS::Init(), and G4FissionLibrary::Init().

00054   {
00055     G4int iflag;
00056     aDataFile >> targetMass >>iflag;
00057     if(iflag == 1) simpleMean=false;
00058     if(simpleMean)
00059     {
00060       theSimpleMean.Init(aDataFile, CLHEP::eV);
00061     }
00062     else
00063     {
00064       theMean.Init(aDataFile);
00065     }
00066   }

void G4NeutronHPNeutronYield::InitPrompt ( std::ifstream &  aDataFile  )  [inline]

Definition at line 68 of file G4NeutronHPNeutronYield.hh.

References G4NeutronHPVector::Init().

Referenced by G4NeutronHPFSFissionFS::Init(), and G4FissionLibrary::Init().

00069   { 
00070     hasPromptData = true;
00071     G4int iflag;
00072     aDataFile >> targetMass >>iflag;
00073     if(iflag == 2) spontPrompt = false;
00074     if(spontPrompt)
00075     {
00076       aDataFile >> theSpontPrompt;
00077     }
00078     else
00079     {
00080       thePrompt.Init(aDataFile, CLHEP::eV);
00081     }
00082   }


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