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