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 (  ) 

Definition at line 44 of file GFlashParticleBounds.cc.

00045 {    
00046   // e+e- defaults
00047   EMinEneToParametrise = 0.10*GeV;  
00048   EMaxEneToParametrise = 10000.00*GeV;  
00049   EEneToKill = 0.1*GeV; // Energie at which electrons are killed
00050 }

GFlashParticleBounds::~GFlashParticleBounds (  ) 

Definition at line 52 of file GFlashParticleBounds.cc.

00053 {
00054 }


Member Function Documentation

G4double GFlashParticleBounds::GetEneToKill ( G4ParticleDefinition particleType  ) 

Definition at line 105 of file GFlashParticleBounds.cc.

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

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

00106 {
00107   if (&particleType == G4Electron::ElectronDefinition() ||
00108     &particleType == G4Positron::PositronDefinition())  
00109   return EEneToKill;
00110   else return (-DBL_MAX);
00111 }

G4double GFlashParticleBounds::GetMaxEneToParametrise ( G4ParticleDefinition particleType  ) 

Definition at line 93 of file GFlashParticleBounds.cc.

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

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

00094 { 
00095   G4double result = 0;
00096   if( &particleType == G4Electron::ElectronDefinition()||
00097     &particleType == G4Positron::PositronDefinition()) 
00098   {
00099     result = EMaxEneToParametrise; 
00100   }
00101   return result;
00102 }

G4double GFlashParticleBounds::GetMinEneToParametrise ( G4ParticleDefinition particleType  ) 

Definition at line 81 of file GFlashParticleBounds.cc.

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

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

00082 { 
00083   G4double result = DBL_MAX;
00084   if( &particleType == G4Electron::ElectronDefinition()||
00085     &particleType == G4Positron::PositronDefinition()) 
00086   {
00087     result = EMinEneToParametrise;
00088   }        
00089   return result;
00090 }

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

Definition at line 73 of file GFlashParticleBounds.cc.

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

Referenced by GFlashShowerModelMessenger::SetNewValue().

00074 {
00075   if( &particleType == G4Electron::ElectronDefinition()||
00076     &particleType == G4Positron::PositronDefinition()) 
00077   EEneToKill = enekill; 
00078 }

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

Definition at line 65 of file GFlashParticleBounds.cc.

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

Referenced by GFlashShowerModelMessenger::SetNewValue().

00066 {
00067   if( &particleType == G4Electron::ElectronDefinition()||
00068     &particleType == G4Positron::PositronDefinition()) 
00069   EMaxEneToParametrise = enemax; 
00070 }

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

Definition at line 57 of file GFlashParticleBounds.cc.

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

Referenced by GFlashShowerModelMessenger::SetNewValue().

00058 { 
00059   if( &particleType == G4Electron::ElectronDefinition()||
00060     &particleType == G4Positron::PositronDefinition()) 
00061   EMinEneToParametrise = enemin;
00062 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:54:02 2013 for Geant4 by  doxygen 1.4.7