EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/eic/base/EicRunSim.h>
Public Types | |
enum | InitializationState { stUndefined, stFailed, stSucceeded } |
Public Member Functions | |
EicRunSim (const char *engine=0) | |
~EicRunSim () | |
EicDetector * | GetModule (const char *detName) const |
void | SuppressSecondaries () |
bool | SuppressSecondariesFlag () const |
void | IgnoreBlackHoleVolumes () |
bool | IgnoreBlackHoleVolumesFlag () const |
int | DefineFluxMonitorGrid (double rMax, unsigned rDim, double zMin, double zMax, unsigned zDim) |
int | AddFluxMonitorParticleType (int pdg, double eMin=0.0, double eMax=0.0) |
FluxMonitorGrid * | GetFluxMonitorGrid () |
void | SetMaterials (const char *mediaFileName) |
void | SetOutputFile (const char *outputFileName) |
void | AddModule (FairModule *module) |
void | SetCaveFileName (const char *caveFileName) |
void | Init () |
void | Run (Int_t NEvents=0, Int_t NotUsed=0) |
void | RunCoreStart (Int_t NEvents=0, Int_t NotUsed=0) |
bool | JanaLoopPossible (void) const |
void | SetSeed (unsigned seed) |
void | SuppressTimerInfo () |
void | SuppressHitProduction () |
bool | SuppressHitProductionFlag () const |
void | SuppressFairRootSteppingCall () |
bool | SuppressFairRootSteppingCallFlag () const |
void | AddGenerator (FairGenerator *generator) |
void | AddField (FairField *field) |
Public Member Functions inherited from FairRunSim | |
FairRunSim () | |
virtual | ~FairRunSim () |
void | AddNewIon (FairIon *ion) |
void | AddNewParticle (FairParticle *Particle) |
TObjArray * | GetUserDefIons () |
TObjArray * | GetUserDefParticles () |
void | SetField (FairField *field) |
void | SetGenerator (FairPrimaryGenerator *Gen) |
void | SetMCEventHeader (FairMCEventHeader *McHeader) |
void | SetStoreTraj (Bool_t storeTraj=kTRUE) |
void | SetTrackingDebugMode (Bool_t set) |
void | SetGeoModel (char *name) |
TString * | GetGeoModel () |
FairField * | GetField () |
FairMCEventHeader * | GetMCEventHeader () |
TObjArray * | GetListOfModules () |
FairPrimaryGenerator * | GetPrimaryGenerator () |
void | SetPythiaDecayer (Bool_t decayer) |
void | SetPythiaDecayer (const TString &Config) |
void | SetUserDecay (const TString &Config) |
void | SetUserDecay (Bool_t decay) |
Bool_t | IsExtDecayer () |
Bool_t | IsUserDecay () |
void | SetRadLenRegister (Bool_t value) |
void | SetRadMapRegister (Bool_t value) |
void | SetRadGridRegister (Bool_t value) |
void | AddMesh (FairMesh *Mesh) |
void | SetUserConfig (const TString &Config) |
void | SetUserCuts (const TString &Cuts) |
void | SetBeamMom (Double_t BeamMom) |
Double_t | GetBeamMom () |
Bool_t | UseBeamMom () |
void | SetFieldContainer () |
Public Member Functions inherited from FairRun | |
FairRun () | |
virtual | ~FairRun () |
virtual void | AddTask (FairTask *t) |
virtual void | SetTask (FairTask *t) |
void | SetOutputFile (TFile *f) |
void | SetEventHeader (FairEventHeader *EvHeader) |
FairRuntimeDb * | GetRuntimeDb (void) |
TFile * | GetOutputFile () |
Int_t | GetRunId () |
FairEventHeader * | GetEventHeader () |
Bool_t | IsAna () |
FairTask * | GetTask (const char *taskName) |
FairTask * | GetMainTask () |
Int_t | GetNTasks () |
void | CreateGeometryFile (const char *geofile) |
void | SetWriteRunInfoFile (Bool_t write) |
Bool_t | GetWriteRunInfoFile () |
virtual void | RunCoreFinish (void) |
virtual bool | RunCoreImportNextEvent (void) |
virtual void | RunCoreProcessNextEvent (void) |
int | GetCurrentEventIndex (void) const |
Static Public Member Functions | |
static EicRunSim * | Instance () |
Static Public Member Functions inherited from FairRunSim | |
static FairRunSim * | Instance () |
Static Public Member Functions inherited from FairRun | |
static FairRun * | Instance () |
static void | JanaPluginMode (bool what) |
static bool | JanaPluginMode (void) |
Private Attributes | |
InitializationState | mInitState |
singelton instance | |
TString | mOutputFileName |
TString | mMediaFileName |
TString | mCaveFileName |
UInt_t | mSeed |
Bool_t | mCaveDefinedFlag |
Bool_t | mSuppressSecondariesFlag |
Bool_t | mTimerFlag |
FluxMonitorGrid * | mFluxMonitorGrid |
Bool_t | mIgnoreBlackHoleVolumes |
Bool_t | mSuppressHitProductionFlag |
Bool_t | mSuppressFairRootSteppingCallFlag |
PndMultiField * | mField |
Static Private Attributes | |
static EicRunSim * | mInstance = 0 |
Additional Inherited Members | |
Protected Attributes inherited from FairRunSim | |
Int_t | count |
FairMCApplication * | fApp |
/** Internal counter*/ | |
Double_t | fBeamMom |
/** Main VMC application */ | |
Bool_t | fUseBeamMom |
/** Beam Energy in GeV/c */ | |
FairPrimaryGenerator * | fGen |
/** flag for use Beam Energy */ | |
FairMCEventHeader * | fMCEvHead |
/** Primary Event Generator */ | |
FairField * | fField |
/** Singelton Instance */ | |
const char * | fMapName |
TObjArray * | fIons |
/** Input file name map*/ | |
TObjArray * | fParticles |
/** Array of user defined ions */ | |
TObjArray * | ListOfModules |
/** Array of user defined particles*/ | |
TString | MatFname |
/** Array of used modules */ | |
Bool_t | fStoreTraj |
/** Material file name */ | |
TString * | fLoaderName |
/** Trajectory store flags */ | |
Bool_t | fPythiaDecayer |
/** Geometry Model (TGeo or G3)*/ | |
TString | fPythiaDecayerConfig |
/** flag for using Pythia decayer*/ | |
Bool_t | fUserDecay |
/** Macro for Pythia decay configuration*/ | |
TString | fUserDecayConfig |
Bool_t | fRadLength |
/** Macro for decay configuration*/ | |
Bool_t | fRadMap |
/** flag for registring radiation length*/ | |
Bool_t | fRadGrid |
/** flag for RadiationMapManager | |
TObjArray * | fMeshList |
TString | fUserConfig |
/** radiation grid scoring | |
TString | fUserCuts |
/** Macro for geant configuration*/ | |
Static Protected Attributes inherited from FairRunSim | |
static FairRunSim * | fginstance = 0 |
/** MC Event Header */ | |
Definition at line 119 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 119 of file EicRunSim.h
Definition at line 125 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 125 of file EicRunSim.h
EicRunSim::EicRunSim | ( | const char * | engine = 0 | ) |
Definition at line 30 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 30 of file EicRunSim.cxx
References mInstance.
|
inline |
Definition at line 123 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 123 of file EicRunSim.h
void EicRunSim::AddField | ( | FairField * | field | ) |
Definition at line 104 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 104 of file EicRunSim.cxx
References PndMultiField::AddField(), FairRunSim::GetField(), mField, and FairRunSim::SetField().
Referenced by simulation().
int EicRunSim::AddFluxMonitorParticleType | ( | int | pdg, |
double | eMin = 0.0 , |
||
double | eMax = 0.0 |
||
) |
Definition at line 262 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 262 of file EicRunSim.cxx
References FluxMonitorGrid::AddFluxMonitorParticleType(), and mFluxMonitorGrid.
void EicRunSim::AddGenerator | ( | FairGenerator * | generator | ) |
Definition at line 92 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 92 of file EicRunSim.cxx
References FairPrimaryGenerator::AddGenerator(), FairRunSim::GetPrimaryGenerator(), and FairRunSim::SetGenerator().
Referenced by simulation().
|
virtual |
Add a module to the simulation (e.g. PIPE, Magnet, ..etc)
Reimplemented from FairRunSim.
Definition at line 76 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 76 of file EicRunSim.cxx
References FairRunSim::AddModule(), mCaveDefinedFlag, mCaveFileName, and FairModule::SetGeometryFileName().
Referenced by simulation().
int EicRunSim::DefineFluxMonitorGrid | ( | double | rMax, |
unsigned | rDim, | ||
double | zMin, | ||
double | zMax, | ||
unsigned | zDim | ||
) |
Definition at line 243 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 243 of file EicRunSim.cxx
References FairRun::AddTask(), and mFluxMonitorGrid.
|
inline |
Definition at line 160 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 160 of file EicRunSim.h
References mFluxMonitorGrid.
Referenced by EicFluxMonitorTask::FinishTask(), and EicMCApplication::Stepping().
|
inline |
Definition at line 131 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 131 of file EicRunSim.h
References FairRunSim::ListOfModules.
|
inline |
Definition at line 155 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 155 of file EicRunSim.h
References mIgnoreBlackHoleVolumes.
|
inline |
Definition at line 156 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 156 of file EicRunSim.h
References mIgnoreBlackHoleVolumes.
Referenced by EicMCApplication::Stepping().
|
virtual |
Initialize the Simulation
Initialize the simulation session
Add Tasks to simulation if any
Set the configuration for MC engine
Reimplemented from FairRunSim.
Definition at line 116 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 116 of file EicRunSim.cxx
References FairRunSim::fApp, FairRunSim::Init(), FairRunSim::ListOfModules, FairRunSim::MatFname, mInitState, mMediaFileName, mOutputFileName, mSeed, printf(), FairRunSim::SetMaterials(), FairRun::SetOutputFile(), FairRunSim::SetStoreTraj(), stFailed, and stSucceeded.
Referenced by RunCoreStart(), and simulation().
|
inlinestatic |
Definition at line 128 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 128 of file EicRunSim.h
References mInstance.
Referenced by EicFluxMonitorTask::FinishTask(), EicDetector::ProcessHits(), and EicMCApplication::Stepping().
|
inlinevirtual |
Reimplemented from FairRun.
Definition at line 174 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 174 of file EicRunSim.h
|
virtual |
run the simulation
Reimplemented from FairRunSim.
Definition at line 148 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 148 of file EicRunSim.cxx
References exit(), and RunCoreStart().
Referenced by simulation().
|
virtual |
Reimplemented from FairRun.
Definition at line 159 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 159 of file EicRunSim.cxx
References _GPHYSI_DAT_, FairRuntimeDb::closeOutput(), FairRun::GetOutputFile(), FairRun::GetRuntimeDb(), Init(), FairTrajFilter::Instance(), mInitState, mOutputFileName, mSuppressSecondariesFlag, mTimerFlag, FairParRootFileIo::open(), printf(), FairRunSim::Run(), FairRuntimeDb::setOutput(), FairTrajFilter::SetStorePrimaries(), FairTrajFilter::SetStoreSecondaries(), stFailed, and stUndefined.
Referenced by Run().
void EicRunSim::SetCaveFileName | ( | const char * | caveFileName | ) |
Definition at line 69 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 69 of file EicRunSim.cxx
References mCaveFileName.
Referenced by simulation().
|
virtual |
Set the material file name to be used
Reimplemented from FairRunSim.
Definition at line 55 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 55 of file EicRunSim.cxx
References mMediaFileName.
|
virtual |
Set the output file name for analysis or simulation
Reimplemented from FairRun.
Definition at line 62 of file EicRunSim.cxx.
View newest version in sPHENIX GitHub at line 62 of file EicRunSim.cxx
References mOutputFileName.
Referenced by simulation().
|
inline |
Definition at line 176 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 176 of file EicRunSim.h
References mSeed.
Referenced by simulation().
|
inline |
Definition at line 182 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 182 of file EicRunSim.h
References mSuppressFairRootSteppingCallFlag.
|
inline |
Definition at line 183 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 183 of file EicRunSim.h
References mSuppressFairRootSteppingCallFlag.
Referenced by EicMCApplication::Stepping().
|
inline |
Definition at line 179 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 179 of file EicRunSim.h
References mSuppressHitProductionFlag.
|
inline |
Definition at line 180 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 180 of file EicRunSim.h
References mSuppressHitProductionFlag.
Referenced by EicDetector::ProcessHits().
|
inline |
Definition at line 152 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 152 of file EicRunSim.h
References mSuppressSecondariesFlag.
Referenced by simulation().
|
inline |
Definition at line 153 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 153 of file EicRunSim.h
References mSuppressSecondariesFlag.
Referenced by EicMCApplication::Stepping().
|
inline |
Definition at line 177 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 177 of file EicRunSim.h
References mTimerFlag.
|
private |
Definition at line 212 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 212 of file EicRunSim.h
Referenced by AddModule().
|
private |
Definition at line 207 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 207 of file EicRunSim.h
Referenced by AddModule(), and SetCaveFileName().
|
private |
Definition at line 226 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 226 of file EicRunSim.h
Referenced by AddField().
|
private |
Definition at line 218 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 218 of file EicRunSim.h
Referenced by AddFluxMonitorParticleType(), DefineFluxMonitorGrid(), and GetFluxMonitorGrid().
|
private |
Definition at line 220 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 220 of file EicRunSim.h
Referenced by IgnoreBlackHoleVolumes(), and IgnoreBlackHoleVolumesFlag().
|
private |
singelton instance
Definition at line 200 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 200 of file EicRunSim.h
Referenced by Init(), and RunCoreStart().
|
staticprivate |
Definition at line 197 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 197 of file EicRunSim.h
Referenced by EicRunSim(), and Instance().
|
private |
Definition at line 206 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 206 of file EicRunSim.h
Referenced by Init(), and SetMaterials().
|
private |
Definition at line 204 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 204 of file EicRunSim.h
Referenced by Init(), RunCoreStart(), and SetOutputFile().
|
private |
Definition at line 209 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 209 of file EicRunSim.h
|
private |
Definition at line 223 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 223 of file EicRunSim.h
Referenced by SuppressFairRootSteppingCall(), and SuppressFairRootSteppingCallFlag().
|
private |
Definition at line 222 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 222 of file EicRunSim.h
Referenced by SuppressHitProduction(), and SuppressHitProductionFlag().
|
private |
Definition at line 213 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 213 of file EicRunSim.h
Referenced by RunCoreStart(), SuppressSecondaries(), and SuppressSecondariesFlag().
|
private |
Definition at line 214 of file EicRunSim.h.
View newest version in sPHENIX GitHub at line 214 of file EicRunSim.h
Referenced by RunCoreStart(), and SuppressTimerInfo().