1#ifndef PlasmaMLPALLASRunAction_h
2#define PlasmaMLPALLASRunAction_h 1
35#include "G4UserRunAction.hh"
37#include "G4UImanager.hh"
38#include "G4VVisManager.hh"
39#include "G4RunManager.hh"
156 size_t NEventsGenerated;
161 TTree *Tree_GlobalInput =
nullptr;
162 TTree *Tree_Input =
nullptr;
163 TTree *Tree_Quadrupoles =
nullptr;
164 TTree *Tree_HorizontalColl =
nullptr;
165 TTree *Tree_VerticalColl =
nullptr;
166 TTree *Tree_BSYAG =
nullptr;
167 TTree *Tree_BSPECYAG =
nullptr;
168 TBranch *RunBranch =
nullptr;
173 static std::atomic<int> activeThreads;
174 static G4Mutex fileMutex;
Defines the detector geometry and magnetic fields for the PALLAS simulation.
Definition PlasmaMLPALLASGeometryConstruction.hh:41
Defines the primary generator action for the simulation.
Definition PlasmaMLPALLASPrimaryGeneratorAction.hh:29
Defines the run-level actions and statistics handling for the PALLAS simulation.
Definition PlasmaMLPALLASRunAction.hh:104
PlasmaMLPALLASPrimaryGeneratorAction * fPrimaryGenerator
Primary generator reference.
Definition PlasmaMLPALLASRunAction.hh:177
void SetGeometry(PlasmaMLPALLASGeometryConstruction *geom)
Set the geometry reference.
Definition PlasmaMLPALLASRunAction.cc:61
void BeginOfRunAction(const G4Run *run) override
Called at the start of each run.
Definition PlasmaMLPALLASRunAction.cc:201
void UpdateStatisticsGlobalInput(RunTallyGlobalInput)
Definition PlasmaMLPALLASRunAction.cc:138
void UpdateStatisticsQuadrupoles(RunTallyQuadrupoles)
Definition PlasmaMLPALLASRunAction.cc:140
void UpdateStatisticsHorizontalColl(RunTallyCollimators)
Definition PlasmaMLPALLASRunAction.cc:141
static void UpdateStatistics(T &stats, const T &newStats, TTree *tree)
Generic template to update cumulative statistics in a ROOT tree.
Definition PlasmaMLPALLASRunAction.cc:127
void EndOfRunAction(const G4Run *run) override
Called at the end of each run.
Definition PlasmaMLPALLASRunAction.cc:343
PlasmaMLPALLASGeometryConstruction * fGeometry
Geometry reference.
Definition PlasmaMLPALLASRunAction.hh:178
void SetPrimaryGenerator(PlasmaMLPALLASPrimaryGeneratorAction *gen)
Set the primary generator reference.
Definition PlasmaMLPALLASRunAction.cc:55
~PlasmaMLPALLASRunAction()
Destructor.
Definition PlasmaMLPALLASRunAction.cc:52
void UpdateStatisticsInput(RunTallyInput)
Definition PlasmaMLPALLASRunAction.cc:139
void UpdateStatisticsVerticalColl(RunTallyCollimators)
Definition PlasmaMLPALLASRunAction.cc:142
void UpdateStatisticsBSPECYAG(RunTallyYAG)
Definition PlasmaMLPALLASRunAction.cc:144
void UpdateStatisticsBSYAG(RunTallyYAG)
Definition PlasmaMLPALLASRunAction.cc:143
Structure for collimators statistics.
Definition PlasmaMLPALLASEventAction.hh:40
Definition PlasmaMLPALLASQuadrupoleUtils.hh:56
Structure for YAG detector statistics.
Definition PlasmaMLPALLASEventAction.hh:71