VMC Examples Version 6.6
|
Implementation of the TVirtualMCApplication. More...
#include <Ex03bMCApplication.h>
Public Member Functions | |
Ex03bMCApplication (const char *name, const char *title) | |
Ex03bMCApplication () | |
virtual | ~Ex03bMCApplication () |
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 | ConstructSensitiveDetectors () |
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 | EndOfEvent () |
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 |
Ex03bCalorimeterSD * | GetCalorimeterSD () const |
Ex03PrimaryGenerator * | GetPrimaryGenerator () const |
void | SetOldGeometry (Bool_t oldGeometry=kTRUE) |
Private Member Functions | |
Ex03bMCApplication (const Ex03bMCApplication &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. | |
Ex03bCalorimeterSD * | 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: the MC application using a sensitive detcetor derived from the new TVirtualMCSensitiveDetector interface.
Definition at line 42 of file Ex03bMCApplication.h.
Ex03bMCApplication::Ex03bMCApplication | ( | const char * | name, |
const char * | title ) |
Standard constructor
name | The MC application name |
title | The MC application description |
Definition at line 44 of file Ex03bMCApplication.cxx.
Ex03bMCApplication::Ex03bMCApplication | ( | ) |
Default constructor
Definition at line 120 of file Ex03bMCApplication.cxx.
|
virtual |
Destructor
Definition at line 138 of file Ex03bMCApplication.cxx.
|
private |
Copy constructor for cloning application on workers (in multithreading mode)
origin | The source MC application |
Definition at line 86 of file Ex03bMCApplication.cxx.
void Ex03bMCApplication::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 Ex03bMCApplication.cxx.
void Ex03bMCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
nofEvents | Number of events to be processed |
Definition at line 214 of file Ex03bMCApplication.cxx.
void Ex03bMCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 226 of file Ex03bMCApplication.cxx.
void Ex03bMCApplication::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 Ex03bMCApplication.cxx.
|
virtual |
Definition at line 239 of file Ex03bMCApplication.cxx.
|
virtual |
Definition at line 245 of file Ex03bMCApplication.cxx.
|
virtual |
Definition at line 261 of file Ex03bMCApplication.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 Ex03bMCApplication.cxx.
|
virtual |
Create sensitive detectors and attach them to sensitive volumes
Definition at line 304 of file Ex03bMCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 323 of file Ex03bMCApplication.cxx.
|
virtual |
Example of user defined particle with user defined decay mode
Definition at line 337 of file Ex03bMCApplication.cxx.
|
virtual |
Example of user defined ion
Definition at line 386 of file Ex03bMCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 396 of file Ex03bMCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 409 of file Ex03bMCApplication.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 433 of file Ex03bMCApplication.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 447 of file Ex03bMCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 474 of file Ex03bMCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 495 of file Ex03bMCApplication.cxx.
|
virtual |
User actions after finishing of a primary track
Definition at line 503 of file Ex03bMCApplication.cxx.
|
virtual |
User actions et the end of event before SD's end of event
Definition at line 515 of file Ex03bMCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 525 of file Ex03bMCApplication.cxx.
|
inline |
Set the event modulus number to be printed
value | The new event modulus number value |
Definition at line 117 of file Ex03bMCApplication.h.
|
inline |
Set verbosity
verboseLevel | The new verbose level value |
Definition at line 124 of file Ex03bMCApplication.h.
|
inline |
Switch on/off special process controls
isControls | If true, special process controls setting is activated |
Definition at line 164 of file Ex03bMCApplication.h.
|
inline |
Definition at line 131 of file Ex03bMCApplication.h.
|
inline |
Definition at line 138 of file Ex03bMCApplication.h.
|
inline |
Definition at line 144 of file Ex03bMCApplication.h.
|
inline |
Definition at line 150 of file Ex03bMCApplication.h.
|
inline |
Switch on/off the old geometry definition (via VMC functions)
oldGeometry | If true, geometry definition via VMC functions |
Definition at line 157 of file Ex03bMCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 160 of file Ex03bMCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 94 of file Ex03bMCApplication.h.
|
private |
The event modulus number to be printed.
Definition at line 95 of file Ex03bMCApplication.h.
|
private |
Event counter.
Definition at line 96 of file Ex03bMCApplication.h.
|
private |
VMC verbose helper.
Definition at line 97 of file Ex03bMCApplication.h.
|
private |
VMC stack.
Definition at line 98 of file Ex03bMCApplication.h.
|
private |
Dector construction.
Definition at line 99 of file Ex03bMCApplication.h.
|
private |
Calorimeter SD.
Definition at line 100 of file Ex03bMCApplication.h.
|
private |
Primary generator.
Definition at line 101 of file Ex03bMCApplication.h.
|
private |
Magnetic field.
Definition at line 102 of file Ex03bMCApplication.h.
|
private |
Option for geometry definition.
Definition at line 103 of file Ex03bMCApplication.h.
|
private |
Option to activate special controls.
Definition at line 104 of file Ex03bMCApplication.h.
|
private |
If is on master thread.
Definition at line 105 of file Ex03bMCApplication.h.