CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackingAction.h
Go to the documentation of this file.
1 #ifndef SimG4Core_TrackingAction_H
2 #define SimG4Core_TrackingAction_H
3 
6 
7 #include "G4UserTrackingAction.hh"
8 #include "G4VSolid.hh"
9 
10 class EventAction;
11 class TrackWithHistory;
12 class BeginOfTrack;
13 class EndOfTrack;
14 
15 class TrackingAction : public G4UserTrackingAction
16 {
17 public:
19  virtual ~TrackingAction();
20  virtual void PreUserTrackingAction(const G4Track * aTrack);
21  virtual void PostUserTrackingAction(const G4Track * aTrack);
23  G4TrackingManager * getTrackManager();
24 
27 private:
28  bool isNewPrimary(const G4Track * aTrack);
29 private:
32  G4VSolid * worldSolid;
35 };
36 
37 #endif
virtual ~TrackingAction()
TrackWithHistory * currentTrackWithHistory()
virtual void PreUserTrackingAction(const G4Track *aTrack)
TrackWithHistory * currentTrack_
G4VSolid * worldSolid
EventAction * eventAction_
G4TrackingManager * getTrackManager()
TrackingAction(EventAction *ea, const edm::ParameterSet &ps)
SimActivityRegistry::EndOfTrackSignal m_endOfTrackSignal
virtual void PostUserTrackingAction(const G4Track *aTrack)
bool isNewPrimary(const G4Track *aTrack)
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal