]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4TrackingAction.h
New function SetDebugLevel(Int_t)
[u/mrichter/AliRoot.git] / TGeant4 / TG4TrackingAction.h
1 // $Id$
2 // Category: event
3 //
4 // Class that ensures calling sensitive detector
5 // before track starts stepping.
6 // It also takes care of setting step status (kVertex)
7 // and passing G4Track to TG4StepManager.
8
9 #ifndef TG4_TRACKING_ACTION_H
10 #define TG4_TRACKING_ACTION_H
11
12 #include <G4UserTrackingAction.hh>
13 #include <globals.hh>
14
15 class G4Track;
16
17 class TG4TrackingAction : public G4UserTrackingAction 
18 {
19   public:
20     TG4TrackingAction();
21     // --> protected
22     // TG4TrackingAction(const TG4TrackingAction& right);
23     virtual ~TG4TrackingAction();
24    
25     // methods
26     virtual void PreTrackingAction(const G4Track* aTrack) {;}
27     virtual void PostTrackingAction(const G4Track* aTrack) {;}
28                   // the following methods should not
29                   // be overwritten in a derived class
30     virtual void PreUserTrackingAction(const G4Track* aTrack);
31     virtual void PostUserTrackingAction(const G4Track* aTrack);
32
33
34   protected:
35     TG4TrackingAction(const TG4TrackingAction& right);
36
37     // operators
38     TG4TrackingAction& operator=(const TG4TrackingAction& right);
39 };
40
41 #endif //TG4_TRACKING_ACTION_H