GEMC  1.8
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 // %%%%%%%%%%
10 // G4 headers
11 // %%%%%%%%%%
12 #include "G4UserSteppingAction.hh"
13 #include "G4Step.hh"
14 
15 // %%%%%%%%%%%%%
16 // gemc headers
17 // %%%%%%%%%%%%%
18 #include "usage.h"
19 
21 {
22  public:
24  virtual ~MSteppingAction();
26  double Energy_cut;
27  double max_x_pos;
28  double max_y_pos;
29  double max_z_pos;
30 
31 
32  // checking if track get stuck.
33  // if after 10 times the oldpos is the same as new pos,
34  // the track will be killed
35  G4ThreeVector oldpos;
36  int nsame;
37 
38  void UserSteppingAction(const G4Step*);
39 };
40 
41 #endif
double max_x_pos
Max X Position in millimeters.
void UserSteppingAction(const G4Step *)
double Energy_cut
Set to the ENERGY_CUT from options. This avoids a billion lookups in the map.
gemc_opts gemcOpt
gemc options map
double max_y_pos
Max Y Position in millimeters.
G4ThreeVector oldpos
double max_z_pos
Max Z Position in millimeters.
virtual ~MSteppingAction()
MSteppingAction(gemc_opts)