Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4ParticleHPEvapSpectrum Class Reference

#include <G4ParticleHPEvapSpectrum.hh>

+ Inheritance 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 ()
 
virtual void Init (std::istream &theData)=0
 
virtual G4double GetFractionalProbability (G4double anEnergy)=0
 
virtual G4double Sample (G4double anEnergy)=0
 

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)

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

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

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