|
VMC Examples Version 6.7
|
Implementation of the TVirtualMCApplication. More...
#include <MCApplication.h>

Public Member Functions | |
| MCApplication (const char *name, const char *title) | |
| MCApplication () | |
| virtual | ~MCApplication () |
| 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 | SetPrintModulo (Int_t value) |
| void | SetVerboseLevel (Int_t verboseLevel) |
| void | SetControls (Bool_t isConstrols) |
| void | SetField (Double_t bz) |
| DetectorConstruction * | GetDetectorConstruction () const |
| SensitiveDetector * | GetSensitiveDetector () const |
| PrimaryGenerator * | GetPrimaryGenerator () const |
| void | SetOldGeometry (Bool_t oldGeometry=kTRUE) |
Private Member Functions | |
| MCApplication (const MCApplication &origin) | |
| void | RegisterStack () const |
| void | BookHisto () 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. | |
| DetectorConstruction * | fDetConstruction |
| Dector construction. | |
| SensitiveDetector * | fSensitiveDetector |
| Absorber SD. | |
| PrimaryGenerator * | 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 44 of file MCApplication.h.
| VMC::TR::MCApplication::MCApplication | ( | const char * | name, |
| const char * | title ) |
Standard constructor
| name | The MC application name |
| title | The MC application description |
Definition at line 51 of file MCApplication.cxx.
| VMC::TR::MCApplication::MCApplication | ( | ) |
Default constructor
Definition at line 121 of file MCApplication.cxx.
|
virtual |
Destructor
Definition at line 139 of file MCApplication.cxx.
|
private |
Copy constructor for cloning application on workers (in multithreading mode)
| origin | The source MC application |
Definition at line 87 of file MCApplication.cxx.
| void VMC::TR::MCApplication::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 188 of file MCApplication.cxx.
| void VMC::TR::MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
| nofEvents | Number of events to be processed |
Definition at line 229 of file MCApplication.cxx.
| void VMC::TR::MCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 241 of file MCApplication.cxx.
|
virtual |
Definition at line 268 of file MCApplication.cxx.
|
virtual |
Definition at line 274 of file MCApplication.cxx.
|
virtual |
Definition at line 290 of file MCApplication.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 300 of file MCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 312 of file MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 322 of file MCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 333 of file MCApplication.cxx.
|
virtual |
User actions at beginning of a primary track.
Definition at line 355 of file MCApplication.cxx.
|
virtual |
User actions at beginning of each track. Fill spectra.
Definition at line 363 of file MCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 398 of file MCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 419 of file MCApplication.cxx.
|
virtual |
User actions after finishing of a primary track
Definition at line 427 of file MCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 435 of file MCApplication.cxx.
|
inline |
Set the event modulus number to be printed
| value | The new event modulus number value |
Definition at line 112 of file MCApplication.h.
|
inline |
Set verbosity
| verboseLevel | The new verbose level value |
Definition at line 116 of file MCApplication.h.
|
inline |
Switch on/off special process controls
| isControls | If true, special process controls setting is activated |
Definition at line 155 of file MCApplication.h.
|
inline |
Definition at line 123 of file MCApplication.h.
|
inline |
Definition at line 129 of file MCApplication.h.
|
inline |
Definition at line 135 of file MCApplication.h.
|
inline |
Definition at line 141 of file MCApplication.h.
|
inline |
Switch on/off the old geometry definition (via VMC functions)
| oldGeometry | If true, geometry definition via VMC functions |
Definition at line 148 of file MCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 161 of file MCApplication.cxx.
|
private |
Create histograms
Definition at line 172 of file MCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 92 of file MCApplication.h.
|
private |
The event modulus number to be printed.
Definition at line 93 of file MCApplication.h.
|
private |
Event counter.
Definition at line 94 of file MCApplication.h.
|
private |
VMC verbose helper.
Definition at line 95 of file MCApplication.h.
|
private |
VMC stack.
Definition at line 96 of file MCApplication.h.
|
private |
Dector construction.
Definition at line 97 of file MCApplication.h.
|
private |
Absorber SD.
Definition at line 98 of file MCApplication.h.
|
private |
Primary generator.
Definition at line 99 of file MCApplication.h.
|
private |
Magnetic field.
Definition at line 100 of file MCApplication.h.
|
private |
Option for geometry definition.
Definition at line 101 of file MCApplication.h.
|
private |
Option to activate special controls.
Definition at line 102 of file MCApplication.h.
|
private |
If is on master thread.
Definition at line 103 of file MCApplication.h.