![]() |
Project
|
#include <FairMCApplication.h>
Inherits TVirtualMCApplication.
Inherited by o2::steer::O2MCApplicationBase.
Static Public Member Functions | |
| static FairMCApplication * | Instance () |
Protected Member Functions | |
| ClassDef (FairMCApplication, 4) | |
| FairMCApplication (const FairMCApplication &) | |
| Bool_t | IsMasterApplication () const |
| FairModule * | OwnModule (FairModule *module) const |
Definition at line 61 of file FairMCApplication.h.
| FairMCApplication::FairMCApplication | ( | const char * | name, |
| const char * | title, | ||
| TObjArray * | ModList, | ||
| const char * | MatName | ||
| ) |
Standard constructor
| name | name |
| title | title |
| ModList | a TObjArray containing all detectors and modules used in this simulation |
| MatName | material file name |
Definition at line 75 of file FairMCApplication.cxx.
| FairMCApplication::FairMCApplication | ( | ) |
default constructor
Definition at line 258 of file FairMCApplication.cxx.
|
virtual |
default destructor
Definition at line 306 of file FairMCApplication.cxx.
|
protected |
Copy constructor, used to create the application of a worker thread
Definition at line 165 of file FairMCApplication.cxx.
|
virtual |
Definition at line 1276 of file FairMCApplication.cxx.
|
virtual |
Add user defined ions (optional)
Initialize the event generator
Definition at line 1171 of file FairMCApplication.cxx.
| void FairMCApplication::AddMeshList | ( | TObjArray * | meshList | ) |
Definition at line 1426 of file FairMCApplication.cxx.
|
virtual |
Add user defined particles (optional)
Reimplemented in o2::steer::O2MCApplicationBase.
Definition at line 1211 of file FairMCApplication.cxx.
Add user defined Tasks to be executed after each event (optional)
| fTask | Task that has to be excuted during simulation |
Definition at line 1359 of file FairMCApplication.cxx.
|
virtual |
Define actions at the beginning of the event
Reimplemented in o2::steer::O2MCApplication, o2::steer::O2MCApplicationBase, and o2::steer::O2MCApplicationEvalMat.
Definition at line 541 of file FairMCApplication.cxx.
|
virtual |
Define actions at the beginning of primary track
Definition at line 552 of file FairMCApplication.cxx.
|
protected |
|
virtual |
Clone for worker (used in MT mode only)
Reimplemented in o2::steer::O2MCApplication.
Definition at line 590 of file FairMCApplication.cxx.
|
virtual |
Construct user geometry
Reimplemented in o2::steer::O2MCApplicationBase.
Definition at line 903 of file FairMCApplication.cxx.
|
virtual |
Define parameters for optical processes (optional)
Definition at line 886 of file FairMCApplication.cxx.
|
virtual |
Define actions at the end of event
Reimplemented in o2::steer::O2MCApplication, o2::steer::O2MCApplicationBase, and o2::steer::O2MCApplicationEvalMat.
Definition at line 811 of file FairMCApplication.cxx.
|
virtual |
Define actions at the end of primary track
Reimplemented in o2::steer::O2MCApplicationEvalMat.
Definition at line 779 of file FairMCApplication.cxx.
| void FairMCApplication::FinishRun | ( | ) |
Define actions at the end of run
Definition at line 467 of file FairMCApplication.cxx.
|
virtual |
Finish run on worker (used in MT mode only)
Reimplemented in o2::steer::O2MCApplication.
Definition at line 658 of file FairMCApplication.cxx.
|
virtual |
Generate primary particles
Reimplemented in o2::steer::O2MCApplication.
Definition at line 1152 of file FairMCApplication.cxx.
| TChain * FairMCApplication::GetChain | ( | ) |
Definition at line 1397 of file FairMCApplication.cxx.
| FairDetector * FairMCApplication::GetDetector | ( | const char * | DetName | ) |
Return detector by name
Definition at line 1166 of file FairMCApplication.cxx.
|
inline |
Return Field used in simulation
Definition at line 111 of file FairMCApplication.h.
| FairPrimaryGenerator * FairMCApplication::GetGenerator | ( | ) |
Return primary generator
Definition at line 1353 of file FairMCApplication.cxx.
| TTask * FairMCApplication::GetListOfTasks | ( | ) |
Return list of tasks
Definition at line 1373 of file FairMCApplication.cxx.
| FairGenericStack * FairMCApplication::GetStack | ( | ) |
Definition at line 1370 of file FairMCApplication.cxx.
|
inline |
Get the current application state.
Definition at line 211 of file FairMCApplication.h.
|
virtual |
Initialize geometry
Initialize geometry
Register stack and detector collections
SetSpecialPhysicsCuts for FairDetector objects and all passive modules inheriting from FairModule
Tasks has to be initialized here, they have access to the detector branches and still can create objects in the tree
There is always a Main Task ! so .. always a InitTasks() is called <D.B>
save Geo Params in Output file
Reimplemented in o2::steer::O2MCApplicationBase.
Definition at line 995 of file FairMCApplication.cxx.
Initialize MC engine
Definition at line 411 of file FairMCApplication.cxx.
|
virtual |
Init application on worker (used in MT mode only)
Reimplemented in o2::steer::O2MCApplication.
Definition at line 631 of file FairMCApplication.cxx.
| void FairMCApplication::InitTasks | ( | ) |
Initialize Tasks if any
Definition at line 1386 of file FairMCApplication.cxx.
|
inlinestatic |
Singelton instance
Definition at line 330 of file FairMCApplication.h.
|
inlineprotected |
True for the application on the master thread, false for a worker clone
Definition at line 323 of file FairMCApplication.h.
|
virtual |
Align or misalign geometry before actual run
Reimplemented in o2::steer::O2MCApplicationBase.
Definition at line 987 of file FairMCApplication.cxx.
|
protected |
The worker clone of a module of the master application (the module itself on the master)
Definition at line 617 of file FairMCApplication.cxx.
|
virtual |
Define actions at the end of each track
Definition at line 769 of file FairMCApplication.cxx.
|
virtual |
Define actions at the beginning of each track
Reimplemented in o2::steer::O2MCApplicationBase.
Definition at line 562 of file FairMCApplication.cxx.
| void FairMCApplication::RunMC | ( | Int_t | nofEvents | ) |
Run the MC engine
| nofEvents | : number of events to simulate |
Set the list of active detectors to the stack
Definition at line 451 of file FairMCApplication.cxx.
Set the magnetic field for simulation
| field | magnetic field |
Definition at line 884 of file FairMCApplication.cxx.
| void FairMCApplication::SetGenerator | ( | FairPrimaryGenerator * | fxGenerator | ) |
Set the event generator for simulation
| fxGenerator | Event generator(s) |
Definition at line 1356 of file FairMCApplication.cxx.
| void FairMCApplication::SetParTask | ( | ) |
Set the parameter containers needed by Tasks(if any)
Definition at line 1376 of file FairMCApplication.cxx.
|
inline |
Switch for using Pythia as external decayer
| decayer | if TRUE pythia will decay particles specifid in the Decay Config macro (see SetPythiaDecayerConfig) |
Definition at line 161 of file FairMCApplication.h.
|
inline |
set the decay configuration macro to be used by Pythia
Definition at line 165 of file FairMCApplication.h.
| void FairMCApplication::SetRadiationLengthReg | ( | Bool_t | RadLen | ) |
Switch for using the radiation length manager
Definition at line 1408 of file FairMCApplication.cxx.
| void FairMCApplication::SetRadiationMapReg | ( | Bool_t | RadMap | ) |
Switch for using the radiation map manager
Definition at line 1417 of file FairMCApplication.cxx.
|
inline |
Set if the current event should be written to the output file. The default value which is set back after each event is to store the event.
Definition at line 206 of file FairMCApplication.h.
|
inline |
Switch for debuging the tracking
Definition at line 177 of file FairMCApplication.h.
|
inline |
Switch for using 2 or 3 body phase-space decay
| decay | if TRUE 2/3 body phase space decay will be used for particle specified in the User Decay Config macro (see SetUserDecayConfig) |
Definition at line 183 of file FairMCApplication.h.
|
inline |
set the decay configuration macro to be used by user decay
Definition at line 187 of file FairMCApplication.h.
|
virtual |
Define action at each step, dispatch the action to the corresponding detectors
Reimplemented in o2::steer::O2MCApplicationBase, and o2::steer::O2MCApplicationEvalMat.
Definition at line 666 of file FairMCApplication.cxx.
|
virtual |
Stop the run
Definition at line 804 of file FairMCApplication.cxx.
|
virtual |
Stop the run
Definition at line 791 of file FairMCApplication.cxx.
|
virtual |
Define maximum radius for tracking (optional)
Reimplemented in o2::steer::O2MCApplicationBase.
Definition at line 870 of file FairMCApplication.cxx.
|
virtual |
Define maximum z for tracking (optional)
Reimplemented in o2::steer::O2MCApplicationBase.
Definition at line 877 of file FairMCApplication.cxx.
|
protected |
List of active detector
Definition at line 222 of file FairMCApplication.h.
|
protected |
Debug flag
Definition at line 260 of file FairMCApplication.h.
|
protected |
detector list (Passive and Active)
Definition at line 226 of file FairMCApplication.h.
|
protected |
Map used for dispatcher
Definition at line 228 of file FairMCApplication.h.
|
protected |
dispatcher internal use
Definition at line 264 of file FairMCApplication.h.
|
protected |
dispatcher internal use
Definition at line 262 of file FairMCApplication.h.
|
protected |
Definition at line 287 of file FairMCApplication.h.
|
protected |
Primary generator
Definition at line 248 of file FairMCApplication.h.
|
protected |
List of FairTask
Definition at line 224 of file FairMCApplication.h.
|
protected |
Pointer to the current MC engine //!
Definition at line 296 of file FairMCApplication.h.
|
protected |
Definition at line 289 of file FairMCApplication.h.
|
protected |
MC Engine 1= Geant3, 2 = Geant4
Definition at line 250 of file FairMCApplication.h.
|
protected |
Iterator for Module list
Definition at line 230 of file FairMCApplication.h.
|
protected |
Module list in simulation
Definition at line 232 of file FairMCApplication.h.
|
protected |
dispatcher internal use RadLen
Definition at line 273 of file FairMCApplication.h.
|
protected |
Track position dispatcher internal use RadLeng
Definition at line 271 of file FairMCApplication.h.
|
protected |
Number of sensetive volumes in simulation session
Definition at line 234 of file FairMCApplication.h.
|
protected |
flag for using Pythia as external decayer
Definition at line 236 of file FairMCApplication.h.
|
protected |
Pythia decay config macro
Definition at line 238 of file FairMCApplication.h.
|
protected |
Radiation map Grid Manager
Definition at line 285 of file FairMCApplication.h.
|
protected |
Flag for Radiation length register mode
Definition at line 276 of file FairMCApplication.h.
|
protected |
Radiation length Manager
Definition at line 279 of file FairMCApplication.h.
|
protected |
Flag for Radiation map register mode
Definition at line 281 of file FairMCApplication.h.
|
protected |
Radiation Map Manager
Definition at line 283 of file FairMCApplication.h.
|
protected |
Pointer to thr I/O Manager
Definition at line 242 of file FairMCApplication.h.
|
protected |
Pointer to FairRunSim //!
Definition at line 298 of file FairMCApplication.h.
|
protected |
Flag if the current event should be saved
Definition at line 301 of file FairMCApplication.h.
|
protected |
List of sensetive volumes in all detectors
Definition at line 244 of file FairMCApplication.h.
|
protected |
Simulation Stack
Definition at line 240 of file FairMCApplication.h.
|
protected |
Current state
Definition at line 304 of file FairMCApplication.h.
|
protected |
Flag for accepted tracks for visualization
Definition at line 254 of file FairMCApplication.h.
|
protected |
Track visualization manager
Definition at line 252 of file FairMCApplication.h.
|
protected |
Definition at line 274 of file FairMCApplication.h.
|
protected |
Flag for using user decay
Definition at line 256 of file FairMCApplication.h.
|
protected |
User decay config macro
Definition at line 258 of file FairMCApplication.h.
|
protected |
dispatcher internal use
Definition at line 268 of file FairMCApplication.h.
|
protected |
dispatcher internal use
Definition at line 266 of file FairMCApplication.h.
|
protected |
Magnetic Field Pointer
Definition at line 246 of file FairMCApplication.h.
|
protected |
list of senstive detectors used in the simuation session
Definition at line 291 of file FairMCApplication.h.
|
protected |
list of all detectors used in the simuation session
Definition at line 293 of file FairMCApplication.h.