20#include <TGeoManager.h>
25#include <fairlogger/Logger.h>
44 O2RunSim(
bool devicemode,
bool evalmat) :
FairRunSim(), mDeviceMode(devicemode), mEvalMat(evalmat) {}
49 LOG(info) <<
"O2RUNSIM SPECIFIC INIT CALLED";
54 new TGeoManager(
"FAIRGeom",
"FAIR geometry");
97 void Run(
int n = 0,
int b = 0) final
103 bool mDeviceMode{
false};
104 bool mEvalMat{
false};
106 ClassDefOverride(O2RunSim, 0);
void InitMC(const char *setup, const char *cuts)
void SetPythiaDecayer(Bool_t decayer)
void SetField(FairField *field)
void SetGenerator(FairPrimaryGenerator *fxGenerator)
void SetUserDecayConfig(const TString decayerConf)
void SetPythiaDecayerConfig(const TString decayerConf)
void SetUserDecay(Bool_t decay)
void WriteFileHeader(FairFileHeader *f)
unsigned int generateId(void)
TString MatFname
/** Array of used modules */
virtual void Run(Int_t NEvents=0, Int_t NotUsed=0)
std::function< void()> fSimSetup
/** Allow importing TGeometry to VMC */
TString fPythiaDecayerConfig
/** flag for using Pythia decayer*/
FairField * fField
/** Singleton Instance */
FairPrimaryGenerator * fGen
/** flag for use Beam Energy */
Bool_t fUserDecay
/** Macro for Pythia decay configuration*/
TObjArray * ListOfModules
/** Array of user defined particles*/
Bool_t fPythiaDecayer
/** Geometry Model (TGeo or G3)*/
FairMCApplication * fApp
/** Internal counter*/
FairRootManager * fRootManager
FairFileHeader * fFileHeader
~O2RunSim() override=default
O2RunSim(bool devicemode, bool evalmat)
void Run(int n=0, int b=0) final
GLboolean GLboolean GLboolean b
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"