1#ifndef EX03_MC_APPLICATION_H
2#define EX03_MC_APPLICATION_H
20#include <TVirtualMCApplication.h>
25#include <TGeoUniformMagField.h>
26#include <TMCVerbose.h>
47 void InitMC(
const char* setup);
48 void RunMC(Int_t nofEvents);
Definition of the Ex03DetectorConstruction class.
Definition of the Ex03CalorimeterSD class.
The calorimeter sensitive detector.
The detector construction (via TGeo )
Implementation of the TVirtualMCApplication.
Int_t fPrintModulo
The event modulus number to be printed.
virtual ~Ex03MCApplication()
void SetVerboseLevel(Int_t verboseLevel)
TGeoUniformMagField * fMagField
Magnetic field.
Bool_t fIsControls
Option to activate special controls.
virtual void BeginPrimary()
TMCVerbose fVerbose
VMC verbose helper.
void InitMC(const char *setup)
void RunMC(Int_t nofEvents)
void SetControls(Bool_t isConstrols)
Bool_t fIsMaster
If is on master thread.
virtual void FinishEvent()
virtual TVirtualMCApplication * CloneForWorker() const
virtual void InitOnWorker()
Ex03PrimaryGenerator * fPrimaryGenerator
Primary generator.
Ex03CalorimeterSD * GetCalorimeterSD() const
void SetOldGeometry(Bool_t oldGeometry=kTRUE)
Ex03DetectorConstruction * GetDetectorConstruction() const
virtual void InitGeometry()
void SetField(Double_t bz)
void RegisterStack() const
virtual void FinishPrimary()
Ex03MCStack * fStack
VMC stack.
Ex03CalorimeterSD * fCalorimeterSD
Calorimeter SD.
virtual void AddParticles()
virtual void FinishRunOnWorker()
Ex03DetectorConstruction * fDetConstruction
Dector construction.
Bool_t fOldGeometry
Option for geometry definition.
Int_t fEventNo
Event counter.
void SetPrintModulo(Int_t value)
virtual void GeneratePrimaries()
virtual void BeginEvent()
Ex03PrimaryGenerator * GetPrimaryGenerator() const
virtual void ConstructGeometry()
TMCRootManager * fRootManager
Root manager.
Implementation of the TVirtualMCStack interface.
Ex03DetectorConstruction * GetDetectorConstruction() const
void SetField(Double_t bz)
void SetVerboseLevel(Int_t verboseLevel)
void SetPrintModulo(Int_t value)
void SetControls(Bool_t isConstrols)
void SetOldGeometry(Bool_t oldGeometry=kTRUE)
Ex03bCalorimeterSD * GetCalorimeterSD() const
Ex03PrimaryGenerator * GetPrimaryGenerator() const