1#ifndef EX06_MC_APPLICATION_H
2#define EX06_MC_APPLICATION_H
20#include <TLorentzVector.h>
21#include <TMCVerbose.h>
22#include <TVirtualMCApplication.h>
48 void InitMC(
const char* setup);
49 void RunMC(Int_t nofEvents);
Implementation of the TVirtualMCStack interface.
The detector construction (via TGeo )
Implementation of the TVirtualMCApplication.
Bool_t fTestStackPopper
Option for stack popper test.
static Ex06MCApplication * Instance()
void RunMC(Int_t nofEvents)
virtual void GeneratePrimaries()
Int_t fFeedbackCounter
Feedback photons counter.
TVirtualMagField * fMagField
The magnetic field.
void GenerateFeedback(Int_t nofPhotons, TLorentzVector momentum)
Int_t fRunGammaCounter
Optical photons counter2.
Int_t fRunFeedbackCounter
Feedback photons counter2.
virtual void BeginPrimary()
Bool_t fIsMaster
If is on master thread.
virtual ~Ex06MCApplication()
void InitMC(const char *setup)
Int_t fGammaCounter
Optical photons counter.
Ex06DetectorConstruction * fDetConstruction
Dector construction.
virtual void InitGeometry()
Bool_t fOldGeometry
Option for geometry definition.
virtual void BeginEvent()
void SetOldGeometry(Bool_t oldGeometry=kTRUE)
virtual void ConstructGeometry()
virtual TVirtualMCApplication * CloneForWorker() const
Ex03MCStack * fStack
VMC stack.
virtual void InitOnWorker()
void SetVerboseLevel(Int_t verboseLevel)
Ex06PrimaryGenerator * fPrimaryGenerator
Primary generator.
TMCVerbose fVerbose
VMC verbose helper.
void SetTestStackPopper(Bool_t option=kFALSE)
virtual void FinishEvent()
virtual void FinishPrimary()
virtual void Merge(TVirtualMCApplication *localMCApplication)
Ex06PrimaryGenerator * GetPrimaryGenerator() const
virtual void ConstructOpGeometry()