VMC Examples Version 6.6
|
Implementation of the TVirtualMCApplication. More...
#include <A01MCApplication.h>
Private Member Functions | |
A01MCApplication (const A01MCApplication &origin) | |
void | RegisterStack () const |
Private Attributes | |
TMCRootManager * | fRootManager |
Root manager. | |
Bool_t | fWriteStack |
Option to write stack. | |
Bool_t | fWriteHits |
Bool_t | fUseLocalMagField |
Option to use local magnetic field (working only with Geant4 !) | |
TMCVerbose | fVerbose |
VMC verbose helper. | |
Ex03MCStack * | fStack |
VMC stack. | |
A01RootDetectorConstruction * | fDetConstruction |
Detector construction. | |
A01DriftChamberSD * | fDriftChamberSD1 |
Drift Chamber 1 SD. | |
A01DriftChamberSD * | fDriftChamberSD2 |
Drift Chamber 2 SD. | |
A01EmCalorimeterSD * | fEmCalorimeterSD |
Em Calorimeter SD. | |
A01HadCalorimeterSD * | fHadCalorimeterSD |
Had Calorimeter SD. | |
A01HodoscopeSD * | fHodoscopeSD1 |
Hodoscope 1 SD. | |
A01HodoscopeSD * | fHodoscopeSD2 |
Hodoscope 2 SD. | |
A01PrimaryGenerator * | fPrimaryGenerator |
Primary generator. | |
A01MagField * | fMagField |
Magnetic field. | |
Bool_t | fIsMaster |
If is on master thread. | |
Implementation of the TVirtualMCApplication.
Definition at line 42 of file A01MCApplication.h.
A01MCApplication::A01MCApplication | ( | const char * | name, |
const char * | title ) |
Standard constructor
name | The MC application name |
title | The MC application description |
Definition at line 50 of file A01MCApplication.cxx.
A01MCApplication::A01MCApplication | ( | ) |
Default constructor
Definition at line 143 of file A01MCApplication.cxx.
|
virtual |
Destructor
Definition at line 165 of file A01MCApplication.cxx.
|
private |
Copy constructor (for clonig on worker thread in MT mode).
origin | The source object (on master). |
Definition at line 98 of file A01MCApplication.cxx.
void A01MCApplication::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 207 of file A01MCApplication.cxx.
void A01MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
nofEvents | Number of events to be processed |
Definition at line 249 of file A01MCApplication.cxx.
void A01MCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 261 of file A01MCApplication.cxx.
void A01MCApplication::ReadEvent | ( | Int_t | i | ) |
Read i -th event and print hits.
i | The number of event to be read |
Definition at line 307 of file A01MCApplication.cxx.
|
virtual |
Definition at line 274 of file A01MCApplication.cxx.
|
virtual |
Definition at line 281 of file A01MCApplication.cxx.
|
virtual |
Definition at line 297 of file A01MCApplication.cxx.
|
virtual |
Construct geometry using detector contruction class.
Definition at line 323 of file A01MCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 332 of file A01MCApplication.cxx.
|
virtual |
Nothing to be done
Definition at line 350 of file A01MCApplication.cxx.
|
virtual |
Nothing to be done
Definition at line 358 of file A01MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 366 of file A01MCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 375 of file A01MCApplication.cxx.
|
virtual |
User actions at beginning of a primary track.
Definition at line 392 of file A01MCApplication.cxx.
|
virtual |
User actions at beginning of each track
Definition at line 400 of file A01MCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 408 of file A01MCApplication.cxx.
|
virtual |
User actions after finishing each track
Definition at line 422 of file A01MCApplication.cxx.
|
virtual |
User actions after finishing each primary track
Definition at line 430 of file A01MCApplication.cxx.
|
virtual |
User actions after finishing an event
Definition at line 438 of file A01MCApplication.cxx.
void A01MCApplication::SetCuts | ( | ) |
Set cuts for e-, gamma equivalent to 1mm cut in G4.
Definition at line 517 of file A01MCApplication.cxx.
|
inline |
(In)Activate writing stack on file
writeStack | The new value of the option |
Definition at line 121 of file A01MCApplication.h.
void A01MCApplication::SetWriteHits | ( | Bool_t | writeHits | ) |
(In)Activate writing hits on file and propagate this option to all SDs
writeHits | The new value of the option |
Definition at line 487 of file A01MCApplication.cxx.
void A01MCApplication::SetUseLocalMagField | ( | Bool_t | localMagField | ) |
Set the option to use local magnetic field (working only with Geant4 !)
localMagField | The new value of the option |
Definition at line 503 of file A01MCApplication.cxx.
|
inline |
Set verbosity
verboseLevel | The new verbose level value |
Definition at line 128 of file A01MCApplication.h.
|
inline |
Definition at line 140 of file A01MCApplication.h.
|
inline |
Definition at line 146 of file A01MCApplication.h.
|
inline |
Definition at line 152 of file A01MCApplication.h.
|
inline |
Definition at line 158 of file A01MCApplication.h.
|
inline |
Definition at line 164 of file A01MCApplication.h.
|
inline |
Definition at line 170 of file A01MCApplication.h.
|
inline |
Definition at line 176 of file A01MCApplication.h.
|
inline |
Definition at line 182 of file A01MCApplication.h.
|
inline |
Definition at line 188 of file A01MCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 192 of file A01MCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 96 of file A01MCApplication.h.
|
private |
Option to write stack.
Definition at line 97 of file A01MCApplication.h.
|
private |
Option to write hits
Definition at line 98 of file A01MCApplication.h.
|
private |
Option to use local magnetic field (working only with Geant4 !)
Definition at line 100 of file A01MCApplication.h.
|
private |
VMC verbose helper.
Definition at line 101 of file A01MCApplication.h.
|
private |
VMC stack.
Definition at line 102 of file A01MCApplication.h.
|
private |
Detector construction.
Definition at line 103 of file A01MCApplication.h.
|
private |
Drift Chamber 1 SD.
Definition at line 104 of file A01MCApplication.h.
|
private |
Drift Chamber 2 SD.
Definition at line 105 of file A01MCApplication.h.
|
private |
Em Calorimeter SD.
Definition at line 106 of file A01MCApplication.h.
|
private |
Had Calorimeter SD.
Definition at line 107 of file A01MCApplication.h.
|
private |
Hodoscope 1 SD.
Definition at line 108 of file A01MCApplication.h.
|
private |
Hodoscope 2 SD.
Definition at line 109 of file A01MCApplication.h.
|
private |
Primary generator.
Definition at line 110 of file A01MCApplication.h.
|
private |
Magnetic field.
Definition at line 111 of file A01MCApplication.h.
|
private |
If is on master thread.
Definition at line 112 of file A01MCApplication.h.