]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TGeant4/TG4TrackingAction.h
changed printout
[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
14 class G4Track;
15
16 class TG4TrackingAction : public G4UserTrackingAction 
17 {
18   public:
19     TG4TrackingAction();
20     // --> protected
21     // TG4TrackingAction(const TG4TrackingAction& right);
22     virtual ~TG4TrackingAction();
23    
24     // methods
25     virtual void PreTrackingAction(const G4Track* aTrack) {;}
26     virtual void PostTrackingAction(const G4Track* aTrack) {;}
27                   // the following methods should not
28                   // be overwritten in a derived class
29     virtual void PreUserTrackingAction(const G4Track* aTrack);
30     virtual void PostUserTrackingAction(const G4Track* aTrack);
31
32
33   protected:
34     TG4TrackingAction(const TG4TrackingAction& right);
35
36     // operators
37     TG4TrackingAction& operator=(const TG4TrackingAction& right);
38 };
39
40 #endif //TG4_TRACKING_ACTION_H