LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ArtG4StackingAction.hh
Go to the documentation of this file.
1 // ArtG4StackingAction.hh provides declarations for the built-in stacking
2 // action for the Art G4 simulation. In its main method, UserStackingAction,
3 // it gets a collection of all action objects for the current run from the
4 // Action Holder service, and loops over them, calling their respective
5 // UserStackingAction methods.
6 
7 // Authors: Tasha Arvanitis, Adam Lyon
8 // Date: July 2012
9 
10 #ifndef artg4tk_geantInit_ArtG4StackingAction_hh
11 #define artg4tk_geantInit_ArtG4StackingAction_hh
12 
13 #include "Geant4/G4UserStackingAction.hh"
14 
15 // Everything goes in the Art G4 namespace
16 namespace artg4tk {
17  class ActionHolderService;
18 
19  class ArtG4StackingAction : public G4UserStackingAction {
20  public:
22 
23  private:
24  // Called for each new track
25  G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track*) override;
26 
28  };
29 
30 }
31 
32 #endif /* artg4tk_geantInit_ArtG4StackingAction_hh */
ActionHolderService * actionHolder_
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *) override
ArtG4StackingAction(ActionHolderService *)