]>
Commit | Line | Data |
---|---|---|
6fc5df41 | 1 | // $Id$ |
2 | // Category: event | |
3 | // | |
499b353a | 4 | // Author: I.Hrivnacova |
5 | // | |
6 | // Class TG4TrackingAction | |
7 | // ----------------------- | |
6fc5df41 | 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> | |
6fc5df41 | 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 |