Geant4 11.2.2
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 ()=default
 
 ~G4ParticleHPEvapSpectrum () override=default
 
void Init (std::istream &aDataFile) override
 
G4double GetFractionalProbability (G4double anEnergy) override
 
G4double Sample (G4double anEnergy) override
 
- Public Member Functions inherited from G4VParticleHPEDis
 G4VParticleHPEDis ()=default
 
virtual ~G4VParticleHPEDis ()=default
 

Detailed Description

Definition at line 44 of file G4ParticleHPEvapSpectrum.hh.

Constructor & Destructor Documentation

◆ G4ParticleHPEvapSpectrum()

G4ParticleHPEvapSpectrum::G4ParticleHPEvapSpectrum ( )
default

◆ ~G4ParticleHPEvapSpectrum()

G4ParticleHPEvapSpectrum::~G4ParticleHPEvapSpectrum ( )
overridedefault

Member Function Documentation

◆ GetFractionalProbability()

G4double G4ParticleHPEvapSpectrum::GetFractionalProbability ( G4double anEnergy)
inlineoverridevirtual

Implements G4VParticleHPEDis.

Definition at line 57 of file G4ParticleHPEvapSpectrum.hh.

58 {
59 return theFractionalProb.GetY(anEnergy);
60 }
G4double GetY(G4double x)

◆ Init()

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

Implements G4VParticleHPEDis.

Definition at line 50 of file G4ParticleHPEvapSpectrum.hh.

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

◆ Sample()

G4double G4ParticleHPEvapSpectrum::Sample ( G4double anEnergy)
inlineoverridevirtual

Implements G4VParticleHPEDis.

Definition at line 62 of file G4ParticleHPEvapSpectrum.hh.

63 {
64 // when this is called, theFractionalProb was used, and 'k' is sorted out already.
65 G4double x = theXDist.Sample();
66 G4double theta = theThetaDist.GetY(anEnergy);
67 G4double result = x * theta;
68 return result * CLHEP::eV;
69 }
double G4double
Definition G4Types.hh:83

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