VMC Examples Version 6.6
|
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 () |
void | ReadEvent (Int_t i) |
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 | SetVerboseLevel (Int_t verboseLevel) |
DetectorConstruction * | GetDetectorConstruction () const |
SensitiveDetector * | GetCalorimeterSD () const |
PrimaryGenerator * | GetPrimaryGenerator () const |
Private Member Functions | |
MCApplication (const MCApplication &origin) | |
void | RegisterStack () const |
void | ComputeEventStatistics () const |
Private Attributes | |
TMCRootManager * | fRootManager |
Root manager. | |
Int_t | fEventNo |
Event counter. | |
TMCVerbose | fVerbose |
VMC verbose helper. | |
Ex03MCStack * | fStack |
VMC stack. | |
DetectorConstruction * | fDetConstruction |
Dector construction. | |
SensitiveDetector * | fSensitiveDetector |
Calorimeter SD. | |
PrimaryGenerator * | fPrimaryGenerator |
Primary generator. | |
Bool_t | fIsMaster |
If is on master thread. | |
TStopwatch * | fEventTimer |
Event timer. | |
Implementation of the TVirtualMCApplication.
Geant4 gflash example adapted to Virtual Monte Carlo.
Definition at line 47 of file MCApplication.h.
VMC::Gflash::MCApplication::MCApplication | ( | const char * | name, |
const char * | title ) |
Standard constructor
name | The MC application name |
title | The MC application description |
Definition at line 48 of file MCApplication.cxx.
VMC::Gflash::MCApplication::MCApplication | ( | ) |
Default constructor
Definition at line 103 of file MCApplication.cxx.
|
virtual |
Destructor
Definition at line 117 of file MCApplication.cxx.
|
private |
Copy constructor for cloning application on workers (in multithreading mode)
origin | The source MC application |
Definition at line 77 of file MCApplication.cxx.
void VMC::Gflash::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 235 of file MCApplication.cxx.
void VMC::Gflash::MCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run MC.
nofEvents | Number of events to be processed |
Definition at line 273 of file MCApplication.cxx.
void VMC::Gflash::MCApplication::FinishRun | ( | ) |
Finish MC run.
Definition at line 285 of file MCApplication.cxx.
void VMC::Gflash::MCApplication::ReadEvent | ( | Int_t | i | ) |
Read i -th event and prints hits.
i | The number of event to be read |
Definition at line 329 of file MCApplication.cxx.
|
virtual |
Definition at line 298 of file MCApplication.cxx.
|
virtual |
Definition at line 304 of file MCApplication.cxx.
|
virtual |
Definition at line 319 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 340 of file MCApplication.cxx.
|
virtual |
Initialize geometry
Definition at line 352 of file MCApplication.cxx.
|
virtual |
Fill the user stack (derived from TVirtualMCStack) with primary particles.
Definition at line 362 of file MCApplication.cxx.
|
virtual |
User actions at beginning of event
Definition at line 374 of file MCApplication.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 398 of file MCApplication.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 408 of file MCApplication.cxx.
|
virtual |
User actions at each step
Definition at line 419 of file MCApplication.cxx.
|
virtual |
User actions after finishing of each track
Definition at line 440 of file MCApplication.cxx.
|
virtual |
User actions after finishing of a primary track
Definition at line 448 of file MCApplication.cxx.
|
virtual |
User actions after finishing of an event
Definition at line 456 of file MCApplication.cxx.
|
inline |
Set verbosity
verboseLevel | The new verbose level value |
Definition at line 107 of file MCApplication.h.
|
inline |
Definition at line 113 of file MCApplication.h.
|
inline |
Definition at line 119 of file MCApplication.h.
|
inline |
Definition at line 125 of file MCApplication.h.
|
private |
Register stack in the Root manager.
Definition at line 138 of file MCApplication.cxx.
|
private |
Compute event statisics
Definition at line 149 of file MCApplication.cxx.
|
mutableprivate |
Root manager.
Definition at line 90 of file MCApplication.h.
|
private |
Event counter.
Definition at line 91 of file MCApplication.h.
|
private |
VMC verbose helper.
Definition at line 92 of file MCApplication.h.
|
private |
VMC stack.
Definition at line 93 of file MCApplication.h.
|
private |
Dector construction.
Definition at line 94 of file MCApplication.h.
|
private |
Calorimeter SD.
Definition at line 95 of file MCApplication.h.
|
private |
Primary generator.
Definition at line 96 of file MCApplication.h.
|
private |
If is on master thread.
Definition at line 97 of file MCApplication.h.
|
private |
Event timer.
Definition at line 98 of file MCApplication.h.