1#ifndef GFLASH_MC_APPLICATION_H
2#define GFLASH_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 Gflash::DetectorConstruction class.
Definition of the Gflash::SensitiveDetector class.
Implementation of the TVirtualMCStack interface.
The detector construction (via TGeo )
Implementation of the TVirtualMCApplication.
virtual TVirtualMCApplication * CloneForWorker() const
Bool_t fIsMaster
If is on master thread.
SensitiveDetector * GetCalorimeterSD() const
Int_t fEventNo
Event counter.
virtual void GeneratePrimaries()
TMCRootManager * fRootManager
Root manager.
DetectorConstruction * fDetConstruction
Dector construction.
virtual void FinishEvent()
void InitMC(const char *setup)
TMCVerbose fVerbose
VMC verbose helper.
void ComputeEventStatistics() const
virtual void BeginPrimary()
Ex03MCStack * fStack
VMC stack.
PrimaryGenerator * fPrimaryGenerator
Primary generator.
virtual void FinishPrimary()
SensitiveDetector * fSensitiveDetector
Calorimeter SD.
virtual void InitOnWorker()
virtual void ConstructGeometry()
DetectorConstruction * GetDetectorConstruction() const
void SetVerboseLevel(Int_t verboseLevel)
virtual void FinishRunOnWorker()
PrimaryGenerator * GetPrimaryGenerator() const
virtual void InitGeometry()
void RegisterStack() const
virtual void BeginEvent()
TStopwatch * fEventTimer
Event timer.
void RunMC(Int_t nofEvents)
The calorimeter sensitive detector.