VMC Examples Version 6.6
|
Implementation of the TVirtualMCApplication. More...
#include <Ex06MCApplication.h>
Public Member Functions | |
Ex06MCApplication (const char *name, const char *title) | |
Ex06MCApplication () | |
virtual | ~Ex06MCApplication () |
void | InitMC (const char *setup) |
void | RunMC (Int_t nofEvents) |
virtual TVirtualMCApplication * | CloneForWorker () const |
virtual void | InitOnWorker () |
virtual void | Merge (TVirtualMCApplication *localMCApplication) |
virtual void | ConstructGeometry () |
virtual void | ConstructOpGeometry () |
virtual void | InitGeometry () |
virtual void | GeneratePrimaries () |
virtual void | BeginEvent () |
virtual void | BeginPrimary () |
virtual void | PreTrack () |
virtual void | Stepping () |
virtual void | PostTrack () |
virtual void | FinishPrimary () |
virtual void | FinishEvent () |
void | FinishRun () |
void | SetVerboseLevel (Int_t verboseLevel) |
Ex06PrimaryGenerator * | GetPrimaryGenerator () const |
void | SetOldGeometry (Bool_t oldGeometry=kTRUE) |
void | SetTestStackPopper (Bool_t option=kFALSE) |
Static Public Member Functions | |
static Ex06MCApplication * | Instance () |
Private Member Functions | |
Ex06MCApplication (const Ex06MCApplication &origin) | |
void | GenerateFeedback (Int_t nofPhotons, TLorentzVector momentum) |
Private Attributes | |
Int_t | fGammaCounter |
Optical photons counter. | |
Int_t | fFeedbackCounter |
Feedback photons counter. | |
Int_t | fRunGammaCounter |
Optical photons counter2. | |
Int_t | fRunFeedbackCounter |
Feedback photons counter2. | |
TMCVerbose | fVerbose |
VMC verbose helper. | |
Ex03MCStack * | fStack |
VMC stack. | |
TVirtualMagField * | fMagField |
The magnetic field. | |
Ex06DetectorConstruction * | fDetConstruction |
Dector construction. | |
Ex06PrimaryGenerator * | fPrimaryGenerator |
Primary generator. | |
Bool_t | fOldGeometry |
Option for geometry definition. | |
Bool_t | fTestStackPopper |
Option for stack popper test. | |
Bool_t | fIsMaster |
If is on master thread. | |
Implementation of the TVirtualMCApplication.
Definition at line 37 of file Ex06MCApplication.h.
Ex06MCApplication::Ex06MCApplication | ( | const char * | name, |
const char * | title ) |
Standard constructor
name | The MC application name |
title | The MC application description |
Definition at line 40 of file Ex06MCApplication.cxx.
Ex06MCApplication::Ex06MCApplication | ( | ) |
Default constructor
Definition at line 104 of file Ex06MCApplication.cxx.
|
virtual |
Destructor
Definition at line 123 of file Ex06MCApplication.cxx.
|
private |
Copy constructor (for clonig on worker thread in MT mode).
origin | The source object (on master). |
Definition at line 73 of file Ex06MCApplication.cxx.
|
inlinestatic |
void Ex06MCApplication::InitMC | ( | const char * | setup | ) |
Initialize MC. The selection of the concrete MC is done in the macro.
setup | The name of the configuration macro |
Definition at line 143 of file Ex06MCApplication.cxx.
void Ex06MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
nofEvents | Number of events to be processed |
Definition at line 167 of file Ex06MCApplication.cxx.
|
virtual |
Definition at line 180 of file Ex06MCApplication.cxx.
|
virtual |
Definition at line 186 of file Ex06MCApplication.cxx.
|
virtual |
Definition at line 196 of file Ex06MCApplication.cxx.
|
virtual |
Construct geometry using detector contruction class. The detector contruction class is using TGeo functions or TVirtualMC functions (if oldGeometry is selected)
Definition at line 208 of file Ex06MCApplication.cxx.
|
virtual |
Define material optical properties
Definition at line 238 of file Ex06MCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 248 of file Ex06MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 256 of file Ex06MCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 266 of file Ex06MCApplication.cxx.
|
virtual |
User actions at beginning of a primary track
Definition at line 277 of file Ex06MCApplication.cxx.
|
virtual |
User actions at beginning of each track
Definition at line 285 of file Ex06MCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 302 of file Ex06MCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 378 of file Ex06MCApplication.cxx.
|
virtual |
User actions after finishing of a primary track
Definition at line 386 of file Ex06MCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 394 of file Ex06MCApplication.cxx.
void Ex06MCApplication::FinishRun | ( | ) |
User actions after finishing of a run
Definition at line 430 of file Ex06MCApplication.cxx.
|
inline |
Set verbosity
verboseLevel | The new verbose level value |
Definition at line 112 of file Ex06MCApplication.h.
|
inline |
Definition at line 118 of file Ex06MCApplication.h.
|
inline |
Switch on/off the old geometry definition (via VMC functions)
oldGeometry | If true, geometry definition via VMC functions |
Definition at line 125 of file Ex06MCApplication.h.
|
inline |
Switch on/off the stack popper test
option | stack popper test activation option |
Definition at line 132 of file Ex06MCApplication.h.
|
private |
Generate FeedBack photons for the current particle.
Definition at line 352 of file Ex06MCApplication.cxx.
|
private |
Optical photons counter.
Definition at line 86 of file Ex06MCApplication.h.
|
private |
Feedback photons counter.
Definition at line 87 of file Ex06MCApplication.h.
|
private |
Optical photons counter2.
Definition at line 88 of file Ex06MCApplication.h.
|
private |
Feedback photons counter2.
Definition at line 89 of file Ex06MCApplication.h.
|
private |
VMC verbose helper.
Definition at line 90 of file Ex06MCApplication.h.
|
private |
VMC stack.
Definition at line 91 of file Ex06MCApplication.h.
|
private |
The magnetic field.
Definition at line 92 of file Ex06MCApplication.h.
|
private |
Dector construction.
Definition at line 93 of file Ex06MCApplication.h.
|
private |
Primary generator.
Definition at line 94 of file Ex06MCApplication.h.
|
private |
Option for geometry definition.
Definition at line 95 of file Ex06MCApplication.h.
|
private |
Option for stack popper test.
Definition at line 96 of file Ex06MCApplication.h.
|
private |
If is on master thread.
Definition at line 97 of file Ex06MCApplication.h.