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

#include <GFlashParticleBounds.hh>

Public Member Functions

 GFlashParticleBounds ()
 
 ~GFlashParticleBounds ()
 
G4double GetMinEneToParametrise (G4ParticleDefinition &particleType)
 
G4double GetMaxEneToParametrise (G4ParticleDefinition &particleType)
 
G4double GetEneToKill (G4ParticleDefinition &particleType)
 
void SetMinEneToParametrise (G4ParticleDefinition &particleType, G4double enemin)
 
void SetMaxEneToParametrise (G4ParticleDefinition &particleType, G4double enemax)
 
void SetEneToKill (G4ParticleDefinition &particleType, G4double enekill)
 

Detailed Description

Definition at line 46 of file GFlashParticleBounds.hh.

Constructor & Destructor Documentation

◆ GFlashParticleBounds()

GFlashParticleBounds::GFlashParticleBounds ( )

Definition at line 43 of file GFlashParticleBounds.cc.

44{
45 // e+e- defaults
46 EMinEneToParametrise = 0.10*GeV;
47 EMaxEneToParametrise = 10000.00*GeV;
48 EEneToKill = 0.1*GeV; // Energie at which electrons are killed
49}

◆ ~GFlashParticleBounds()

GFlashParticleBounds::~GFlashParticleBounds ( )

Definition at line 51 of file GFlashParticleBounds.cc.

52{
53}

Member Function Documentation

◆ GetEneToKill()

G4double GFlashParticleBounds::GetEneToKill ( G4ParticleDefinition particleType)

Definition at line 103 of file GFlashParticleBounds.cc.

105{
106 if (&particleType == G4Electron::ElectronDefinition() ||
107 &particleType == G4Positron::PositronDefinition())
108 return EEneToKill;
109 else return (-DBL_MAX);
110}
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:88
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:88
#define DBL_MAX
Definition: templates.hh:62

Referenced by GFlashShowerModelMessenger::GetCurrentValue(), and GFlashShowerModel::ModelTrigger().

◆ GetMaxEneToParametrise()

G4double GFlashParticleBounds::GetMaxEneToParametrise ( G4ParticleDefinition particleType)

Definition at line 91 of file GFlashParticleBounds.cc.

93{
94 G4double result = 0;
95 if( &particleType == G4Electron::ElectronDefinition()||
96 &particleType == G4Positron::PositronDefinition())
97 {
98 result = EMaxEneToParametrise;
99 }
100 return result;
101}
double G4double
Definition: G4Types.hh:83

Referenced by GFlashShowerModelMessenger::GetCurrentValue(), and GFlashShowerModel::ModelTrigger().

◆ GetMinEneToParametrise()

G4double GFlashParticleBounds::GetMinEneToParametrise ( G4ParticleDefinition particleType)

Definition at line 79 of file GFlashParticleBounds.cc.

81{
82 G4double result = DBL_MAX;
83 if( &particleType == G4Electron::ElectronDefinition()||
84 &particleType == G4Positron::PositronDefinition())
85 {
86 result = EMinEneToParametrise;
87 }
88 return result;
89}

Referenced by GFlashShowerModelMessenger::GetCurrentValue(), and GFlashShowerModel::ModelTrigger().

◆ SetEneToKill()

void GFlashParticleBounds::SetEneToKill ( G4ParticleDefinition particleType,
G4double  enekill 
)

Definition at line 71 of file GFlashParticleBounds.cc.

73{
74 if( &particleType == G4Electron::ElectronDefinition()||
75 &particleType == G4Positron::PositronDefinition())
76 EEneToKill = enekill;
77}

Referenced by GFlashShowerModelMessenger::SetNewValue().

◆ SetMaxEneToParametrise()

void GFlashParticleBounds::SetMaxEneToParametrise ( G4ParticleDefinition particleType,
G4double  enemax 
)

Definition at line 63 of file GFlashParticleBounds.cc.

65{
66 if( &particleType == G4Electron::ElectronDefinition()||
67 &particleType == G4Positron::PositronDefinition())
68 EMaxEneToParametrise = enemax;
69}

Referenced by GFlashShowerModelMessenger::SetNewValue().

◆ SetMinEneToParametrise()

void GFlashParticleBounds::SetMinEneToParametrise ( G4ParticleDefinition particleType,
G4double  enemin 
)

Definition at line 55 of file GFlashParticleBounds.cc.

57{
58 if( &particleType == G4Electron::ElectronDefinition()||
59 &particleType == G4Positron::PositronDefinition())
60 EMinEneToParametrise = enemin;
61}

Referenced by GFlashShowerModelMessenger::SetNewValue().


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