13#include "OMSimDetectorConstruction.hh"
14#include "OMSimPhysicsList.hh"
15#include "OMSimPrimaryGeneratorAction.hh"
16#include "OMSimRunAction.hh"
17#include "OMSimEventAction.hh"
18#include "OMSimTrackingAction.hh"
22#include <G4MTRunManager.hh>
23#include <G4VisExecutive.hh>
24#include <G4UIExecutive.hh>
26#include <boost/program_options.hpp>
28namespace po = boost::program_options;
49 void configureLogger();
53 G4Navigator *getNavigator() {
return m_navigator.get(); };
55 po::options_description m_generalOptions;
58 void initialLoggerConfiguration();
59 int determineNumberOfThreads();
60 po::variables_map
parseArguments(
int pArgumentCount,
char *pArgumentVector[]);
62 void setGeneralOptions();
64 std::unique_ptr<G4MTRunManager> m_runManager;
65 std::unique_ptr<G4VisExecutive> m_visManager;
66 std::unique_ptr<G4VUserPhysicsList> m_physics;
67 std::unique_ptr<G4TouchableHistory> m_history;
68 std::unique_ptr<G4Navigator> m_navigator;
70 std::chrono::high_resolution_clock::time_point m_startingTime;
Defines OMSimSteppingAction.Currently it only checks for trapped photons.
Class for detector construction in the effective area simulation.
Definition OMSimDetectorConstruction.hh:19
Controls the main simulation process.
Definition OMSim.hh:43
bool handleArguments(int pArgumentCount, char *pArgumentVector[])
Parses the user arguments into variables that can be accessed in the simulation via OMSimCommandArgsT...
Definition OMSim.cc:213
void setUserArgumentsToArgTable(po::variables_map pVariablesMap)
Sets variables from a variables map to the instance of OMSimCommandArgsTable.
Definition OMSim.cc:198
po::variables_map parseArguments(int pArgumentCount, char *pArgumentVector[])
Parses user terminal arguments to a variables map.
Definition OMSim.cc:186
void startVisualisation()
uiEx session is started for visualisation.
Definition OMSim.cc:96
void initialiseSimulation(OMSimDetectorConstruction *pDetectorConstruction)
Initialize the simulation constructing all Geant instances.
Definition OMSim.cc:125
void extendOptions(po::options_description pNewOptions)
Adds options from the different simulation modules to the option description list (what is printed in...
Definition OMSim.cc:177