VMC Examples Version 6.6
|
Implementation of the TVirtualMCApplication. More...
#include <MCApplication.h>
Public Member Functions | |
MCApplication (const char *name, const char *title) | |
MCApplication () | |
virtual | ~MCApplication () |
void | InitMC (const char *setup) |
void | RunMC (Int_t nofEvents) |
void | FinishRun () |
void | ReadEvent (Int_t i) |
virtual TVirtualMCApplication * | CloneForWorker () const |
virtual void | InitOnWorker () |
virtual void | FinishRunOnWorker () |
virtual void | ConstructGeometry () |
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 | SetVerboseLevel (Int_t verboseLevel) |
DetectorConstruction * | GetDetectorConstruction () const |
SensitiveDetector * | GetCalorimeterSD () const |
PrimaryGenerator * | GetPrimaryGenerator () const |
Private Member Functions | |
MCApplication (const MCApplication &origin) | |
void | RegisterStack () const |
Private Attributes | |
TMCRootManager * | fRootManager |
Root manager. | |
Int_t | fEventNo |
Event counter. | |
TMCVerbose | fVerbose |
VMC verbose helper. | |
Ex03MCStack * | fStack |
VMC stack. | |
DetectorConstruction * | fDetConstruction |
Dector construction. | |
SensitiveDetector * | fSensitiveDetector |
Calorimeter SD. | |
PrimaryGenerator * | fPrimaryGenerator |
Primary generator. | |
Bool_t | fIsMaster |
If is on master thread. | |
Implementation of the TVirtualMCApplication.
Garfield garfieldpp example adapted to Virtual Monte Carlo.
Definition at line 47 of file MCApplication.h.
VMC::ExGarfield::MCApplication::MCApplication | ( | const char * | name, |
const char * | title ) |
Standard constructor
name | The MC application name |
title | The MC application description |
Definition at line 48 of file MCApplication.cxx.
VMC::ExGarfield::MCApplication::MCApplication | ( | ) |
Default constructor
Definition at line 103 of file MCApplication.cxx.
|
virtual |
Destructor
Definition at line 117 of file MCApplication.cxx.
|
private |
Copy constructor for cloning application on workers (in multithreading mode)
origin | The source MC application |
Definition at line 77 of file MCApplication.cxx.
void VMC::ExGarfield::MCApplication::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 153 of file MCApplication.cxx.
void VMC::ExGarfield::MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
nofEvents | Number of events to be processed |
Definition at line 191 of file MCApplication.cxx.
void VMC::ExGarfield::MCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 203 of file MCApplication.cxx.
void VMC::ExGarfield::MCApplication::ReadEvent | ( | Int_t | i | ) |
Read i -th event and prints hits.
i | The number of event to be read |
Definition at line 247 of file MCApplication.cxx.
|
virtual |
Definition at line 216 of file MCApplication.cxx.
|
virtual |
Definition at line 222 of file MCApplication.cxx.
|
virtual |
Definition at line 237 of file MCApplication.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 258 of file MCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 270 of file MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 280 of file MCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 292 of file MCApplication.cxx.
|
virtual |
User actions at beginning of a primary track. If test for user defined decay is activated, the primary track ID is printed on the screen.
Definition at line 312 of file MCApplication.cxx.
|
virtual |
User actions at beginning of each track If test for user defined decay is activated, the decay products of the primary track (K0Short) are printed on the screen.
Definition at line 322 of file MCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 333 of file MCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 354 of file MCApplication.cxx.
|
virtual |
User actions after finishing of a primary track
Definition at line 362 of file MCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 370 of file MCApplication.cxx.
|
inline |
Set verbosity
verboseLevel | The new verbose level value |
Definition at line 105 of file MCApplication.h.
|
inline |
Definition at line 111 of file MCApplication.h.
|
inline |
Definition at line 117 of file MCApplication.h.
|
inline |
Definition at line 123 of file MCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 138 of file MCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 89 of file MCApplication.h.
|
private |
Event counter.
Definition at line 90 of file MCApplication.h.
|
private |
VMC verbose helper.
Definition at line 91 of file MCApplication.h.
|
private |
VMC stack.
Definition at line 92 of file MCApplication.h.
|
private |
Dector construction.
Definition at line 93 of file MCApplication.h.
|
private |
Calorimeter SD.
Definition at line 94 of file MCApplication.h.
|
private |
Primary generator.
Definition at line 95 of file MCApplication.h.
|
private |
If is on master thread.
Definition at line 96 of file MCApplication.h.