VMC Examples Version 6.6
|
Implementation of the TVirtualMCApplication. More...
#include <Ex03MCApplication.h>
Public Member Functions | |
Ex03MCApplication (const char *name, const char *title) | |
Ex03MCApplication () | |
virtual | ~Ex03MCApplication () |
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 | 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 |
Ex03CalorimeterSD * | GetCalorimeterSD () const |
Ex03PrimaryGenerator * | GetPrimaryGenerator () const |
void | SetOldGeometry (Bool_t oldGeometry=kTRUE) |
Private Member Functions | |
Ex03MCApplication (const Ex03MCApplication &origin) | |
void | RegisterStack () const |
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. | |
Ex03MCStack * | fStack |
VMC stack. | |
Ex03DetectorConstruction * | fDetConstruction |
Dector construction. | |
Ex03CalorimeterSD * | 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.
Definition at line 39 of file Ex03MCApplication.h.
Ex03MCApplication::Ex03MCApplication | ( | const char * | name, |
const char * | title ) |
Standard constructor
name | The MC application name |
title | The MC application description |
Definition at line 44 of file Ex03MCApplication.cxx.
Ex03MCApplication::Ex03MCApplication | ( | ) |
Default constructor
Definition at line 120 of file Ex03MCApplication.cxx.
|
virtual |
Destructor
Definition at line 138 of file Ex03MCApplication.cxx.
|
private |
Copy constructor for cloning application on workers (in multithreading mode)
origin | The source MC application |
Definition at line 86 of file Ex03MCApplication.cxx.
void Ex03MCApplication::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 175 of file Ex03MCApplication.cxx.
void Ex03MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
nofEvents | Number of events to be processed |
Definition at line 214 of file Ex03MCApplication.cxx.
void Ex03MCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 226 of file Ex03MCApplication.cxx.
void Ex03MCApplication::ReadEvent | ( | Int_t | i | ) |
Read i -th event and prints hits.
i | The number of event to be read |
Definition at line 271 of file Ex03MCApplication.cxx.
|
virtual |
Definition at line 239 of file Ex03MCApplication.cxx.
|
virtual |
Definition at line 245 of file Ex03MCApplication.cxx.
|
virtual |
Definition at line 261 of file Ex03MCApplication.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 282 of file Ex03MCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 304 of file Ex03MCApplication.cxx.
|
virtual |
Example of user defined particle with user defined decay mode
Definition at line 318 of file Ex03MCApplication.cxx.
|
virtual |
Example of user defined ion
Definition at line 367 of file Ex03MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 377 of file Ex03MCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 390 of file Ex03MCApplication.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 414 of file Ex03MCApplication.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 428 of file Ex03MCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 455 of file Ex03MCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 476 of file Ex03MCApplication.cxx.
|
virtual |
User actions after finishing of a primary track
Definition at line 484 of file Ex03MCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 496 of file Ex03MCApplication.cxx.
|
inline |
Set the event modulus number to be printed
value | The new event modulus number value |
Definition at line 109 of file Ex03MCApplication.h.
|
inline |
Set verbosity
verboseLevel | The new verbose level value |
Definition at line 116 of file Ex03MCApplication.h.
|
inline |
Switch on/off special process controls
isControls | If true, special process controls setting is activated |
Definition at line 156 of file Ex03MCApplication.h.
|
inline |
Definition at line 123 of file Ex03MCApplication.h.
|
inline |
Definition at line 130 of file Ex03MCApplication.h.
|
inline |
Definition at line 136 of file Ex03MCApplication.h.
|
inline |
Definition at line 142 of file Ex03MCApplication.h.
|
inline |
Switch on/off the old geometry definition (via VMC functions)
oldGeometry | If true, geometry definition via VMC functions |
Definition at line 149 of file Ex03MCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 160 of file Ex03MCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 89 of file Ex03MCApplication.h.
|
private |
The event modulus number to be printed.
Definition at line 90 of file Ex03MCApplication.h.
|
private |
Event counter.
Definition at line 91 of file Ex03MCApplication.h.
|
private |
VMC verbose helper.
Definition at line 92 of file Ex03MCApplication.h.
|
private |
VMC stack.
Definition at line 93 of file Ex03MCApplication.h.
|
private |
Dector construction.
Definition at line 94 of file Ex03MCApplication.h.
|
private |
Calorimeter SD.
Definition at line 95 of file Ex03MCApplication.h.
|
private |
Primary generator.
Definition at line 96 of file Ex03MCApplication.h.
|
private |
Magnetic field.
Definition at line 97 of file Ex03MCApplication.h.
|
private |
Option for geometry definition.
Definition at line 98 of file Ex03MCApplication.h.
|
private |
Option to activate special controls.
Definition at line 99 of file Ex03MCApplication.h.
|
private |
If is on master thread.
Definition at line 100 of file Ex03MCApplication.h.