1#ifndef EX03_MC_APPLICATION_H
2#define EX03_MC_APPLICATION_H
20#include <initializer_list>
22#include <TVirtualMCApplication.h>
27#include <TGeoUniformMagField.h>
28#include <TMCVerbose.h>
49 Bool_t isMulti = kFALSE, Bool_t splitSimulation = kFALSE);
54 void InitMC(
const char* setup);
55 void InitMC(std::initializer_list<const char*> setupMacros);
57 void RunMC(Int_t nofEvents);
Definition of the Ex03cCalorimeterSD class.
Definition of the Ex03cDetectorConstruction class.
Ex03cMCApplication Ex03MCApplication
The calorimeter sensitive detector.
The detector construction (via TGeo )
Implementation of the TVirtualMCApplication.
TGeoUniformMagField * fMagField
Magnetic field.
TMCRootManager * fRootManager
Root manager.
virtual void BeginPrimary()
Ex03PrimaryGenerator * fPrimaryGenerator
Primary generator.
virtual void InitOnWorker()
Ex03cDetectorConstruction * fDetConstruction
Dector construction.
virtual void BeginEvent()
Int_t fG3Id
engine ID of Geant3
TMCVerbose fVerbose
VMC verbose helper.
void SetVerboseLevel(Int_t verboseLevel)
void SetField(Double_t bz)
Ex03cCalorimeterSD * GetCalorimeterSD() const
Ex03cCalorimeterSD * fCalorimeterSD
Calorimeter SD.
virtual void GeneratePrimaries()
virtual void AddParticles()
void RegisterStack() const
void RunMC(Int_t nofEvents)
Bool_t fOldGeometry
Option for geometry definition.
Ex03cDetectorConstruction * GetDetectorConstruction() const
Bool_t fIsControls
Option to activate special controls.
Int_t fPrintModulo
The event modulus number to be printed.
virtual ~Ex03cMCApplication()
Bool_t fIsMultiRun
Flag if having multiple engines.
virtual TVirtualMCApplication * CloneForWorker() const
Bool_t fIsMaster
If is on master thread.
Bool_t fSplitSimulation
Split geometry given user criteria.
Ex03cMCStack * fStack
VMC stack.
Int_t fEventNo
Event counter.
void SetDebug(Int_t debug)
Set debug option for multiple run.
virtual void ConstructGeometry()
Ex03PrimaryGenerator * GetPrimaryGenerator() const
virtual void FinishRunOnWorker()
void SetOldGeometry(Bool_t oldGeometry=kTRUE)
void SetPrintModulo(Int_t value)
virtual void FinishEvent()
void SetControls(Bool_t isConstrols)
Int_t fG4Id
engine ID of Geant4
virtual void FinishPrimary()
virtual void InitGeometry()
Int_t fDebug
debug option for multiple run
Implementation of the TVirtualMCStack interface.