1#ifndef MC_APPLICATION_H
2#define MC_APPLICATION_H
20#include <TGeoUniformMagField.h>
21#include <TVirtualMCApplication.h>
32class DetectorConstruction;
51 void InitMC(
const char* setup);
52 void RunMC(Int_t nofEvents);
Implementation of the TVirtualMCStack interface.
The detector construction (via TGeo )
Implementation of the TVirtualMCApplication.
Ex03MCStack * fStack
The VMC stack.
void InitMC(const char *setup)
virtual void BeginEvent()
Int_t fImedAl
The Aluminium medium Id.
void SetBinSize(Double_t binSize)
Double_t fBinSize
Edep histogram bin size.
virtual void BeginPrimary()
Double_t fProjRange
Projected range.
virtual void FinishPrimary()
void RunMC(Int_t nofEvents)
void RegisterStack() const
virtual void FinishEvent()
Bool_t fIsMaster
If is on master thread.
Int_t fNofEvents
Number of events.
Double_t fOffsetX
The Edep histogram offset.
DetectorConstruction * fDetConstruction
Dector construction.
static MCApplication * Instance()
virtual void ConstructGeometry()
TMCRootManager * fRootManager
Root manager.
DetectorConstruction * GetDetectorConstruction() const
TGeoUniformMagField * fMagField
Magnetic field.
Double_t fProjRange2
Projected range square.
virtual void InitGeometry()
virtual void GeneratePrimaries()