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

#include <FairRunOnline.h>

Inheritance diagram for FairRunOnline:
FairRun

Public Member Functions

virtual ~FairRunOnline ()
 
 FairRunOnline ()
 
 FairRunOnline (FairSource *source)
 
void Init ()
 
void Run (Int_t Ev_start, Int_t Ev_end)
 
void Reinit (UInt_t runId)
 
UInt_t getRunId ()
 
FairFieldGetField ()
 
void SetField (FairField *ffield)
 
void SetAutoFinish (Bool_t val)
 
void SetSource (FairSource *source)
 
FairSourceGetSource ()
 
void InitContainers ()
 
void SetContainerStatic (Bool_t tempBool=kTRUE)
 
Bool_t GetContainerStatic ()
 
void AddObject (TObject *object)
 
void ActivateHttpServer (Int_t refreshRate=10000, Int_t httpPort=8080)
 
void RegisterHttpCommand (TString name, TString command)
 
THttpServer * GetHttpServer ()
 
void Finish ()
 
- 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 FairRunOnlineInstance ()
 
- Static Public Member Functions inherited from FairRun
static FairRunInstance ()
 

Protected Member Functions

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

Protected Attributes

Bool_t fIsInitialized
 
Bool_t fStatic
 
FairFieldfField
 
Int_t fNevents
 
THttpServer * fServer
 
Int_t fServerRefreshRate
 
- 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 FairRunOnlinefgRinstance = 0
 
- Static Protected Attributes inherited from FairRun
static TMCThreadLocal FairRunfRunInstance = 0
 

Detailed Description

Definition at line 29 of file FairRunOnline.h.

Constructor & Destructor Documentation

FairRunOnline::~FairRunOnline ( )
virtual

Definition at line 79 of file FairRunOnline.cxx.

FairRunOnline::FairRunOnline ( )

Definition at line 48 of file FairRunOnline.cxx.

FairRunOnline::FairRunOnline ( FairSource source)

Definition at line 63 of file FairRunOnline.cxx.

Member Function Documentation

void FairRunOnline::ActivateHttpServer ( Int_t  refreshRate = 10000,
Int_t  httpPort = 8080 
)

Activate http server on defined host port. To be called before Init.

Parameters
refreshRatean interval in number of events for server update.
httpPortthe port which is used by the http server

Definition at line 352 of file FairRunOnline.cxx.

void FairRunOnline::AddObject ( TObject *  object)

Add histogram to be displayed using THttpServer.

Definition at line 384 of file FairRunOnline.cxx.

FairRunOnline::ClassDef ( FairRunOnline  ,
 
)
protected
void FairRunOnline::Fill ( )
protectedvirtual

Definition at line 403 of file FairRunOnline.cxx.

void FairRunOnline::Finish ( )

Write last data to file, close input and output

Definition at line 342 of file FairRunOnline.cxx.

Bool_t FairRunOnline::GetContainerStatic ( )
inline

Definition at line 65 of file FairRunOnline.h.

FairField* FairRunOnline::GetField ( )
inlinevirtual

Get the magnetic field

Implements FairRun.

Definition at line 45 of file FairRunOnline.h.

THttpServer* FairRunOnline::GetHttpServer ( )
inline

Get direct access to the http server.

Definition at line 83 of file FairRunOnline.h.

UInt_t FairRunOnline::getRunId ( )
inline

Definition at line 43 of file FairRunOnline.h.

FairSource* FairRunOnline::GetSource ( )
inline

Return pointer to source

Definition at line 56 of file FairRunOnline.h.

void FairRunOnline::Init ( )
virtual

initialize the run manager

Implements FairRun.

Definition at line 97 of file FairRunOnline.cxx.

void FairRunOnline::InitContainers ( )

Initialization of parameter container is set to static, i.e: the run id is is not checked anymore after initializationInit containers executed on PROOF, which is part of Init when running locally

Definition at line 199 of file FairRunOnline.cxx.

FairRunOnline * FairRunOnline::Instance ( )
static

Definition at line 46 of file FairRunOnline.cxx.

void FairRunOnline::RegisterHttpCommand ( TString  name,
TString  command 
)

Register a command on the http server.

Parameters
namea command name starting with /
commanda call to method "/object_name/->Method()"

Definition at line 360 of file FairRunOnline.cxx.

void FairRunOnline::Reinit ( UInt_t  runId)

Definition at line 368 of file FairRunOnline.cxx.

void FairRunOnline::Run ( Int_t  Ev_start,
Int_t  Ev_end 
)
virtual

Run for the given number of events

Implements FairRun.

Definition at line 271 of file FairRunOnline.cxx.

void FairRunOnline::SetAutoFinish ( Bool_t  val)
inline

Set if the run should be closed automatically after executing the run functuion

Definition at line 52 of file FairRunOnline.h.

void FairRunOnline::SetContainerStatic ( Bool_t  tempBool = kTRUE)

Definition at line 374 of file FairRunOnline.cxx.

void FairRunOnline::SetField ( FairField ffield)
inline

Set the magnetic Field

Definition at line 47 of file FairRunOnline.h.

void FairRunOnline::SetSource ( FairSource source)
inline

Set the source which should be used

Definition at line 54 of file FairRunOnline.h.

Member Data Documentation

FairField* FairRunOnline::fField
protected

Definition at line 103 of file FairRunOnline.h.

FairRunOnline * FairRunOnline::fgRinstance = 0
staticprotected

Definition at line 100 of file FairRunOnline.h.

Bool_t FairRunOnline::fIsInitialized
protected

This variable became true after Init is called

Definition at line 99 of file FairRunOnline.h.

Int_t FairRunOnline::fNevents
protected

Definition at line 105 of file FairRunOnline.h.

THttpServer* FairRunOnline::fServer
protected

Definition at line 106 of file FairRunOnline.h.

Int_t FairRunOnline::fServerRefreshRate
protected

Definition at line 107 of file FairRunOnline.h.

Bool_t FairRunOnline::fStatic
protected

true for static initialisation of parameters

Definition at line 102 of file FairRunOnline.h.


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