Monte Carlo LYSO
Geant4 simulation for the LYSO calorimeter prototype
|
User action concrete class of G4UserRunAction. It defines procedures to be executed at the start and at the end of the run. More...
#include <run.hh>
Public Member Functions | |
MyRunAction (G4int theMCID, MyEventAction *eventAction) | |
Constructor of the class. More... | |
~MyRunAction () override=default | |
Destructor of the class. | |
void | BeginOfRunAction (const G4Run *run) override |
Creates and accesses the output root file at the beginning of the run. More... | |
void | EndOfRunAction (const G4Run *run) override |
Writes the TTree to the output root file and closes it at the end of the run. More... | |
Private Attributes | |
G4int | fMCID |
The Monte Carlo ID. | |
MyEventAction * | fEventAction |
Pointer to the MyEventAction object. | |
User action concrete class of G4UserRunAction. It defines procedures to be executed at the start and at the end of the run.
MyRunAction::MyRunAction | ( | G4int | theMCID, |
MyEventAction * | eventAction | ||
) |
Constructor of the class.
It creates the TTree and its branches to store simulation output.
eventAction | Pointer to a MyEventAction object, necessary for associating data saved in each event with the TTree. |
|
override |
|
override |