EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
#include <EicRoot/blob/master/base/FairRun.h>
Public Member Functions | |
FairRun () | |
virtual | ~FairRun () |
virtual void | AddTask (FairTask *t) |
virtual void | SetTask (FairTask *t) |
virtual void | Init ()=0 |
virtual void | Run (Int_t NStart=0, Int_t NStop=0)=0 |
virtual void | SetOutputFile (const char *fname) |
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 | RunCoreStart (Int_t NStart=0, Int_t NStop=0) |
virtual void | RunCoreFinish (void) |
virtual bool | RunCoreImportNextEvent (void) |
virtual void | RunCoreProcessNextEvent (void) |
virtual bool | JanaLoopPossible (void) const |
int | GetCurrentEventIndex (void) const |
Static Public Member Functions | |
static FairRun * | Instance () |
static void | JanaPluginMode (bool what) |
static bool | JanaPluginMode (void) |
Protected Attributes | |
FairLogger * | fLogger |
FairRuntimeDb * | fRtdb |
FairTask * | fTask |
const char * | fOutname |
FairRootManager * | fRootManager |
TFile * | fOutFile |
UInt_t | fRunId |
Bool_t | fAna |
FairEventHeader * | fEvHead |
FairFileHeader * | fFileHeader |
Bool_t | fWriteRunInfo |
int | mEvCurrent |
Static Protected Attributes | |
static FairRun * | fRunInstance = 0 |
static bool | mJanaPluginMode = false |
Private Member Functions | |
FairRun (const FairRun &M) | |
FairRun & | operator= (const FairRun &) |
Private Attributes | |
Int_t | fNTasks |
Configure the Simuation or Analysis
Definition at line 20 of file FairRun.h.
View newest version in sPHENIX GitHub at line 20 of file FairRun.h
FairRun::FairRun | ( | ) |
default ctor
Definition at line 25 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 25 of file FairRun.cxx
References fFileHeader, fRootManager, fRunInstance, and FairRootManager::SetFileHeader().
|
virtual |
default dtor
Definition at line 49 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 49 of file FairRun.cxx
References FairLogger::Debug(), fEvHead, fLogger, fRootManager, fRtdb, fTask, and MESSAGE_ORIGIN.
|
private |
|
virtual |
Add a FAIRTask to the simulation or analysis
Definition at line 89 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 89 of file FairRun.cxx
References FairFileHeader::AddTaskClassName(), fFileHeader, fNTasks, and fTask.
Referenced by FairEventManager::AddTask(), EicRunSim::DefineFluxMonitorGrid(), digitization(), EicRecoKalmanTask::EicRecoKalmanTask(), PndGeoHandling::PndGeoHandling(), EicEventGenerator::ReadEvent(), and reconstruction().
void FairRun::CreateGeometryFile | ( | const char * | geofile | ) |
Create a new file and save the TGeoManager to it
Definition at line 103 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 103 of file FairRun.cxx
References FairRootManager::CreateGeometryFile(), and fRootManager.
|
inline |
Definition at line 165 of file FairRun.h.
View newest version in sPHENIX GitHub at line 165 of file FairRun.h
References mEvCurrent.
FairEventHeader * FairRun::GetEventHeader | ( | ) |
Get the detector specific run header
Definition at line 115 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 115 of file FairRun.cxx
References fEvHead.
Referenced by EicRunDigi::GetDetectorHits(), and FairRunAna::Init().
|
inline |
|
inline |
|
inline |
return a pointer to the output file
Definition at line 72 of file FairRun.h.
View newest version in sPHENIX GitHub at line 72 of file FairRun.h
References fOutFile.
Referenced by FluxMonitorGrid::FillOutHistograms(), EicIdealTrackingCode::Finish(), EicCalorimeterReconstruction::Finish(), EicCalorimeterDigiHitProducer::Finish(), EicDetector::FinishRun(), FwdTrackFinder::FinishTask(), EicMagneticField::InitializeFieldMaps(), EicDigiParData::mergeIntoOutputFile(), FairRunSim::Run(), EicRunSim::RunCoreStart(), and FairRunInfo::WriteHistosToFile().
|
inline |
return the run ID for the actul run
Definition at line 78 of file FairRun.h.
View newest version in sPHENIX GitHub at line 78 of file FairRun.h
References fRunId.
Referenced by PndSensorNamePar::AddSensorName(), ClassImp(), PndMagnet::ConstructASCIIGeometry(), CbmRich::ConstructAsciiGeometry(), PndTarget::ConstructGeometry(), EicDetector::ConstructGeometry(), PndConstField::FillParContainer(), PndMultiField::FillParContainer(), PndTransMap::FillParContainer(), FairMCApplication::InitGeometry(), PndMultiFieldPar::SetParameters(), and PndGeoHandling::SetParContainers().
|
inline |
return a pointer to the RuntimeDB
Definition at line 66 of file FairRun.h.
View newest version in sPHENIX GitHub at line 66 of file FairRun.h
References fRtdb.
Referenced by ClassImp(), PndMagnet::ConstructASCIIGeometry(), CbmRich::ConstructAsciiGeometry(), PndTarget::ConstructGeometry(), PndPipe::ConstructGeometry(), EicDetector::ConstructGeometry(), PndConstField::FillParContainer(), PndMultiField::FillParContainer(), PndTransMap::FillParContainer(), PndMcCloner::Init(), FairRunAna::Init(), EicRunAna::Init(), FairRunAna::InitContainers(), CbmRich::Initialize(), FairModule::ProcessNodes(), EicRunSim::RunCoreStart(), CbmRichHitProducer::SetParContainers(), CbmRichTestHits::SetParContainers(), CbmRichTestSim::SetParContainers(), CbmRichProjectionProducer::SetParContainers(), CbmRichGeoTest::SetParContainers(), PndRecoMultiKalmanTask::SetParContainers(), PndRecoKalmanTask::SetParContainers(), PndGeoHandling::SetParContainers(), EicDigiHitProducer::SetParContainers(), PndPidCorrelator::SetParContainers(), PndFieldCreator::SetParm(), FairMCApplication::SetParTask(), and FairMCApplication::StopRun().
FairTask * FairRun::GetTask | ( | const char * | taskName | ) |
*Get task by name
Definition at line 108 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 108 of file FairRun.cxx
References fTask.
|
inline |
Definition at line 115 of file FairRun.h.
View newest version in sPHENIX GitHub at line 115 of file FairRun.h
References fWriteRunInfo.
|
pure virtual |
Initialize the Simulation or analysis
Implemented in EicRunSim, FairRunSim, EicRunAna, and FairRunAna.
|
static |
static instance
Definition at line 20 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 20 of file FairRun.cxx
References fRunInstance.
Referenced by PndSensorNamePar::AddSensorName(), ClassImp(), PndMagnet::ConstructASCIIGeometry(), CbmRich::ConstructAsciiGeometry(), PndTarget::ConstructGeometry(), PndPipe::ConstructGeometry(), EicDetector::ConstructGeometry(), EicGeoParData::EicGeoParData(), FluxMonitorGrid::FillOutHistograms(), PndConstField::FillParContainer(), PndMultiField::FillParContainer(), PndTransMap::FillParContainer(), EicJEventProcessor::Finish(), EicIdealTrackingCode::Finish(), EicCalorimeterReconstruction::Finish(), EicCalorimeterDigiHitProducer::Finish(), EicDetector::FinishRun(), FwdTrackFinder::FinishTask(), EicJEventSource::GetEvent(), PndMcCloner::Init(), CbmRich::Initialize(), EicMagneticField::InitializeFieldMaps(), InitPlugin(), FairMCApplication::InitTasks(), EicDigiParData::mergeIntoOutputFile(), FairRootManager::OpenOutFile(), PndGeoHandling::PndGeoHandling(), FairModule::ProcessNodes(), PndMultiFieldPar::SetParameters(), PndGeoHandling::SetParContainers(), PndPidCorrelator::SetParContainers(), PndFieldCreator::SetParm(), FairMCApplication::SetParTask(), and FairRunInfo::WriteHistosToFile().
|
inline |
|
inlinevirtual |
|
inlinestatic |
Definition at line 117 of file FairRun.h.
View newest version in sPHENIX GitHub at line 117 of file FairRun.h
References mJanaPluginMode.
|
inlinestatic |
Definition at line 118 of file FairRun.h.
View newest version in sPHENIX GitHub at line 118 of file FairRun.h
References mJanaPluginMode.
Referenced by InitPlugin().
|
pure virtual |
run the analysis or simulation
Implemented in EicRunSim, FairRunSim, EicRunAna, and FairRunAna.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
virtual |
Set the output file name for analysis or simulation
Reimplemented in EicRunSim.
Definition at line 70 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 70 of file FairRun.cxx
References fOutFile, fOutname, fRootManager, and FairRootManager::OpenOutFile().
Referenced by digitization(), EicEventManager::EicEventManager(), EicRunSim::Init(), and reconstruction().
void FairRun::SetOutputFile | ( | TFile * | f | ) |
Set the output file for analysis or simulation
Definition at line 79 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 79 of file FairRun.cxx
References fOutFile, fOutname, fRootManager, and FairRootManager::OpenOutFile().
|
virtual |
Definition at line 96 of file FairRun.cxx.
View newest version in sPHENIX GitHub at line 96 of file FairRun.cxx
References FairFileHeader::AddTaskClassName(), fFileHeader, fTask, and t.
|
inline |
Definition at line 112 of file FairRun.h.
View newest version in sPHENIX GitHub at line 112 of file FairRun.h
References fWriteRunInfo, and tree::write().
|
protected |
|
protected |
MC Event Header
Definition at line 148 of file FairRun.h.
View newest version in sPHENIX GitHub at line 148 of file FairRun.h
Referenced by GetEventHeader(), SetEventHeader(), and ~FairRun().
|
protected |
File Header
Definition at line 150 of file FairRun.h.
View newest version in sPHENIX GitHub at line 150 of file FairRun.h
Referenced by AddTask(), FairRun(), FairRunAna::Init(), FairRunSim::Init(), and SetTask().
|
protected |
Fair Logger
Definition at line 130 of file FairRun.h.
View newest version in sPHENIX GitHub at line 130 of file FairRun.h
Referenced by FairRunAna::AddBackgroundFile(), FairRunAna::AddFriend(), FairRunAna::AddSignalFile(), FairRunSim::CheckFlukaExec(), EicRunDigi::ImportRealHits(), FairRunAna::Init(), FairRunSim::Init(), FairRunAna::RunMixed(), FairRunAna::RunOnLmdFiles(), FairRunAna::RunWithTimeStamps(), FairRunAna::SetBackgroundFile(), FairRunAna::SetContainerStatic(), FairRunAna::SetGeomFile(), FairRunSim::SetGeoModel(), FairRunSim::SetMaterials(), FairRunSim::SetMCConfig(), FairRunAna::SetSignalFile(), ~FairRun(), and FairRunSim::~FairRunSim().
|
private |
|
protected |
Output file
Definition at line 142 of file FairRun.h.
View newest version in sPHENIX GitHub at line 142 of file FairRun.h
Referenced by GetOutputFile(), FairRunAna::Init(), and SetOutputFile().
|
protected |
Output file name
Definition at line 138 of file FairRun.h.
View newest version in sPHENIX GitHub at line 138 of file FairRun.h
Referenced by SetOutputFile().
|
protected |
IO manager
Definition at line 140 of file FairRun.h.
View newest version in sPHENIX GitHub at line 140 of file FairRun.h
Referenced by FairRunAna::AddBackgroundFile(), FairRunAna::AddFile(), FairRunAna::AddFriend(), FairRunAna::AddSignalFile(), FairRunAna::BGWindowWidthNo(), FairRunAna::BGWindowWidthTime(), FairRunAna::CompressData(), CreateGeometryFile(), FairRunAna::DummyRun(), FairRun(), FairRunAna::Init(), FairRunSim::Init(), FairRunAna::InitContainers(), FairRunAna::Run(), EicRunAna::RunCoreFinish(), EicRunAna::RunCoreImportNextEvent(), EicRunAna::RunCoreProcessNextEvent(), EicRunAna::RunCoreStart(), FairRunAna::RunMixed(), FairRunAna::RunOneEvent(), FairRunAna::RunOnLmdFiles(), FairRunAna::RunOnProof(), FairRunAna::RunTSBuffers(), FairRunAna::RunWithTimeStamps(), FairRunAna::SetBackgroundFile(), FairRunAna::SetEventMeanTime(), FairRunAna::SetEventTimeInterval(), FairRunAna::SetInputFile(), FairRunAna::SetInTree(), SetOutputFile(), FairRunAna::SetSignalFile(), FairRunAna::TerminateRun(), and ~FairRun().
|
protected |
RuntimeDb
Definition at line 134 of file FairRun.h.
View newest version in sPHENIX GitHub at line 134 of file FairRun.h
Referenced by GetRuntimeDb(), FairRunAna::Init(), FairRunSim::Init(), FairRunAna::InitContainers(), FairRunAna::Reinit(), FairRunAna::RunOnProof(), and ~FairRun().
|
protected |
Run Id
Definition at line 144 of file FairRun.h.
View newest version in sPHENIX GitHub at line 144 of file FairRun.h
Referenced by GetRunId(), FairRunAna::getRunId(), FairRunAna::Init(), FairRunSim::Init(), FairRunAna::InitContainers(), FairRunAna::Run(), EicRunAna::RunCoreProcessNextEvent(), and FairRunAna::RunOneEvent().
|
staticprotected |
|
protected |
Tasks used
Definition at line 136 of file FairRun.h.
View newest version in sPHENIX GitHub at line 136 of file FairRun.h
Referenced by AddTask(), FairRunAna::DummyRun(), GetMainTask(), GetTask(), FairRunAna::Init(), FairRunSim::Init(), FairRunAna::InitContainers(), FairRunAna::Run(), EicRunAna::RunCoreFinish(), EicRunAna::RunCoreProcessNextEvent(), FairRunAna::RunMixed(), FairRunAna::RunOneEvent(), FairRunAna::RunOnLmdFiles(), FairRunAna::RunOnProof(), FairRunAna::RunTSBuffers(), SetTask(), FairRunAna::TerminateRun(), and ~FairRun().
|
protected |
true if RunInfo file should be written
Definition at line 152 of file FairRun.h.
View newest version in sPHENIX GitHub at line 152 of file FairRun.h
Referenced by GetWriteRunInfoFile(), FairRunAna::Run(), EicRunAna::RunCoreFinish(), and SetWriteRunInfoFile().
|
protected |
Definition at line 155 of file FairRun.h.
View newest version in sPHENIX GitHub at line 155 of file FairRun.h
Referenced by GetCurrentEventIndex(), EicRunAna::RunCoreImportNextEvent(), and EicRunAna::RunCoreStart().
|
staticprotected |
Definition at line 154 of file FairRun.h.
View newest version in sPHENIX GitHub at line 154 of file FairRun.h
Referenced by JanaPluginMode(), and EicRunAna::Run().