GEMC  2.2
Geant4 Monte-Carlo Framework
MSteppingAction.h
Go to the documentation of this file.
1 
6 #ifndef MSteppingAction_h
7 #define MSteppingAction_h 1
8 
9 // G4 headers
10 #include "G4UserSteppingAction.hh"
11 #include "G4Step.hh"
12 
13 // gemc headers
14 #include "options.h"
15 
17 {
18  public:
20  virtual ~MSteppingAction();
21 
23  double energyCut;
24  double max_x_pos;
25  double max_y_pos;
26  double max_z_pos;
27 
28  // checking if track get stuck.
29  // if after 10 times the oldpos is the same as new pos,
30  // the track will be killed
31 // G4ThreeVector oldpos;
32 // int nsame;
33 
34  void UserSteppingAction(const G4Step*);
35 };
36 
37 #endif
double max_x_pos
Max X Position in millimeters.
void UserSteppingAction(const G4Step *)
goptions gemcOpt
gemc options map
double max_y_pos
Max Y Position in millimeters.
double max_z_pos
Max Z Position in millimeters.
virtual ~MSteppingAction()
MSteppingAction(goptions)
double energyCut
Set to the ENERGY_CUT from options. This avoids a billion lookups in the map.