ATLAS Offline Software
DeadMaterialShower.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef G4FASTSIMULATION_DEADMATERIALSHOWER_H
6 #define G4FASTSIMULATION_DEADMATERIALSHOWER_H
7 
8 #include "G4VFastSimulationModel.hh"
9 
10 #include <string>
11 class G4FastStep;
12 class G4FastTrack;
13 class G4ParticleDefinition;
14 
15 class DeadMaterialShower: public G4VFastSimulationModel
16 {
17  public:
18 
19  DeadMaterialShower(const std::string& name, const double& highEnergy, const double& lowEnergy, const double& zcutoff);
21 
22  G4bool IsApplicable(const G4ParticleDefinition&) override final;
23  void DoIt(const G4FastTrack&, G4FastStep&) override final;
24 
28  G4bool ModelTrigger(const G4FastTrack &) override final;
29 
30  private:
31  double m_highEnergy;
32  double m_lowEnergy;
33  double m_zcutoff;
34 
35 };
36 
37 #endif //G4FASTSIMULATION_DEADMATERIALSHOWER_H
38 
DeadMaterialShower::DeadMaterialShower
DeadMaterialShower(const std::string &name, const double &highEnergy, const double &lowEnergy, const double &zcutoff)
Definition: DeadMaterialShower.cxx:19
DeadMaterialShower::IsApplicable
G4bool IsApplicable(const G4ParticleDefinition &) override final
Definition: DeadMaterialShower.cxx:28
DeadMaterialShower::m_zcutoff
double m_zcutoff
!< Kill only electrons and positrons up to this energy
Definition: DeadMaterialShower.h:33
DeadMaterialShower::~DeadMaterialShower
~DeadMaterialShower()
Definition: DeadMaterialShower.h:20
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
DeadMaterialShower::DoIt
void DoIt(const G4FastTrack &, G4FastStep &) override final
Definition: DeadMaterialShower.cxx:68
DeadMaterialShower::ModelTrigger
G4bool ModelTrigger(const G4FastTrack &) override final
Determines the applicability of the fast sim model to this particular track.
Definition: DeadMaterialShower.cxx:45
DeadMaterialShower
Definition: DeadMaterialShower.h:16
DeadMaterialShower::m_highEnergy
double m_highEnergy
Definition: DeadMaterialShower.h:31
DeadMaterialShower::m_lowEnergy
double m_lowEnergy
!< Kill everything but muons up to this energy
Definition: DeadMaterialShower.h:32