8 #include "G4UserRunAction.hh"
10 #include "G4AnalysisManager.hh"
User action concrete class of G4UserEventAction. In addition to defining procedures executed at the s...
User action concrete class of G4UserRunAction. It defines procedures to be executed at the start and ...
void BeginOfRunAction(const G4Run *run) override
Creates and accesses the output root file at the beginning of the run.
~MyRunAction() override=default
Destructor of the class.
MyEventAction * fEventAction
Pointer to the MyEventAction object.
G4int fMCID
The Monte Carlo ID.
MyRunAction(G4int theMCID, MyEventAction *eventAction)
Constructor of the class.
void EndOfRunAction(const G4Run *run) override
Writes the TTree to the output root file and closes it at the end of the run.
Declaration of the class MyEventAction.