|
VMC Examples Version 6.8
|
Implementation of the TVirtualMCApplication. More...
#include <Ex02MCApplication.h>

Public Member Functions | |
| Ex02MCApplication (const char *name, const char *title) | |
| Ex02MCApplication () | |
| virtual | ~Ex02MCApplication () |
| void | InitMC (const char *setup) |
| void | RunMC (Int_t nofEvents) |
| void | FinishRun () |
| 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 | ReadEvent (Int_t i) |
| void | SetOldGeometry (Bool_t oldGeometry=kTRUE) |
Private Member Functions | |
| Ex02MCApplication (const Ex02MCApplication &origin) | |
| void | RegisterStack () const |
Private Attributes | |
| TMCRootManager * | fRootManager |
| Root manager. | |
| Ex02MCStack * | fStack |
| VMC stack. | |
| Ex02DetectorConstruction | fDetConstruction |
| Dector construction. | |
| Ex02TrackerSD * | fTrackerSD |
| Tracker SD. | |
| TVirtualMagField * | fMagField |
| Magnetic field. | |
| Bool_t | fOldGeometry |
| Option for geometry definition. | |
Implementation of the TVirtualMCApplication.
Definition at line 37 of file Ex02MCApplication.h.
| Ex02MCApplication::Ex02MCApplication | ( | const char * | name, |
| const char * | title ) |
Standard constructor
| name | The MC application name |
| title | The MC application description |
Definition at line 39 of file Ex02MCApplication.cxx.
| Ex02MCApplication::Ex02MCApplication | ( | ) |
Default constructor
Definition at line 94 of file Ex02MCApplication.cxx.
|
virtual |
Destructor
Definition at line 107 of file Ex02MCApplication.cxx.
|
private |
Copy constructor (for clonig on worker thread in MT mode).
| origin | The source object (on master). |
Definition at line 67 of file Ex02MCApplication.cxx.
| void Ex02MCApplication::InitMC | ( | const char * | setup | ) |
Initialize MC from Config.C macro The selection of the concrete MC is done in the macro.
| setup | The name of the configuration macro |
Definition at line 141 of file Ex02MCApplication.cxx.
| void Ex02MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
| nofEvents | Number of events to be processed |
Definition at line 181 of file Ex02MCApplication.cxx.
| void Ex02MCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 191 of file Ex02MCApplication.cxx.
|
virtual |
Definition at line 204 of file Ex02MCApplication.cxx.
|
virtual |
Definition at line 210 of file Ex02MCApplication.cxx.
|
virtual |
Definition at line 228 of file Ex02MCApplication.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 238 of file Ex02MCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 266 of file Ex02MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 274 of file Ex02MCApplication.cxx.
|
virtual |
User actions at beginning of event. Nothing to be done this example
Definition at line 316 of file Ex02MCApplication.cxx.
|
virtual |
User actions at beginning of a primary track. Nothing to be done this example
Definition at line 325 of file Ex02MCApplication.cxx.
|
virtual |
User actions at beginning of each track. Nothing to be done this example
Definition at line 332 of file Ex02MCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 339 of file Ex02MCApplication.cxx.
|
virtual |
User actions at each step. Nothing to be done this example
Definition at line 347 of file Ex02MCApplication.cxx.
|
virtual |
User actions after finishing of a primary track. Nothing to be done this example
Definition at line 354 of file Ex02MCApplication.cxx.
|
virtual |
User actions after finishing of an event Nothing to be done this example
Definition at line 361 of file Ex02MCApplication.cxx.
| void Ex02MCApplication::ReadEvent | ( | Int_t | i | ) |
Read i -th event and prints hits.
| i | The number of event to be read |
Definition at line 387 of file Ex02MCApplication.cxx.
|
inline |
Switch on/off the old geometry definition (via VMC functions)
| oldGeometry | If true, geometry definition via VMC functions |
Definition at line 89 of file Ex02MCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 126 of file Ex02MCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 75 of file Ex02MCApplication.h.
|
private |
VMC stack.
Definition at line 76 of file Ex02MCApplication.h.
|
private |
Dector construction.
Definition at line 77 of file Ex02MCApplication.h.
|
private |
Tracker SD.
Definition at line 78 of file Ex02MCApplication.h.
|
private |
Magnetic field.
Definition at line 79 of file Ex02MCApplication.h.
|
private |
Option for geometry definition.
Definition at line 80 of file Ex02MCApplication.h.