|
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 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 | SetBinSize (Double_t binSize) |
| DetectorConstruction * | GetDetectorConstruction () const |
Static Public Member Functions | |
| static MCApplication * | Instance () |
Private Member Functions | |
| MCApplication (const MCApplication &origin) | |
| void | RegisterStack () const |
Private Attributes | |
| TMCRootManager * | fRootManager |
| Root manager. | |
| Ex03MCStack * | fStack |
| The VMC stack. | |
| DetectorConstruction * | fDetConstruction |
| Dector construction. | |
| TGeoUniformMagField * | fMagField |
| Magnetic field. | |
| Double_t | fBinSize |
| Edep histogram bin size. | |
| Double_t | fOffsetX |
| The Edep histogram offset. | |
| Double_t | fProjRange |
| Projected range. | |
| Double_t | fProjRange2 |
| Projected range square. | |
| Int_t | fImedAl |
| The Aluminium medium Id. | |
| Int_t | fNofEvents |
| Number of events. | |
| Bool_t | fIsMaster |
| If is on master thread. | |
Implementation of the TVirtualMCApplication.
Definition at line 40 of file MCApplication.h.
| VMC::Monopole::MCApplication::MCApplication | ( | const char * | name, |
| const char * | title ) |
Standard constructor
| name | The MC application name |
| title | The MC application description |
Definition at line 57 of file MCApplication.cxx.
| VMC::Monopole::MCApplication::MCApplication | ( | ) |
Default constructor
Definition at line 108 of file MCApplication.cxx.
|
virtual |
Destructor
Definition at line 123 of file MCApplication.cxx.
|
private |
Copy constructor for cloning application on workers (in multithreading mode)
| origin | The source MC application |
Definition at line 86 of file MCApplication.cxx.
|
inlinestatic |
Definition at line 98 of file MCApplication.h.
| void VMC::Monopole::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 153 of file MCApplication.cxx.
| void VMC::Monopole::MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
| nofEvents | Number of events to be processed |
Definition at line 221 of file MCApplication.cxx.
| void VMC::Monopole::MCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 232 of file MCApplication.cxx.
|
virtual |
Construct geometry using detector contruction class. The detector contruction class is using TGeo functions.
Definition at line 349 of file MCApplication.cxx.
|
virtual |
Initialize geometry.
Definition at line 358 of file MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 366 of file MCApplication.cxx.
|
virtual |
User actions at beginning of event. Nothing to be done this example
Definition at line 407 of file MCApplication.cxx.
|
virtual |
User actions at beginning of a primary track. Nothing to be done this example
Definition at line 414 of file MCApplication.cxx.
|
virtual |
User actions at beginning of each track. Print info message.
Definition at line 421 of file MCApplication.cxx.
|
virtual |
User actions at each step. Print track position, the current volume and current medium names.
Definition at line 433 of file MCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 474 of file MCApplication.cxx.
|
virtual |
User actions after finishing of a primary track. Nothing to be done this example
Definition at line 490 of file MCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 497 of file MCApplication.cxx.
| void VMC::Monopole::MCApplication::SetBinSize | ( | Double_t | binSize | ) |
Set Edep histogram bin size (in cm)
Definition at line 506 of file MCApplication.cxx.
|
inline |
Definition at line 104 of file MCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 138 of file MCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 80 of file MCApplication.h.
|
private |
The VMC stack.
Definition at line 81 of file MCApplication.h.
|
private |
Dector construction.
Definition at line 82 of file MCApplication.h.
|
private |
Magnetic field.
Definition at line 83 of file MCApplication.h.
|
private |
Edep histogram bin size.
Definition at line 84 of file MCApplication.h.
|
private |
The Edep histogram offset.
Definition at line 85 of file MCApplication.h.
|
private |
Projected range.
Definition at line 86 of file MCApplication.h.
|
private |
Projected range square.
Definition at line 87 of file MCApplication.h.
|
private |
The Aluminium medium Id.
Definition at line 88 of file MCApplication.h.
|
private |
Number of events.
Definition at line 89 of file MCApplication.h.
|
private |
If is on master thread.
Definition at line 90 of file MCApplication.h.