FairRoot
|
#include <FairMCApplication.h>
Public Member Functions | |
FairMCApplication (const char *name, const char *title, TObjArray *ModList, const char *MatName) | |
FairMCApplication () | |
virtual | ~FairMCApplication () |
virtual void | AddDecayModes () |
virtual void | AddParticles () |
virtual void | AddIons () |
void | AddTask (TTask *fTask) |
virtual void | BeginEvent () |
virtual void | BeginPrimary () |
virtual void | ConstructGeometry () |
virtual Bool_t | MisalignGeometry () |
virtual void | ConstructOpGeometry () |
virtual void | FinishEvent () |
virtual void | FinishPrimary () |
void | FinishRun () |
virtual void | GeneratePrimaries () |
FairDetector * | GetDetector (const char *DetName) |
FairField * | GetField () |
FairPrimaryGenerator * | GetGenerator () |
TTask * | GetListOfTasks () |
FairGenericStack * | GetStack () |
TChain * | GetChain () |
virtual void | InitGeometry () |
void | InitMC (const char *setup, const char *cuts) |
void | InitTasks () |
virtual void | PostTrack () |
virtual void | PreTrack () |
virtual TVirtualMCApplication * | CloneForWorker () const |
virtual void | InitOnWorker () |
virtual void | FinishRunOnWorker () |
void | RunMC (Int_t nofEvents) |
void | SetField (FairField *field) |
void | SetGenerator (FairPrimaryGenerator *fxGenerator) |
void | SetParTask () |
void | SetPythiaDecayer (Bool_t decayer) |
void | SetPythiaDecayerConfig (const TString decayerConf) |
void | SetRadiationLengthReg (Bool_t RadLen) |
void | SetRadiationMapReg (Bool_t RadMap) |
void | SetTrackingDebugMode (Bool_t set) |
void | SetUserDecay (Bool_t decay) |
void | SetUserDecayConfig (const TString decayerConf) |
virtual void | Stepping () |
virtual void | StopRun () |
virtual void | StopMCRun () |
virtual Double_t | TrackingRmax () const |
virtual Double_t | TrackingZmax () const |
void | AddMeshList (TObjArray *meshList) |
void | SetSaveCurrentEvent (Bool_t set) |
FairMCApplicationState | GetState () const |
Static Public Member Functions | |
static FairMCApplication * | Instance () |
Protected Member Functions | |
ClassDef (FairMCApplication, 4) | |
The Main Application ( Interface to MonteCarlo application )
Definition at line 60 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.
|
virtual |
Definition at line 1278 of file FairMCApplication.cxx.
|
virtual |
Add user defined ions (optional)
Initialize the event generator
Definition at line 1173 of file FairMCApplication.cxx.
void FairMCApplication::AddMeshList | ( | TObjArray * | meshList | ) |
Definition at line 1433 of file FairMCApplication.cxx.
|
virtual |
Add user defined particles (optional)
Definition at line 1213 of file FairMCApplication.cxx.
void FairMCApplication::AddTask | ( | TTask * | fTask | ) |
Add user defined Tasks to be executed after each event (optional)
fTask,: | Task that has to be excuted during simulation |
Definition at line 1361 of file FairMCApplication.cxx.
|
virtual |
Define actions at the beginning of the event
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)
Definition at line 590 of file FairMCApplication.cxx.
|
virtual |
Construct user geometry
Definition at line 914 of file FairMCApplication.cxx.
|
virtual |
Define parameters for optical processes (optional)
Definition at line 872 of file FairMCApplication.cxx.
|
virtual |
Define actions at the end of event
Definition at line 797 of file FairMCApplication.cxx.
|
virtual |
Define actions at the end of primary track
Definition at line 765 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)
Definition at line 644 of file FairMCApplication.cxx.
|
virtual |
Generate primary particles
Definition at line 1154 of file FairMCApplication.cxx.
TChain * FairMCApplication::GetChain | ( | ) |
Definition at line 1404 of file FairMCApplication.cxx.
FairDetector * FairMCApplication::GetDetector | ( | const char * | DetName | ) |
Return detector by name
Definition at line 1168 of file FairMCApplication.cxx.
|
inline |
Return Field used in simulation
Definition at line 110 of file FairMCApplication.h.
FairPrimaryGenerator * FairMCApplication::GetGenerator | ( | ) |
Return primary generator
Definition at line 1355 of file FairMCApplication.cxx.
TTask * FairMCApplication::GetListOfTasks | ( | ) |
Return list of tasks
Definition at line 1375 of file FairMCApplication.cxx.
FairGenericStack * FairMCApplication::GetStack | ( | ) |
Definition at line 1372 of file FairMCApplication.cxx.
|
inline |
Get the current application state.
Definition at line 210 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
Definition at line 1007 of file FairMCApplication.cxx.
void FairMCApplication::InitMC | ( | const char * | setup, |
const char * | cuts | ||
) |
Initialize MC engine
Definition at line 411 of file FairMCApplication.cxx.
|
virtual |
Init application on worker (used in MT mode only)
Definition at line 617 of file FairMCApplication.cxx.
void FairMCApplication::InitTasks | ( | ) |
Initialize Tasks if any
Definition at line 1393 of file FairMCApplication.cxx.
|
inlinestatic |
Singelton instance
Definition at line 321 of file FairMCApplication.h.
|
virtual |
Align or misalign geometry before actual run
Definition at line 999 of file FairMCApplication.cxx.
|
virtual |
Define actions at the end of each track
Definition at line 755 of file FairMCApplication.cxx.
|
virtual |
Define actions at the beginning of each track
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.
void FairMCApplication::SetField | ( | FairField * | field | ) |
Set the magnetic field for simulation
field,: | magnetic field |
Definition at line 870 of file FairMCApplication.cxx.
void FairMCApplication::SetGenerator | ( | FairPrimaryGenerator * | fxGenerator | ) |
Set the event generator for simulation
fxGenerator,: | Event generator(s) |
Definition at line 1358 of file FairMCApplication.cxx.
void FairMCApplication::SetParTask | ( | ) |
Set the parameter containers needed by Tasks(if any)
Definition at line 1378 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 160 of file FairMCApplication.h.
|
inline |
set the decay configuration macro to be used by Pythia
Definition at line 164 of file FairMCApplication.h.
void FairMCApplication::SetRadiationLengthReg | ( | Bool_t | RadLen | ) |
Switch for using the radiation length manager
Definition at line 1415 of file FairMCApplication.cxx.
void FairMCApplication::SetRadiationMapReg | ( | Bool_t | RadMap | ) |
Switch for using the radiation map manager
Definition at line 1424 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 205 of file FairMCApplication.h.
|
inline |
Switch for debuging the tracking
Definition at line 176 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 182 of file FairMCApplication.h.
|
inline |
set the decay configuration macro to be used by user decay
Definition at line 186 of file FairMCApplication.h.
|
virtual |
Define action at each step, dispatch the action to the corresponding detectors
Definition at line 652 of file FairMCApplication.cxx.
|
virtual |
Stop the run
Definition at line 790 of file FairMCApplication.cxx.
|
virtual |
Stop the run
Definition at line 777 of file FairMCApplication.cxx.
|
virtual |
Define maximum radius for tracking (optional)
Definition at line 856 of file FairMCApplication.cxx.
|
virtual |
Define maximum z for tracking (optional)
Definition at line 863 of file FairMCApplication.cxx.
|
protected |
List of active detector
Definition at line 221 of file FairMCApplication.h.
|
protected |
Debug flag
Definition at line 259 of file FairMCApplication.h.
|
protected |
detector list (Passive and Active)
Definition at line 225 of file FairMCApplication.h.
|
protected |
Map used for dispatcher
Definition at line 227 of file FairMCApplication.h.
|
protected |
dispatcher internal use
Definition at line 263 of file FairMCApplication.h.
|
protected |
dispatcher internal use
Definition at line 261 of file FairMCApplication.h.
|
protected |
Definition at line 286 of file FairMCApplication.h.
|
protected |
Primary generator
Definition at line 247 of file FairMCApplication.h.
|
protected |
List of FairTask
Definition at line 223 of file FairMCApplication.h.
|
protected |
Pointer to the current MC engine //!
Definition at line 295 of file FairMCApplication.h.
|
protected |
Definition at line 288 of file FairMCApplication.h.
|
protected |
MC Engine 1= Geant3, 2 = Geant4
Definition at line 249 of file FairMCApplication.h.
|
protected |
Iterator for Module list
Definition at line 229 of file FairMCApplication.h.
|
protected |
Module list in simulation
Definition at line 231 of file FairMCApplication.h.
|
protected |
dispatcher internal use RadLen
Definition at line 272 of file FairMCApplication.h.
|
protected |
Track position dispatcher internal use RadLeng
Definition at line 270 of file FairMCApplication.h.
|
protected |
Number of sensetive volumes in simulation session
Definition at line 233 of file FairMCApplication.h.
|
protected |
flag for using Pythia as external decayer
Definition at line 235 of file FairMCApplication.h.
|
protected |
Pythia decay config macro
Definition at line 237 of file FairMCApplication.h.
|
protected |
Radiation map Grid Manager
Definition at line 284 of file FairMCApplication.h.
|
protected |
Flag for Radiation length register mode
Definition at line 275 of file FairMCApplication.h.
|
protected |
Radiation length Manager
Definition at line 278 of file FairMCApplication.h.
|
protected |
Flag for Radiation map register mode
Definition at line 280 of file FairMCApplication.h.
|
protected |
Radiation Map Manager
Definition at line 282 of file FairMCApplication.h.
|
protected |
Pointer to thr I/O Manager
Definition at line 241 of file FairMCApplication.h.
|
protected |
Pointer to FairRunSim //!
Definition at line 297 of file FairMCApplication.h.
|
protected |
Flag if the current event should be saved
Definition at line 300 of file FairMCApplication.h.
|
protected |
List of sensetive volumes in all detectors
Definition at line 243 of file FairMCApplication.h.
|
protected |
Simulation Stack
Definition at line 239 of file FairMCApplication.h.
|
protected |
Current state
Definition at line 303 of file FairMCApplication.h.
|
protected |
Flag for accepted tracks for visualization
Definition at line 253 of file FairMCApplication.h.
|
protected |
Track visualization manager
Definition at line 251 of file FairMCApplication.h.
|
protected |
Definition at line 273 of file FairMCApplication.h.
|
protected |
Flag for using user decay
Definition at line 255 of file FairMCApplication.h.
|
protected |
User decay config macro
Definition at line 257 of file FairMCApplication.h.
|
protected |
dispatcher internal use
Definition at line 267 of file FairMCApplication.h.
|
protected |
dispatcher internal use
Definition at line 265 of file FairMCApplication.h.
|
protected |
Magnetic Field Pointer
Definition at line 245 of file FairMCApplication.h.
|
protected |
list of senstive detectors used in the simuation session
Definition at line 290 of file FairMCApplication.h.
|
protected |
list of all detectors used in the simuation session
Definition at line 292 of file FairMCApplication.h.