FairRoot
|
#include <FairRun.h>
Public Member Functions | |
FairRun (Bool_t isMaster=kTRUE) | |
virtual | ~FairRun () |
virtual void | AddTask (FairTask *t) |
virtual void | StoreTaskNames (const FairTask *t) |
virtual void | SetTask (FairTask *t) |
virtual void | Init ()=0 |
virtual FairField * | GetField ()=0 |
virtual void | Run (Int_t NStart=0, Int_t NStop=0)=0 |
void | SetEventHeader (FairEventHeader *EvHeader) |
FairRuntimeDb * | GetRuntimeDb (void) |
void | SetSink (FairSink *tempSink) |
FairSink * | GetSink () |
Int_t | GetRunId () |
void | SetRunId (UInt_t runId) |
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) |
void | SetGenerateRunInfo (Bool_t write) |
Bool_t | GetWriteRunInfoFile () |
Bool_t | IsRunInfoGenerated () |
void | SetUseFairLinks (Bool_t val) |
Bool_t | GetIsMaster () const |
void | MarkFill (Bool_t flag) |
TString | GetOptions () |
void | SetOptions (const TString &s) |
virtual void | SetOutputFile (const char *fname) |
virtual void | SetOutputFile (TFile *f) |
void | SetOutputFileName (const TString &name) |
TFile * | GetOutputFile () |
void | SetUserOutputFileName (const TString &name) |
TString | GetUserOutputFileName () const |
void | AddAlignmentMatrices (const std::map< std::string, TGeoHMatrix > &alignmentMatrices, bool invertMatrices=false) |
Static Public Member Functions | |
static FairRun * | Instance () |
Protected Member Functions | |
void | AlignGeometry () const |
ClassDef (FairRun, 5) | |
Protected Attributes | |
FairRuntimeDb * | fRtdb |
FairTask * | fTask |
FairRootManager * | fRootManager |
FairSink * | fSink |
TString | fUserOutputFileName |
TString | fOptions |
UInt_t | fRunId |
Bool_t | fAna |
FairEventHeader * | fEvtHeader |
FairFileHeader * | fFileHeader |
Bool_t | fGenerateRunInfo |
Bool_t | fIsMaster |
Bool_t | fMarkFill |
FairAlignmentHandler | fAlignmentHandler |
Static Protected Attributes | |
static TMCThreadLocal FairRun * | fRunInstance = 0 |
Friends | |
class | FairMCApplication |
Configure the Simuation or Analysis
FairRun::FairRun | ( | Bool_t | isMaster = kTRUE | ) |
default ctor
Definition at line 33 of file FairRun.cxx.
|
virtual |
default dtor
Definition at line 60 of file FairRun.cxx.
void FairRun::AddAlignmentMatrices | ( | const std::map< std::string, TGeoHMatrix > & | alignmentMatrices, |
bool | invertMatrices = false |
||
) |
Definition at line 183 of file FairRun.cxx.
|
virtual |
Add a FAIRTask to the simulation or analysis
Definition at line 70 of file FairRun.cxx.
|
protected |
Definition at line 181 of file FairRun.cxx.
|
protected |
void FairRun::CreateGeometryFile | ( | const char * | geofile | ) |
Create a new file and save the TGeoManager to it
Definition at line 103 of file FairRun.cxx.
FairEventHeader * FairRun::GetEventHeader | ( | ) |
Get the detector specific run header
Definition at line 112 of file FairRun.cxx.
|
pure virtual |
Implemented in FairRunSim, FairRunAna, and FairRunOnline.
|
inline |
TFile * FairRun::GetOutputFile | ( | ) |
Definition at line 168 of file FairRun.cxx.
|
inline |
|
inline |
|
inline |
FairTask * FairRun::GetTask | ( | const char * | taskName | ) |
Get task by name
Definition at line 105 of file FairRun.cxx.
TString FairRun::GetUserOutputFileName | ( | ) | const |
Definition at line 179 of file FairRun.cxx.
Bool_t FairRun::GetWriteRunInfoFile | ( | ) |
Definition at line 131 of file FairRun.cxx.
|
pure virtual |
Initialize the Simulation or analysis
Implemented in FairRunSim, FairRunAna, FairRunOnline, and FairRunAnaProof.
|
static |
static instance
Definition at line 31 of file FairRun.cxx.
|
inline |
|
pure virtual |
run the analysis or simulation
Implemented in FairRunSim, FairRunAnaProof, FairRunAna, and FairRunOnline.
|
inline |
|
virtual |
Set the output file name for analysis or simulation
Definition at line 140 of file FairRun.cxx.
|
virtual |
Set the output file for analysis or simulation
Definition at line 149 of file FairRun.cxx.
void FairRun::SetOutputFileName | ( | const TString & | name | ) |
Set the output file name without creating the file
Definition at line 159 of file FairRun.cxx.
|
inline |
|
inline |
|
virtual |
Definition at line 91 of file FairRun.cxx.
void FairRun::SetUseFairLinks | ( | Bool_t | val | ) |
Definition at line 120 of file FairRun.cxx.
void FairRun::SetUserOutputFileName | ( | const TString & | name | ) |
New functions which allow to postpone creating a new Sink in MT to be kept after clean-up of deprecated functions above
Definition at line 177 of file FairRun.cxx.
void FairRun::SetWriteRunInfoFile | ( | Bool_t | write | ) |
Definition at line 122 of file FairRun.cxx.
|
virtual |
Definition at line 76 of file FairRun.cxx.
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |