GGS(GenericGEANT4Simulation)Software
2.7.0
|
Public Member Functions | |
GGSSaveTGeoAction () | |
Constructor. | |
~GGSSaveTGeoAction ()=default | |
Destructor. | |
void | BeginOfRunAction (const G4Run *run) |
Actions executed at beginning of run. More... | |
void | EndOfRunAction (const G4Run *run) |
Actions executed at end of run. More... | |
void | SetOutputFileBase (const std::string &outFileBase) |
Sets the output file base name. More... | |
![]() | |
GGSUserAction () | |
Constructor. More... | |
virtual | ~GGSUserAction () |
Destructor. | |
G4ClassificationOfNewTrack | ClassifyNewTrack (const G4Track *) |
Override of the ClassifyNewTrack method. More... | |
Definition at line 21 of file GGSSaveTGeoAction.h.
void GGSSaveTGeoAction::BeginOfRunAction | ( | const G4Run * | run | ) |
Actions executed at beginning of run.
Method executed at the beginning of each run. A new ROOT file is created for each run.
run | Pointer to the G4Run |
Definition at line 31 of file GGSSaveTGeoAction.cpp.
void GGSSaveTGeoAction::EndOfRunAction | ( | const G4Run * | run | ) |
Actions executed at end of run.
Method executed at the end of each run. The TGeo object is written to file and the file is closed.
run | Pointer to a G4Run |
Definition at line 44 of file GGSSaveTGeoAction.cpp.
|
inline |
Sets the output file base name.
The file base name can be with or without extension (.root will be automatically used as extension). For each run, the run number will be appended to the base name before the .root extension. If no value is provided the file base name will fallback to the default value set in GSRootFileservice.
outFileBase | The output file base name. |
Definition at line 58 of file GGSSaveTGeoAction.h.