Monte Carlo LYSO
Geant4 simulation for the LYSO calorimeter prototype
stepping.hh
Go to the documentation of this file.
1 
5 #ifndef STEPPING_HH
6 #define STEPPING_HH
7 
8 #include "G4UserSteppingAction.hh"
9 #include "G4Step.hh"
10 
11 #include "construction.hh"
12 #include "event.hh"
13 
18 class MySteppingAction : public G4UserSteppingAction
19 {
20 public:
27  MySteppingAction(MyEventAction *eventAction);
28  ~MySteppingAction() override = default;
36  void UserSteppingAction(const G4Step *step) override;
37 
38 private:
39  void SteppingForLuDecayBulkSignature(const G4Step *step, G4LogicalVolume *volume, const MyDetectorConstruction *detectorConstruction);
40  void SteppingForCosmicRaysDetectors(const G4Step *step, G4LogicalVolume *volume, const MyDetectorConstruction *detectorConstruction);
41  void SetTimeOfDecay(const G4Step *step);
42 
44 };
45 
46 #endif // STEPPING_HH
Mandatory user initialization concrete class of G4VUserDetectorConstruction. It represents the whole ...
Definition: construction.hh:33
User action concrete class of G4UserEventAction. In addition to defining procedures executed at the s...
Definition: event.hh:26
User action concrete class of G4UserSteppingAction. It defines procedures to be executed for every st...
Definition: stepping.hh:19
void UserSteppingAction(const G4Step *step) override
For every step updates and stores quantities about the physics inside the crystal by calling the meth...
Definition: stepping.cc:12
MyEventAction * fEventAction
Pointer to the MyEventAction object.
Definition: stepping.hh:43
~MySteppingAction() override=default
Destructor of the class.
MySteppingAction(MyEventAction *eventAction)
Constructor of the class.
Definition: stepping.cc:7
Declaration of the class MyDetectorConstruction.
Declaration of the class MyEventAction.