Geant4 9.6.0
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 47 of file GFlashParticleBounds.hh.

Constructor & Destructor Documentation

◆ GFlashParticleBounds()

GFlashParticleBounds::GFlashParticleBounds ( )

Definition at line 44 of file GFlashParticleBounds.cc.

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

◆ ~GFlashParticleBounds()

GFlashParticleBounds::~GFlashParticleBounds ( )

Definition at line 52 of file GFlashParticleBounds.cc.

53{
54}

Member Function Documentation

◆ GetEneToKill()

G4double GFlashParticleBounds::GetEneToKill ( G4ParticleDefinition particleType)

Definition at line 104 of file GFlashParticleBounds.cc.

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

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

◆ GetMaxEneToParametrise()

G4double GFlashParticleBounds::GetMaxEneToParametrise ( G4ParticleDefinition particleType)

Definition at line 92 of file GFlashParticleBounds.cc.

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

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

◆ GetMinEneToParametrise()

G4double GFlashParticleBounds::GetMinEneToParametrise ( G4ParticleDefinition particleType)

Definition at line 80 of file GFlashParticleBounds.cc.

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

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

◆ SetEneToKill()

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

Definition at line 72 of file GFlashParticleBounds.cc.

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

Referenced by GFlashShowerModelMessenger::SetNewValue().

◆ SetMaxEneToParametrise()

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

Definition at line 64 of file GFlashParticleBounds.cc.

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

Referenced by GFlashShowerModelMessenger::SetNewValue().

◆ SetMinEneToParametrise()

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

Definition at line 56 of file GFlashParticleBounds.cc.

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

Referenced by GFlashShowerModelMessenger::SetNewValue().


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