FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRunAna Class Reference

#include <FairRunAna.h>

Inheritance diagram for FairRunAna:
FairRun FairRunAnaProof

Public Member Functions

virtual ~FairRunAna ()
 
 FairRunAna ()
 
void Init ()
 
void Run (Int_t NStart=0, Int_t NStop=0)
 
void Run (Double_t delta_t)
 
void Run (Long64_t entry)
 
void RunEventReco (Int_t NStart, Int_t NStop)
 
void RunTSBuffers ()
 
void DummyRun (Int_t NStart, Int_t NStop)
 
void RunMQ (Long64_t entry)
 
void RunOnLmdFiles (UInt_t NStart=0, UInt_t NStop=0)
 
void RunOnTBData ()
 
void TerminateRun ()
 
virtual void SetSource (FairSource *tempSource)
 
void SetEventHeaderPersistence (Bool_t flag)
 
void Reinit (UInt_t runId)
 
UInt_t getRunId ()
 
FairFieldGetField ()
 
void SetField (FairField *ffield)
 
void SetGeomFile (const char *GeoFileName)
 
TFile * GetGeoFile ()
 
void SetContainerStatic (Bool_t tempBool=kTRUE)
 
Bool_t GetContainerStatic ()
 
void RunWithTimeStamps ()
 
Bool_t IsTimeStamp ()
 
void StopProcessingLMD (void)
 
Bool_t GetLMDProcessingStatus (void)
 
- Public Member Functions inherited from FairRun
 FairRun (Bool_t isMaster=kTRUE)
 
virtual ~FairRun ()
 
virtual void AddTask (FairTask *t)
 
virtual void StoreTaskNames (const FairTask *t)
 
virtual void SetTask (FairTask *t)
 
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 FairRunAnaInstance ()
 
- Static Public Member Functions inherited from FairRun
static FairRunInstance ()
 

Protected Member Functions

virtual void Fill ()
 
 ClassDef (FairRunAna, 6)
 
- Protected Member Functions inherited from FairRun
void AlignGeometry () const
 
 ClassDef (FairRun, 5)
 

Protected Attributes

Bool_t fIsInitialized
 
TFile * fInputGeoFile
 
Bool_t fLoadGeo
 
Bool_t fStatic
 
FairFieldfField
 
Bool_t fTimeStamps
 
Bool_t fInFileIsOpen
 
Double_t fEventTimeMin
 
Double_t fEventTimeMax
 
Double_t fEventTime
 
Double_t fEventMeanTime
 
TF1 * fTimeProb
 
Bool_t fFinishProcessingLMDFile
 
FairFileSourcefFileSource
 
FairMixedSourcefMixedSource
 
Bool_t fStoreEventHeader
 
- Protected Attributes inherited from FairRun
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 FairRunAnafgRinstance = 0
 
- Static Protected Attributes inherited from FairRun
static TMCThreadLocal FairRunfRunInstance = 0
 

Detailed Description

Definition at line 33 of file FairRunAna.h.

Constructor & Destructor Documentation

FairRunAna::~FairRunAna ( )
virtual

Definition at line 91 of file FairRunAna.cxx.

FairRunAna::FairRunAna ( )

Definition at line 63 of file FairRunAna.cxx.

Member Function Documentation

FairRunAna::ClassDef ( FairRunAna  ,
 
)
protected
void FairRunAna::DummyRun ( Int_t  NStart,
Int_t  NStop 
)

the dummy run does not check the evt header or the parameters!!

This methode is just for testing, if you are not sure about what you do, don't use it

Definition at line 587 of file FairRunAna.cxx.

void FairRunAna::Fill ( )
protectedvirtual

Virtual function which calls the Fill function of the IOManager. Allows to override the function with an experiment specific version.

Definition at line 647 of file FairRunAna.cxx.

Bool_t FairRunAna::GetContainerStatic ( )
inline

Definition at line 90 of file FairRunAna.h.

FairField* FairRunAna::GetField ( )
inlinevirtual

Get the magnetic field

Implements FairRun.

Definition at line 78 of file FairRunAna.h.

TFile* FairRunAna::GetGeoFile ( )
inline

Return a pointer to the geometry file

Definition at line 84 of file FairRunAna.h.

Bool_t FairRunAna::GetLMDProcessingStatus ( void  )
inline

Get the status of lmd file proccessing

Definition at line 97 of file FairRunAna.h.

UInt_t FairRunAna::getRunId ( )
inline

Definition at line 76 of file FairRunAna.h.

void FairRunAna::Init ( )
virtual

initialize the run manager

Set the IO Manager to run with time stamps

Implements FairRun.

Reimplemented in FairRunAnaProof.

Definition at line 127 of file FairRunAna.cxx.

FairRunAna * FairRunAna::Instance ( )
static

Definition at line 61 of file FairRunAna.cxx.

Bool_t FairRunAna::IsTimeStamp ( )
inline

Definition at line 92 of file FairRunAna.h.

void FairRunAna::Reinit ( UInt_t  runId)

Definition at line 617 of file FairRunAna.cxx.

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

Run from event number NStart to event number NStop

Implements FairRun.

Reimplemented in FairRunAnaProof.

Definition at line 275 of file FairRunAna.cxx.

void FairRunAna::Run ( Double_t  delta_t)

Run over the whole input file with timpe window delta_t as unit (entry)

Definition at line 457 of file FairRunAna.cxx.

void FairRunAna::Run ( Long64_t  entry)

Run for the given single entry

Definition at line 501 of file FairRunAna.cxx.

void FairRunAna::RunEventReco ( Int_t  NStart,
Int_t  NStop 
)

Run event reconstruction from event number NStart to event number NStop

if we have simulation files then they have MC Event Header and the Run Id is in it, any way it would be better to make FairMCEventHeader a subclass of FairEvtHeader.

Definition at line 380 of file FairRunAna.cxx.

void FairRunAna::RunMQ ( Long64_t  entry)

This methode is only needed and used with ZeroMQ it read a certain event and call the task exec, but no output is written

Parameters
entry: entry number in the tree

This methode is only needed and used with ZeroMQ it read a certain event and call the task exec, but no output is written

Definition at line 478 of file FairRunAna.cxx.

void FairRunAna::RunOnLmdFiles ( UInt_t  NStart = 0,
UInt_t  NStop = 0 
)

Run on a list of lmd files

Same result like break

Definition at line 552 of file FairRunAna.cxx.

void FairRunAna::RunOnTBData ( )

Definition at line 573 of file FairRunAna.cxx.

void FairRunAna::RunTSBuffers ( )

Run over all TSBuffers until the data is processed

Definition at line 524 of file FairRunAna.cxx.

void FairRunAna::RunWithTimeStamps ( )

Definition at line 624 of file FairRunAna.cxx.

void FairRunAna::SetContainerStatic ( Bool_t  tempBool = kTRUE)

Initialization of parameter container is set to static, i.e: the run id is is not checked anymore after initialization

Definition at line 637 of file FairRunAna.cxx.

void FairRunAna::SetEventHeaderPersistence ( Bool_t  flag)
inline

Switch On/Off the storing of FairEventHeader in output file

Definition at line 73 of file FairRunAna.h.

void FairRunAna::SetField ( FairField ffield)
inline

Set the magnetic Field

Definition at line 80 of file FairRunAna.h.

void FairRunAna::SetGeomFile ( const char *  GeoFileName)

Set external geometry file

Definition at line 106 of file FairRunAna.cxx.

virtual void FairRunAna::SetSource ( FairSource tempSource)
inlinevirtual

Set the input signal file

Parameters
name: signal file name
identifier: Unsigned integer which identify the signal file

Reimplemented in FairRunAnaProof.

Definition at line 70 of file FairRunAna.h.

void FairRunAna::StopProcessingLMD ( void  )
inline

Set the flag for proccessing lmd files

Definition at line 95 of file FairRunAna.h.

void FairRunAna::TerminateRun ( )

finish tasks, write output

Definition at line 602 of file FairRunAna.cxx.

Member Data Documentation

Double_t FairRunAna::fEventMeanTime
protected

EventMean time used (P(t)=1/fEventMeanTime*Exp(-t/fEventMeanTime)

Definition at line 130 of file FairRunAna.h.

Double_t FairRunAna::fEventTime
protected

Time of event since th start (ns)

Definition at line 128 of file FairRunAna.h.

Double_t FairRunAna::fEventTimeMax
protected

max time for one Event (ns)

Definition at line 126 of file FairRunAna.h.

Double_t FairRunAna::fEventTimeMin
protected

min time for one event (ns)

Definition at line 124 of file FairRunAna.h.

FairField* FairRunAna::fField
protected

Definition at line 120 of file FairRunAna.h.

FairFileSource* FairRunAna::fFileSource
protected

Temporary member to preserve old functionality without setting source in macro

Definition at line 137 of file FairRunAna.h.

Bool_t FairRunAna::fFinishProcessingLMDFile
protected

Flag for proccessing lmd-files

Definition at line 134 of file FairRunAna.h.

FairRunAna * FairRunAna::fgRinstance = 0
staticprotected

Definition at line 116 of file FairRunAna.h.

Bool_t FairRunAna::fInFileIsOpen
protected

Definition at line 122 of file FairRunAna.h.

TFile* FairRunAna::fInputGeoFile
protected

Definition at line 115 of file FairRunAna.h.

Bool_t FairRunAna::fIsInitialized
protected

This variable became true after Init is called

Definition at line 114 of file FairRunAna.h.

Bool_t FairRunAna::fLoadGeo
protected

Definition at line 117 of file FairRunAna.h.

FairMixedSource* FairRunAna::fMixedSource
protected

Temporary member to preserve old functionality without setting source in macro

Definition at line 139 of file FairRunAna.h.

Bool_t FairRunAna::fStatic
protected

true for static initialisation of parameters

Definition at line 119 of file FairRunAna.h.

Bool_t FairRunAna::fStoreEventHeader
protected

Flag for Event Header Persistency

Definition at line 141 of file FairRunAna.h.

TF1* FairRunAna::fTimeProb
protected

used to generate random numbers for event time;

Definition at line 132 of file FairRunAna.h.

Bool_t FairRunAna::fTimeStamps
protected

Definition at line 121 of file FairRunAna.h.


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