CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SteppingAction.h
Go to the documentation of this file.
1 #ifndef SimG4Core_SteppingAction_H
2 #define SimG4Core_SteppingAction_H
3 
6 
7 #include "G4LogicalVolume.hh"
8 #include "G4Region.hh"
9 #include "G4UserSteppingAction.hh"
10 #include "G4VPhysicalVolume.hh"
11 
12 #include <string>
13 #include <vector>
14 
15 class EventAction;
16 class G4VTouchable;
17 class G4Track;
18 
19 class SteppingAction: public G4UserSteppingAction {
20 
21 public:
24 
25  void UserSteppingAction(const G4Step * aStep);
26 
28 
29 private:
30 
31  bool catchLowEnergyInVacuum(G4Track * theTrack, double theKenergy);
32  bool catchLongLived (const G4Step * aStep);
33  bool killLowEnergy (const G4Step * aStep);
34  bool initPointer();
35  bool isThisVolume(const G4VTouchable* touch, G4VPhysicalVolume* pv);
36  void killTrack (const G4Step * aStep);
37 
38 private:
40  G4VPhysicalVolume *tracker, *calo;
43  double maxTrackTime;
44  std::vector<double> maxTrackTimes, ekinMins;
45  std::vector<std::string> maxTimeNames, ekinNames, ekinParticles;
46  std::vector<G4Region*> maxTimeRegions;
47  std::vector<G4LogicalVolume*> ekinVolumes;
48  std::vector<int> ekinPDG;
49  int verbose;
50 
55 
56 };
57 
58 #endif
std::vector< int > ekinPDG
double theCriticalDensity
SimActivityRegistry::G4StepSignal m_g4StepSignal
bool catchLongLived(const G4Step *aStep)
G4VPhysicalVolume * calo
bool isThisVolume(const G4VTouchable *touch, G4VPhysicalVolume *pv)
void UserSteppingAction(const G4Step *aStep)
std::vector< double > maxTrackTimes
bool catchLowEnergyInVacuum(G4Track *theTrack, double theKenergy)
SteppingAction(EventAction *ea, const edm::ParameterSet &ps)
std::vector< G4LogicalVolume * > ekinVolumes
double theCriticalEnergyForVacuum
EventAction * eventAction_
void killTrack(const G4Step *aStep)
std::vector< double > ekinMins
std::vector< std::string > maxTimeNames
std::vector< std::string > ekinNames
bool killLowEnergy(const G4Step *aStep)
G4VPhysicalVolume * tracker
std::vector< std::string > ekinParticles
std::vector< G4Region * > maxTimeRegions