1#ifndef MC_APPLICATION_H
2#define MC_APPLICATION_H
20#include <TVirtualMCApplication.h>
22#include <TGeoUniformMagField.h>
23#include <TMCVerbose.h>
34class DetectorConstruction;
35class SensitiveDetector;
36class PrimaryGenerator;
52 void InitMC(
const char* setup);
53 void RunMC(Int_t nofEvents);
Implementation of the TVirtualMCStack interface.
The detector construction (via TGeo )
Implementation of the TVirtualMCApplication.
virtual void InitGeometry()
PrimaryGenerator * GetPrimaryGenerator() const
virtual void FinishPrimary()
void SetControls(Bool_t isConstrols)
virtual void GeneratePrimaries()
void SetOldGeometry(Bool_t oldGeometry=kTRUE)
Ex03MCStack * fStack
VMC stack.
virtual void ConstructGeometry()
void SetPrintModulo(Int_t value)
Bool_t fOldGeometry
Option for geometry definition.
Int_t fPrintModulo
The event modulus number to be printed.
virtual void FinishEvent()
SensitiveDetector * GetSensitiveDetector() const
Bool_t fIsControls
Option to activate special controls.
Bool_t fIsMaster
If is on master thread.
SensitiveDetector * fSensitiveDetector
Absorber SD.
PrimaryGenerator * fPrimaryGenerator
Primary generator.
TMCVerbose fVerbose
VMC verbose helper.
virtual TVirtualMCApplication * CloneForWorker() const
virtual void FinishRunOnWorker()
void SetField(Double_t bz)
virtual void BeginPrimary()
void RunMC(Int_t nofEvents)
void SetVerboseLevel(Int_t verboseLevel)
virtual void BeginEvent()
TGeoUniformMagField * fMagField
Magnetic field.
void RegisterStack() const
TMCRootManager * fRootManager
Root manager.
Int_t fEventNo
Event counter.
virtual void InitOnWorker()
DetectorConstruction * GetDetectorConstruction() const
void InitMC(const char *setup)
DetectorConstruction * fDetConstruction
Dector construction.
The absorber sensitive detector.