Monte Carlo LYSO
Geant4 simulation for the LYSO calorimeter prototype
action.hh
Go to the documentation of this file.
1 
5 #ifndef ACTION_HH
6 #define ACTION_HH
7 
8 #include "G4VUserActionInitialization.hh"
9 
10 #include "generator.hh"
11 #include "run.hh"
12 #include "event.hh"
13 #include "stepping.hh"
14 
20 class MyActionInitialization : public G4VUserActionInitialization
21 {
22 public:
23  MyActionInitialization(G4int theMCID);
24  ~MyActionInitialization() override = default;
32  void Build() const override;
37  void BuildForMaster() const override;
38 
39 private:
40  G4int fMCID;
41 };
42 
43 #endif // ACTION_HH
Mandatory user initialization concrete class of G4VUserActionInitialization. It configures all the ne...
Definition: action.hh:21
void Build() const override
Configures user action classes for worker threads.
Definition: action.cc:25
G4int fMCID
The Monte Carlo ID.
Definition: action.hh:40
MyActionInitialization(G4int theMCID)
Constructor of the class.
Definition: action.cc:7
~MyActionInitialization() override=default
Destructor of the class.
void BuildForMaster() const override
Configures the MyRunAction class for the master thread (in multithreading mode).
Definition: action.cc:14
Declaration of the class MyEventAction.
Declaration of the class MyPrimaryGenerator.
Declaration of the class MyRunAction.
Declaration of the class MySteppingAction.