]>
Commit | Line | Data |
---|---|---|
676fb573 | 1 | // $Id$ |
2 | // Category: event | |
3 | // | |
4 | // Class for detecting and stopping looping particles | |
cb7b55a2 | 5 | // or particles that reached maximal number of steps. |
676fb573 | 6 | |
7 | #ifndef ALI_STEPPING_ACTION_H | |
8 | #define ALI_STEPPING_ACTION_H | |
9 | ||
9bcb6317 | 10 | #include "TG4SteppingAction.h" |
11 | ||
676fb573 | 12 | #include <G4ThreeVector.hh> |
13 | #include <globals.hh> | |
14 | ||
15 | class AliSteppingActionMessenger; | |
16 | ||
9bcb6317 | 17 | class AliSteppingAction : public TG4SteppingAction |
676fb573 | 18 | { |
19 | enum { | |
b77d989a | 20 | kCheckNofSteps = 100 |
676fb573 | 21 | }; |
22 | ||
23 | public: | |
24 | AliSteppingAction(); | |
25 | // protected | |
26 | // AliSteppingAction(const AliSteppingAction& right); | |
27 | virtual ~AliSteppingAction(); | |
28 | ||
29 | // methods | |
9bcb6317 | 30 | virtual void SteppingAction(const G4Step* step); |
676fb573 | 31 | |
676fb573 | 32 | protected: |
33 | AliSteppingAction(const AliSteppingAction& right); | |
34 | ||
35 | // operators | |
36 | AliSteppingAction& operator=(const AliSteppingAction& right); | |
37 | ||
38 | private: | |
676fb573 | 39 | // static data members |
41e0e5cc | 40 | static const G4double fgkTolerance; //tolerance used in detecting |
41 | //of looping particles | |
676fb573 | 42 | |
43 | // data members | |
41e0e5cc | 44 | G4ThreeVector fKeptStepPoint; //kept step point |
45 | AliSteppingActionMessenger* fMessenger; //messenger | |
676fb573 | 46 | }; |
47 | ||
676fb573 | 48 | #endif //ALI_STEPPING_ACTION_H |
49 |