4 // Class for detecting and stopping looping particles
5 // or particles that reached maximal number of steps.
7 #ifndef ALI_STEPPING_ACTION_H
8 #define ALI_STEPPING_ACTION_H
10 #include "TG4SteppingAction.h"
12 #include <G4ThreeVector.hh>
15 class AliSteppingActionMessenger;
17 class AliSteppingAction : public TG4SteppingAction
26 // AliSteppingAction(const AliSteppingAction& right);
27 virtual ~AliSteppingAction();
30 virtual void SteppingAction(const G4Step* step);
33 AliSteppingAction(const AliSteppingAction& right);
36 AliSteppingAction& operator=(const AliSteppingAction& right);
39 // static data members
40 static const G4double fgkTolerance; //tolerance used in detecting
41 //of looping particles
44 G4ThreeVector fKeptStepPoint; //kept step point
45 AliSteppingActionMessenger* fMessenger; //messenger
48 #endif //ALI_STEPPING_ACTION_H