Geant4-11
Public Member Functions | Private Attributes
G4ParticleHPEvapSpectrum Class Reference

#include <G4ParticleHPEvapSpectrum.hh>

Inheritance diagram for G4ParticleHPEvapSpectrum:
G4VParticleHPEDis

Public Member Functions

 G4ParticleHPEvapSpectrum ()
 
G4double GetFractionalProbability (G4double anEnergy)
 
void Init (std::istream &aDataFile)
 
G4double Sample (G4double anEnergy)
 
 ~G4ParticleHPEvapSpectrum ()
 

Private Attributes

G4ParticleHPVector theFractionalProb
 
G4ParticleHPVector theThetaDist
 
G4ParticleHPVector theXDist
 

Detailed Description

Definition at line 43 of file G4ParticleHPEvapSpectrum.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPEvapSpectrum()

G4ParticleHPEvapSpectrum::G4ParticleHPEvapSpectrum ( )
inline

Definition at line 46 of file G4ParticleHPEvapSpectrum.hh.

47 {
48 }

◆ ~G4ParticleHPEvapSpectrum()

G4ParticleHPEvapSpectrum::~G4ParticleHPEvapSpectrum ( )
inline

Definition at line 49 of file G4ParticleHPEvapSpectrum.hh.

50 {
51 }

Member Function Documentation

◆ GetFractionalProbability()

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)

References G4ParticleHPVector::GetY(), and theFractionalProb.

◆ Init()

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

References G4ParticleHPVector::Init(), theFractionalProb, theThetaDist, and theXDist.

◆ Sample()

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.
69 G4double theta = theThetaDist.GetY(anEnergy);
70 G4double result = x*theta;
71 return result*CLHEP::eV;
72 }
double G4double
Definition: G4Types.hh:83
static constexpr double eV

References CLHEP::eV, G4ParticleHPVector::GetY(), G4ParticleHPVector::Sample(), theThetaDist, and theXDist.

Field Documentation

◆ theFractionalProb

G4ParticleHPVector G4ParticleHPEvapSpectrum::theFractionalProb
private

Definition at line 76 of file G4ParticleHPEvapSpectrum.hh.

Referenced by GetFractionalProbability(), and Init().

◆ theThetaDist

G4ParticleHPVector G4ParticleHPEvapSpectrum::theThetaDist
private

Definition at line 78 of file G4ParticleHPEvapSpectrum.hh.

Referenced by Init(), and Sample().

◆ theXDist

G4ParticleHPVector G4ParticleHPEvapSpectrum::theXDist
private

Definition at line 79 of file G4ParticleHPEvapSpectrum.hh.

Referenced by Init(), and Sample().


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