VMC Examples Version 6.6
|
Implementation of the TVirtualMCApplication. More...
#include <Ex01MCApplication.h>
Public Member Functions | |
Ex01MCApplication (const char *name, const char *title) | |
Ex01MCApplication () | |
virtual | ~Ex01MCApplication () |
void | InitMC (const char *setup) |
void | RunMC (Int_t nofEvents) |
void | FinishRun () |
virtual TVirtualMCApplication * | CloneForWorker () const |
virtual void | InitOnWorker () |
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 | SetOldGeometry (Bool_t oldGeometry=kTRUE) |
void | TestVMCGeometryGetters () |
Static Public Member Functions | |
static Ex01MCApplication * | Instance () |
Private Member Functions | |
void | ConstructMaterials () |
void | ConstructVolumes () |
Private Attributes | |
TVirtualMCStack * | fStack |
The VMC stack. | |
TVirtualMagField * | fMagField |
The magnetic field. | |
Int_t | fImedAr |
The Argon gas medium Id. | |
Int_t | fImedAl |
The Aluminium medium Id. | |
Int_t | fImedPb |
The Lead medium Id. | |
Bool_t | fOldGeometry |
Option for geometry definition. | |
Implementation of the TVirtualMCApplication.
Definition at line 31 of file Ex01MCApplication.h.
Ex01MCApplication::Ex01MCApplication | ( | const char * | name, |
const char * | title ) |
Standard constructor
name | The MC application name |
title | The MC application description |
Definition at line 40 of file Ex01MCApplication.cxx.
Ex01MCApplication::Ex01MCApplication | ( | ) |
Default constructor
Definition at line 61 of file Ex01MCApplication.cxx.
|
virtual |
Destructor
Definition at line 74 of file Ex01MCApplication.cxx.
|
inlinestatic |
Definition at line 81 of file Ex01MCApplication.h.
void Ex01MCApplication::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 222 of file Ex01MCApplication.cxx.
void Ex01MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
nofEvents | Number of events to be processed |
Definition at line 244 of file Ex01MCApplication.cxx.
void Ex01MCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 254 of file Ex01MCApplication.cxx.
|
virtual |
Definition at line 260 of file Ex01MCApplication.cxx.
|
virtual |
Definition at line 266 of file Ex01MCApplication.cxx.
|
virtual |
Construct geometry using TGeo functions or TVirtualMC functions (if oldGeometry is selected)
Definition at line 273 of file Ex01MCApplication.cxx.
|
virtual |
Initialize geometry.
Definition at line 300 of file Ex01MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 310 of file Ex01MCApplication.cxx.
|
virtual |
User actions at beginning of event. Nothing to be done this example
Definition at line 361 of file Ex01MCApplication.cxx.
|
virtual |
User actions at beginning of a primary track. Nothing to be done this example
Definition at line 368 of file Ex01MCApplication.cxx.
|
virtual |
User actions at beginning of each track. Print info message.
Definition at line 375 of file Ex01MCApplication.cxx.
|
virtual |
User actions at each step. Print track position, the current volume and current medium names.
Definition at line 385 of file Ex01MCApplication.cxx.
|
virtual |
User actions after finishing of each track Nothing to be done this example
Definition at line 415 of file Ex01MCApplication.cxx.
|
virtual |
User actions after finishing of a primary track. Nothing to be done this example
Definition at line 422 of file Ex01MCApplication.cxx.
|
virtual |
User actions after finishing of an event Nothing to be done this example
Definition at line 429 of file Ex01MCApplication.cxx.
|
inline |
Select old geometry definition (via TVirtualMC)
Definition at line 87 of file Ex01MCApplication.h.
void Ex01MCApplication::TestVMCGeometryGetters | ( | ) |
Test (new) TVirtualMC functions: GetTransform(), GetShape(), GetMaterial(), GetMedium()
Definition at line 436 of file Ex01MCApplication.cxx.
|
private |
Construct materials using TGeo modeller
Definition at line 88 of file Ex01MCApplication.cxx.
|
private |
Contruct volumes using TGeo modeller
Definition at line 153 of file Ex01MCApplication.cxx.
|
private |
The VMC stack.
Definition at line 69 of file Ex01MCApplication.h.
|
private |
The magnetic field.
Definition at line 70 of file Ex01MCApplication.h.
|
private |
The Argon gas medium Id.
Definition at line 71 of file Ex01MCApplication.h.
|
private |
The Aluminium medium Id.
Definition at line 72 of file Ex01MCApplication.h.
|
private |
The Lead medium Id.
Definition at line 73 of file Ex01MCApplication.h.
|
private |
Option for geometry definition.
Definition at line 74 of file Ex01MCApplication.h.