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

#include <GFlashParticleBounds.hh>

Public Member Functions

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

Private Attributes

G4double EEneToKill
 
G4double EMaxEneToParametrise
 
G4double EMinEneToParametrise
 

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
47 EMaxEneToParametrise = 10000.00*GeV;
48 EEneToKill = 0.1*GeV; // Energie at which electrons are killed
49}
static constexpr double GeV
Definition: G4SIunits.hh:203

References EEneToKill, EMaxEneToParametrise, EMinEneToParametrise, and GeV.

◆ ~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

References DBL_MAX, EEneToKill, G4Electron::ElectronDefinition(), and G4Positron::PositronDefinition().

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

References G4Electron::ElectronDefinition(), EMaxEneToParametrise, and G4Positron::PositronDefinition().

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}

References DBL_MAX, G4Electron::ElectronDefinition(), EMinEneToParametrise, and G4Positron::PositronDefinition().

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}

References EEneToKill, G4Electron::ElectronDefinition(), and G4Positron::PositronDefinition().

Referenced by GFlashShowerModelMessenger::SetNewValue().

◆ SetMaxEneToParametrise()

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

◆ SetMinEneToParametrise()

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

Field Documentation

◆ EEneToKill

G4double GFlashParticleBounds::EEneToKill
private

Definition at line 71 of file GFlashParticleBounds.hh.

Referenced by GetEneToKill(), GFlashParticleBounds(), and SetEneToKill().

◆ EMaxEneToParametrise

G4double GFlashParticleBounds::EMaxEneToParametrise
private

◆ EMinEneToParametrise

G4double GFlashParticleBounds::EMinEneToParametrise
private

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