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