CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/TrackPropagation/Geant4e/interface/Geant4eSteppingAction.h

Go to the documentation of this file.
00001 #ifndef TrackPropagation_Geant4eSteppingAction_h
00002 #define TrackPropagation_Geant4eSteppingAction_h
00003 
00004 #include "G4UserSteppingAction.hh"
00005 
00011 class Geant4eSteppingAction: public G4UserSteppingAction {
00012  public:
00013   Geant4eSteppingAction():theTrackLength(0) {}
00014   virtual ~Geant4eSteppingAction() {}
00015 
00019   double trackLength() const {return theTrackLength;}
00020 
00024   void reset() {theTrackLength = 0;}
00025 
00029   virtual void UserSteppingAction(const G4Step* step);
00030   
00031  protected:
00032   double theTrackLength;
00033 };
00034 
00035 
00036 
00037 #endif