test
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 
21  virtual void PreUserTrackingAction(const G4Track * aTrack);
22  virtual void PostUserTrackingAction(const G4Track * aTrack);
23 
25  const G4Track * geant4Track() const { return g4Track_; }
26  G4TrackingManager * getTrackManager();
27 
30 
31 private:
34  const G4Track * g4Track_;
35  G4VSolid * worldSolid;
37  bool checkTrack;
39 };
40 
41 #endif
virtual ~TrackingAction()
TrackWithHistory * currentTrackWithHistory()
virtual void PreUserTrackingAction(const G4Track *aTrack)
const G4Track * g4Track_
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)
const G4Track * geant4Track() const
SimActivityRegistry::BeginOfTrackSignal m_beginOfTrackSignal