LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
ArtG4PrimaryGeneratorAction.hh
Go to the documentation of this file.
1 // ArtG4PrimaryGeneratorAction.hh provides declarations for the built-in
2 // primary generator action for the Art G4 simulation. In its main method,
3 // GeneratePrimaries, it gets the collection of all action objects registered
4 // for the run and calls their GeneratePrimaries method.
5 
6 // Authors: Tasha Arvanitis, Adam Lyon
7 // Date: July 2012
8 
9 #ifndef artg4tk_geantInit_ArtG4PrimaryGeneratorAction_hh
10 #define artg4tk_geantInit_ArtG4PrimaryGeneratorAction_hh
11 
12 #include "Geant4/G4VUserPrimaryGeneratorAction.hh"
13 
14 namespace artg4tk {
15 
16  class ActionHolderService;
17 
18  class ArtG4PrimaryGeneratorAction : public G4VUserPrimaryGeneratorAction {
19  public:
20  explicit ArtG4PrimaryGeneratorAction(ActionHolderService* actionHolder);
21 
22  private:
23  // Create the primary particles for the event. Called after a G4Event has
24  // been created but not fully initialized.
25  void GeneratePrimaries(G4Event* anEvent) override;
26 
28  };
29 
30 }
31 #endif /* artg4tk_geantInit_ArtG4PrimaryGeneratorAction_hh */
void GeneratePrimaries(G4Event *anEvent) override
ArtG4PrimaryGeneratorAction(ActionHolderService *actionHolder)