1#ifndef GARFIELD_MC_APPLICATION_H
2#define GARFIELD_MC_APPLICATION_H
20#include <TVirtualMCApplication.h>
25#include <TGeoUniformMagField.h>
26#include <TMCVerbose.h>
27#include <TStopwatch.h>
37class PrimaryGenerator;
55 void InitMC(
const char* setup);
56 void RunMC(Int_t nofEvents);
Definition of the ExGarfield::DetectorConstruction class.
Definition of the ExGarfield::SensitiveDetector class.
Implementation of the TVirtualMCStack interface.
The detector construction (via TGeo )
Implementation of the TVirtualMCApplication.
void SetVerboseLevel(Int_t verboseLevel)
Int_t fEventNo
Event counter.
Bool_t fIsMaster
If is on master thread.
virtual void FinishEvent()
void InitMC(const char *setup)
DetectorConstruction * GetDetectorConstruction() const
virtual TVirtualMCApplication * CloneForWorker() const
virtual void FinishRunOnWorker()
virtual void GeneratePrimaries()
DetectorConstruction * fDetConstruction
Dector construction.
virtual void InitGeometry()
TMCRootManager * fRootManager
Root manager.
virtual void BeginPrimary()
void RunMC(Int_t nofEvents)
PrimaryGenerator * GetPrimaryGenerator() const
SensitiveDetector * fSensitiveDetector
Calorimeter SD.
void RegisterStack() const
TMCVerbose fVerbose
VMC verbose helper.
virtual void BeginEvent()
SensitiveDetector * GetCalorimeterSD() const
virtual void InitOnWorker()
Ex03MCStack * fStack
VMC stack.
virtual void ConstructGeometry()
PrimaryGenerator * fPrimaryGenerator
Primary generator.
virtual void FinishPrimary()
The calorimeter sensitive detector.