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

Public Member Functions | |
| Ex03dMCApplication (const char *name, const char *title) | |
| Ex03dMCApplication () | |
| virtual | ~Ex03dMCApplication () |
| void | InitMC (const char *setup, TMCRootManager::StorageMode storageMode=TMCRootManager::kRNTuple) |
| void | RunMC (Int_t nofEvents) |
| void | FinishRun () |
| void | ReadEvent (Int_t i, TMCRootManager::StorageMode storageMode=TMCRootManager::kRNTuple, Int_t threadId=-1) |
| virtual TVirtualMCApplication * | CloneForWorker () const |
| virtual void | InitOnWorker () |
| virtual void | FinishRunOnWorker () |
| virtual void | ConstructGeometry () |
| virtual void | InitGeometry () |
| virtual void | AddParticles () |
| virtual void | AddIons () |
| 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 | SetPrintModulo (Int_t value) |
| void | SetVerboseLevel (Int_t verboseLevel) |
| void | SetControls (Bool_t isConstrols) |
| void | SetField (Double_t bz) |
| Ex03DetectorConstruction * | GetDetectorConstruction () const |
| Ex03dCalorimeterSD * | GetCalorimeterSD () const |
| Ex03PrimaryGenerator * | GetPrimaryGenerator () const |
| void | SetOldGeometry (Bool_t oldGeometry=kTRUE) |
Private Member Functions | |
| Ex03dMCApplication (const Ex03dMCApplication &origin) | |
| void | RegisterData () |
Private Attributes | |
| TMCRootManager * | fRootManager |
| Root manager. | |
| Int_t | fPrintModulo |
| The event modulus number to be printed. | |
| Int_t | fEventNo |
| Event counter. | |
| TMCVerbose | fVerbose |
| VMC verbose helper. | |
| Ex03dMCStack * | fStack |
| VMC stack. | |
| Ex03DetectorConstruction * | fDetConstruction |
| Dector construction. | |
| Ex03dCalorimeterSD * | fCalorimeterSD |
| Calorimeter SD. | |
| Ex03PrimaryGenerator * | fPrimaryGenerator |
| Primary generator. | |
| TGeoUniformMagField * | fMagField |
| Magnetic field. | |
| Bool_t | fOldGeometry |
| Option for geometry definition. | |
| Bool_t | fIsControls |
| Option to activate special controls. | |
| Bool_t | fIsMaster |
| If is on master thread. | |
Implementation of the TVirtualMCApplication.
A variant of the Ex03MCApplication class updated for RNTuple output.
Definition at line 42 of file Ex03dMCApplication.h.
| Ex03dMCApplication::Ex03dMCApplication | ( | const char * | name, |
| const char * | title ) |
Standard constructor
| name | The MC application name |
| title | The MC application description |
Definition at line 42 of file Ex03dMCApplication.cxx.
| Ex03dMCApplication::Ex03dMCApplication | ( | ) |
Default constructor
Definition at line 118 of file Ex03dMCApplication.cxx.
|
virtual |
Destructor
Definition at line 136 of file Ex03dMCApplication.cxx.
|
private |
Copy constructor for cloning application on workers (in multithreading mode)
| origin | The source MC application |
Definition at line 84 of file Ex03dMCApplication.cxx.
| void Ex03dMCApplication::InitMC | ( | const char * | setup, |
| TMCRootManager::StorageMode | storageMode = TMCRootManager::kRNTuple ) |
Initialize MC. The selection of the concrete MC is done in the macro.
| setup | The name of the configuration macro |
Definition at line 170 of file Ex03dMCApplication.cxx.
| void Ex03dMCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
| nofEvents | Number of events to be processed |
Definition at line 211 of file Ex03dMCApplication.cxx.
| void Ex03dMCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 223 of file Ex03dMCApplication.cxx.
| void Ex03dMCApplication::ReadEvent | ( | Int_t | i, |
| TMCRootManager::StorageMode | storageMode = TMCRootManager::kRNTuple, | ||
| Int_t | threadId = -1 ) |
Read i -th event and prints hits.
Definition at line 273 of file Ex03dMCApplication.cxx.
|
virtual |
Definition at line 236 of file Ex03dMCApplication.cxx.
|
virtual |
Definition at line 242 of file Ex03dMCApplication.cxx.
|
virtual |
Definition at line 263 of file Ex03dMCApplication.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 294 of file Ex03dMCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 316 of file Ex03dMCApplication.cxx.
|
virtual |
Example of user defined particle with user defined decay mode
Definition at line 329 of file Ex03dMCApplication.cxx.
|
virtual |
Example of user defined ion
Definition at line 378 of file Ex03dMCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 388 of file Ex03dMCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 401 of file Ex03dMCApplication.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 425 of file Ex03dMCApplication.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 439 of file Ex03dMCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 466 of file Ex03dMCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 487 of file Ex03dMCApplication.cxx.
|
virtual |
User actions after finishing of a primary track
Definition at line 495 of file Ex03dMCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 507 of file Ex03dMCApplication.cxx.
|
inline |
Set the event modulus number to be printed
| value | The new event modulus number value |
Definition at line 114 of file Ex03dMCApplication.h.
|
inline |
Set verbosity
| verboseLevel | The new verbose level value |
Definition at line 121 of file Ex03dMCApplication.h.
|
inline |
Switch on/off special process controls
| isControls | If true, special process controls setting is activated |
Definition at line 161 of file Ex03dMCApplication.h.
|
inline |
Definition at line 128 of file Ex03dMCApplication.h.
|
inline |
Definition at line 135 of file Ex03dMCApplication.h.
|
inline |
Definition at line 141 of file Ex03dMCApplication.h.
|
inline |
Definition at line 147 of file Ex03dMCApplication.h.
|
inline |
Switch on/off the old geometry definition (via VMC functions)
| oldGeometry | If true, geometry definition via VMC functions |
Definition at line 154 of file Ex03dMCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 154 of file Ex03dMCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 94 of file Ex03dMCApplication.h.
|
private |
The event modulus number to be printed.
Definition at line 95 of file Ex03dMCApplication.h.
|
private |
Event counter.
Definition at line 96 of file Ex03dMCApplication.h.
|
private |
VMC verbose helper.
Definition at line 97 of file Ex03dMCApplication.h.
|
private |
VMC stack.
Definition at line 98 of file Ex03dMCApplication.h.
|
private |
Dector construction.
Definition at line 99 of file Ex03dMCApplication.h.
|
private |
Calorimeter SD.
Definition at line 100 of file Ex03dMCApplication.h.
|
private |
Primary generator.
Definition at line 101 of file Ex03dMCApplication.h.
|
private |
Magnetic field.
Definition at line 102 of file Ex03dMCApplication.h.
|
private |
Option for geometry definition.
Definition at line 103 of file Ex03dMCApplication.h.
|
private |
Option to activate special controls.
Definition at line 104 of file Ex03dMCApplication.h.
|
private |
If is on master thread.
Definition at line 105 of file Ex03dMCApplication.h.