FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRun Class Referenceabstract

#include <FairRun.h>

Inheritance diagram for FairRun:
FairRunAna FairRunOnline FairRunSim FairRunAnaProof

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 FairFieldGetField ()=0
 
virtual void Run (Int_t NStart=0, Int_t NStop=0)=0
 
void SetEventHeader (FairEventHeader *EvHeader)
 
FairRuntimeDbGetRuntimeDb (void)
 
void SetSink (FairSink *tempSink)
 
FairSinkGetSink ()
 
Int_t GetRunId ()
 
void SetRunId (UInt_t runId)
 
FairEventHeaderGetEventHeader ()
 
Bool_t IsAna ()
 
FairTaskGetTask (const char *taskName)
 
FairTaskGetMainTask ()
 
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 FairRunInstance ()
 

Protected Member Functions

void AlignGeometry () const
 
 ClassDef (FairRun, 5)
 

Protected Attributes

FairRuntimeDbfRtdb
 
FairTaskfTask
 
FairRootManagerfRootManager
 
FairSinkfSink
 
TString fUserOutputFileName
 
TString fOptions
 
UInt_t fRunId
 
Bool_t fAna
 
FairEventHeaderfEvtHeader
 
FairFileHeaderfFileHeader
 
Bool_t fGenerateRunInfo
 
Bool_t fIsMaster
 
Bool_t fMarkFill
 
FairAlignmentHandler fAlignmentHandler
 

Static Protected Attributes

static TMCThreadLocal FairRunfRunInstance = 0
 

Friends

class FairMCApplication
 

Detailed Description

Configure the Simuation or Analysis

Author
M. Al-Turany D. Bertini
Version
0.1
Since
12.01.04

Definition at line 37 of file FairRun.h.

Constructor & Destructor Documentation

FairRun::FairRun ( Bool_t  isMaster = kTRUE)

default ctor

Definition at line 33 of file FairRun.cxx.

FairRun::~FairRun ( )
virtual

default dtor

Definition at line 60 of file FairRun.cxx.

Member Function Documentation

void FairRun::AddAlignmentMatrices ( const std::map< std::string, TGeoHMatrix > &  alignmentMatrices,
bool  invertMatrices = false 
)

Definition at line 183 of file FairRun.cxx.

void FairRun::AddTask ( FairTask t)
virtual

Add a FAIRTask to the simulation or analysis

Definition at line 70 of file FairRun.cxx.

void FairRun::AlignGeometry ( ) const
protected

Definition at line 181 of file FairRun.cxx.

FairRun::ClassDef ( FairRun  ,
 
)
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.

virtual FairField* FairRun::GetField ( )
pure virtual

Implemented in FairRunSim, FairRunAna, and FairRunOnline.

Bool_t FairRun::GetIsMaster ( ) const
inline

Definition at line 143 of file FairRun.h.

FairTask* FairRun::GetMainTask ( )
inline

Get Main Task

Definition at line 118 of file FairRun.h.

Int_t FairRun::GetNTasks ( )
inline

Return the number of Tasks added to this Run

Definition at line 122 of file FairRun.h.

TString FairRun::GetOptions ( )
inline

Definition at line 149 of file FairRun.h.

TFile * FairRun::GetOutputFile ( )

Definition at line 168 of file FairRun.cxx.

Int_t FairRun::GetRunId ( )
inline

return the run ID for the actul run

Definition at line 97 of file FairRun.h.

FairRuntimeDb* FairRun::GetRuntimeDb ( void  )
inline

return a pointer to the RuntimeDB

Definition at line 80 of file FairRun.h.

FairSink* FairRun::GetSink ( )
inline

return a pointer to the sink

Definition at line 93 of file FairRun.h.

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.

virtual void FairRun::Init ( )
pure virtual

Initialize the Simulation or analysis

Implemented in FairRunSim, FairRunAna, FairRunOnline, and FairRunAnaProof.

FairRun * FairRun::Instance ( )
static

static instance

Definition at line 31 of file FairRun.cxx.

Bool_t FairRun::IsAna ( )
inline

return true for Anaylsis session

Definition at line 109 of file FairRun.h.

Bool_t FairRun::IsRunInfoGenerated ( )
inline

Definition at line 137 of file FairRun.h.

void FairRun::MarkFill ( Bool_t  flag)
inline

Definition at line 146 of file FairRun.h.

virtual void FairRun::Run ( Int_t  NStart = 0,
Int_t  NStop = 0 
)
pure virtual

run the analysis or simulation

Implemented in FairRunSim, FairRunAnaProof, FairRunAna, and FairRunOnline.

void FairRun::SetEventHeader ( FairEventHeader EvHeader)
inline

Set the experiment dependent run header for each run

Definition at line 76 of file FairRun.h.

void FairRun::SetGenerateRunInfo ( Bool_t  write)
inline

Definition at line 131 of file FairRun.h.

void FairRun::SetOptions ( const TString &  s)
inline

Definition at line 152 of file FairRun.h.

void FairRun::SetOutputFile ( const char *  fname)
virtual

Set the output file name for analysis or simulation

Definition at line 140 of file FairRun.cxx.

void FairRun::SetOutputFile ( TFile *  f)
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.

void FairRun::SetRunId ( UInt_t  runId)
inline

Set the Run ID

Definition at line 102 of file FairRun.h.

void FairRun::SetSink ( FairSink tempSink)
inline

Set the sink

Definition at line 84 of file FairRun.h.

void FairRun::SetTask ( FairTask t)
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.

void FairRun::StoreTaskNames ( const FairTask t)
virtual

Definition at line 76 of file FairRun.cxx.

Friends And Related Function Documentation

friend class FairMCApplication
friend

Definition at line 39 of file FairRun.h.

Member Data Documentation

FairAlignmentHandler FairRun::fAlignmentHandler
protected

Definition at line 215 of file FairRun.h.

Bool_t FairRun::fAna
protected

true for Anaylsis session

Definition at line 203 of file FairRun.h.

FairEventHeader* FairRun::fEvtHeader
protected

MC Event Header

Definition at line 205 of file FairRun.h.

FairFileHeader* FairRun::fFileHeader
protected

File Header

Definition at line 207 of file FairRun.h.

Bool_t FairRun::fGenerateRunInfo
protected

true if RunInfo file should be written

Definition at line 209 of file FairRun.h.

Bool_t FairRun::fIsMaster
protected

true if on master

Definition at line 211 of file FairRun.h.

Bool_t FairRun::fMarkFill
protected

Definition at line 213 of file FairRun.h.

TString FairRun::fOptions
protected

Options for derived classes, to be set & parsed by user

Definition at line 199 of file FairRun.h.

FairRootManager* FairRun::fRootManager
protected

IO manager

Definition at line 193 of file FairRun.h.

FairRuntimeDb* FairRun::fRtdb
protected

RuntimeDb

Definition at line 189 of file FairRun.h.

UInt_t FairRun::fRunId
protected

Run Id

Definition at line 201 of file FairRun.h.

TMCThreadLocal FairRun * FairRun::fRunInstance = 0
staticprotected

static pointer to this run

Definition at line 187 of file FairRun.h.

FairSink* FairRun::fSink
protected

Output sink

Definition at line 195 of file FairRun.h.

FairTask* FairRun::fTask
protected

Tasks used

Definition at line 191 of file FairRun.h.

TString FairRun::fUserOutputFileName
protected

Output file name set by user

Definition at line 197 of file FairRun.h.


The documentation for this class was generated from the following files: