FairRoot
|
#include <FairRunOnline.h>
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 () |
FairField * | GetField () |
void | SetField (FairField *ffield) |
void | SetAutoFinish (Bool_t val) |
void | SetSource (FairSource *source) |
FairSource * | GetSource () |
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) |
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 FairRunOnline * | Instance () |
Static Public Member Functions inherited from FairRun | |
static FairRun * | Instance () |
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 |
FairField * | fField |
Int_t | fNevents |
THttpServer * | fServer |
Int_t | fServerRefreshRate |
Protected Attributes inherited from FairRun | |
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 FairRunOnline * | fgRinstance = 0 |
Static Protected Attributes inherited from FairRun | |
static TMCThreadLocal FairRun * | fRunInstance = 0 |
Definition at line 29 of file FairRunOnline.h.
|
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.
void FairRunOnline::ActivateHttpServer | ( | Int_t | refreshRate = 10000 , |
Int_t | httpPort = 8080 |
||
) |
Activate http server on defined host port. To be called before Init.
refreshRate | an interval in number of events for server update. |
httpPort | the 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.
|
protected |
|
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.
|
inline |
Definition at line 65 of file FairRunOnline.h.
|
inlinevirtual |
|
inline |
Get direct access to the http server.
Definition at line 83 of file FairRunOnline.h.
|
inline |
Definition at line 43 of file FairRunOnline.h.
|
inline |
Return pointer to source
Definition at line 56 of file FairRunOnline.h.
|
virtual |
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.
|
static |
Definition at line 46 of file FairRunOnline.cxx.
void FairRunOnline::RegisterHttpCommand | ( | TString | name, |
TString | command | ||
) |
Register a command on the http server.
name | a command name starting with / |
command | a 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.
|
virtual |
Run for the given number of events
Implements FairRun.
Definition at line 271 of file FairRunOnline.cxx.
|
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.
|
inline |
Set the magnetic Field
Definition at line 47 of file FairRunOnline.h.
|
inline |
Set the source which should be used
Definition at line 54 of file FairRunOnline.h.
|
protected |
Definition at line 103 of file FairRunOnline.h.
|
staticprotected |
Definition at line 100 of file FairRunOnline.h.
|
protected |
This variable became true after Init is called
Definition at line 99 of file FairRunOnline.h.
|
protected |
Definition at line 105 of file FairRunOnline.h.
|
protected |
Definition at line 106 of file FairRunOnline.h.
|
protected |
Definition at line 107 of file FairRunOnline.h.
|
protected |
true for static initialisation of parameters
Definition at line 102 of file FairRunOnline.h.