|
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) |
| 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 | RegisterStack () |
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. | |
| TMCRootManager::StorageMode | fStorageMode { TMCRootManager::kTTree } |
| std::shared_ptr< RNTParaWriter > | fParallelRNTupleWriter |
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 44 of file Ex03dMCApplication.cxx.
| Ex03dMCApplication::Ex03dMCApplication | ( | ) |
Default constructor
Definition at line 122 of file Ex03dMCApplication.cxx.
|
virtual |
Destructor
Definition at line 140 of file Ex03dMCApplication.cxx.
|
private |
Copy constructor for cloning application on workers (in multithreading mode)
| origin | The source MC application |
Definition at line 86 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 173 of file Ex03dMCApplication.cxx.
| void Ex03dMCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
| nofEvents | Number of events to be processed |
Definition at line 237 of file Ex03dMCApplication.cxx.
| void Ex03dMCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 249 of file Ex03dMCApplication.cxx.
| void Ex03dMCApplication::ReadEvent | ( | Int_t | i | ) |
Read i -th event and prints hits.
| i | The number of event to be read |
Definition at line 304 of file Ex03dMCApplication.cxx.
|
virtual |
Definition at line 262 of file Ex03dMCApplication.cxx.
|
virtual |
Definition at line 268 of file Ex03dMCApplication.cxx.
|
virtual |
Definition at line 294 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 318 of file Ex03dMCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 340 of file Ex03dMCApplication.cxx.
|
virtual |
Example of user defined particle with user defined decay mode
Definition at line 353 of file Ex03dMCApplication.cxx.
|
virtual |
Example of user defined ion
Definition at line 402 of file Ex03dMCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 412 of file Ex03dMCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 425 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 449 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 463 of file Ex03dMCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 490 of file Ex03dMCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 511 of file Ex03dMCApplication.cxx.
|
virtual |
User actions after finishing of a primary track
Definition at line 519 of file Ex03dMCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 531 of file Ex03dMCApplication.cxx.
|
inline |
Set the event modulus number to be printed
| value | The new event modulus number value |
Definition at line 116 of file Ex03dMCApplication.h.
|
inline |
Set verbosity
| verboseLevel | The new verbose level value |
Definition at line 123 of file Ex03dMCApplication.h.
|
inline |
Switch on/off special process controls
| isControls | If true, special process controls setting is activated |
Definition at line 163 of file Ex03dMCApplication.h.
|
inline |
Definition at line 130 of file Ex03dMCApplication.h.
|
inline |
Definition at line 137 of file Ex03dMCApplication.h.
|
inline |
Definition at line 143 of file Ex03dMCApplication.h.
|
inline |
Definition at line 149 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 156 of file Ex03dMCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 158 of file Ex03dMCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 93 of file Ex03dMCApplication.h.
|
private |
The event modulus number to be printed.
Definition at line 94 of file Ex03dMCApplication.h.
|
private |
Event counter.
Definition at line 95 of file Ex03dMCApplication.h.
|
private |
VMC verbose helper.
Definition at line 96 of file Ex03dMCApplication.h.
|
private |
VMC stack.
Definition at line 97 of file Ex03dMCApplication.h.
|
private |
Dector construction.
Definition at line 98 of file Ex03dMCApplication.h.
|
private |
Calorimeter SD.
Definition at line 99 of file Ex03dMCApplication.h.
|
private |
Primary generator.
Definition at line 100 of file Ex03dMCApplication.h.
|
private |
Magnetic field.
Definition at line 101 of file Ex03dMCApplication.h.
|
private |
Option for geometry definition.
Definition at line 102 of file Ex03dMCApplication.h.
|
private |
Option to activate special controls.
Definition at line 103 of file Ex03dMCApplication.h.
|
private |
If is on master thread.
Definition at line 104 of file Ex03dMCApplication.h.
|
private |
Definition at line 106 of file Ex03dMCApplication.h.
|
private |
Definition at line 107 of file Ex03dMCApplication.h.