Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4ParticleHPEvapSpectrum Class Reference

#include <G4ParticleHPEvapSpectrum.hh>

Inheritance diagram for G4ParticleHPEvapSpectrum:
Collaboration diagram for G4ParticleHPEvapSpectrum:

Public Member Functions

 G4ParticleHPEvapSpectrum ()
 
 ~G4ParticleHPEvapSpectrum ()
 
void Init (std::istream &aDataFile)
 
G4double GetFractionalProbability (G4double anEnergy)
 
G4double Sample (G4double anEnergy)
 
- Public Member Functions inherited from G4VParticleHPEDis
 G4VParticleHPEDis ()
 
virtual ~G4VParticleHPEDis ()
 

Detailed Description

Definition at line 43 of file G4ParticleHPEvapSpectrum.hh.

Constructor & Destructor Documentation

G4ParticleHPEvapSpectrum::G4ParticleHPEvapSpectrum ( )
inline

Definition at line 46 of file G4ParticleHPEvapSpectrum.hh.

47  {
48  }
G4ParticleHPEvapSpectrum::~G4ParticleHPEvapSpectrum ( )
inline

Definition at line 49 of file G4ParticleHPEvapSpectrum.hh.

50  {
51  }

Member Function Documentation

G4double G4ParticleHPEvapSpectrum::GetFractionalProbability ( G4double  anEnergy)
inlinevirtual

Implements G4VParticleHPEDis.

Definition at line 60 of file G4ParticleHPEvapSpectrum.hh.

61  {
62  return theFractionalProb.GetY(anEnergy);
63  }
G4double GetY(G4double x)

Here is the call graph for this function:

void G4ParticleHPEvapSpectrum::Init ( std::istream &  aDataFile)
inlinevirtual

Implements G4VParticleHPEDis.

Definition at line 53 of file G4ParticleHPEvapSpectrum.hh.

54  {
55  theFractionalProb.Init(aDataFile);
56  theThetaDist.Init(aDataFile);
57  theXDist.Init(aDataFile);
58  }
void Init(std::istream &aDataFile, G4int total, G4double ux=1., G4double uy=1.)

Here is the call graph for this function:

G4double G4ParticleHPEvapSpectrum::Sample ( G4double  anEnergy)
inlinevirtual

Implements G4VParticleHPEDis.

Definition at line 65 of file G4ParticleHPEvapSpectrum.hh.

66  {
67  // when this is called, theFractionalProb was used, and 'k' is sorted out already.
68  G4double x = theXDist.Sample();
69  G4double theta = theThetaDist.GetY(anEnergy);
70  G4double result = x*theta;
71  return result*CLHEP::eV;
72  }
G4double G4ParticleHPJENDLHEData::G4double result
tuple x
Definition: test.py:50
G4double GetY(G4double x)
static constexpr double eV
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:


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