FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRunAna.h
Go to the documentation of this file.
1 /********************************************************************************
2  * Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef FAIRRUNANA_H
9 #define FAIRRUNANA_H
10 
18 #include "FairRootManager.h" // for FairRootManager
19 #include "FairRun.h" // for FairRun
20 #include "FairRunInfo.h" // for FairRunInfo
21 
22 #include <Rtypes.h> // for Bool_t, Double_t, UInt_t, etc
23 #include <TString.h> // for TString
24 
25 class FairField;
26 class TF1;
27 class TFile;
28 
29 class FairSource;
30 class FairFileSource;
31 class FairMixedSource;
32 
33 class FairRunAna : public FairRun
34 {
35 
36  public:
37  static FairRunAna* Instance();
38  virtual ~FairRunAna();
39  FairRunAna();
41  void Init();
43  void Run(Int_t NStart = 0, Int_t NStop = 0);
45  void Run(Double_t delta_t);
47  void Run(Long64_t entry);
49  void RunEventReco(Int_t NStart, Int_t NStop);
51  void RunTSBuffers();
53  void DummyRun(Int_t NStart, Int_t NStop);
58  void RunMQ(Long64_t entry);
60  void RunOnLmdFiles(UInt_t NStart = 0, UInt_t NStop = 0);
61 
62  void RunOnTBData();
64  void TerminateRun();
70  virtual void SetSource(FairSource* tempSource) { fRootManager->SetSource(tempSource); }
71 
73  void SetEventHeaderPersistence(Bool_t flag) { fStoreEventHeader = flag; }
74 
75  void Reinit(UInt_t runId);
76  UInt_t getRunId() { return fRunId; }
78  FairField* GetField() { return fField; }
80  void SetField(FairField* ffield) { fField = ffield; }
82  void SetGeomFile(const char* GeoFileName);
84  TFile* GetGeoFile() { return fInputGeoFile; }
89  void SetContainerStatic(Bool_t tempBool = kTRUE);
90  Bool_t GetContainerStatic() { return fStatic; };
91  void RunWithTimeStamps();
92  Bool_t IsTimeStamp() { return fTimeStamps; }
93 
98 
99  protected:
104  virtual void Fill();
105 
106  private:
107  FairRunAna(const FairRunAna& M);
108  FairRunAna& operator=(const FairRunAna&) { return *this; }
109 
110  FairRunInfo fRunInfo;
111 
112  protected:
117  Bool_t fLoadGeo;
119  Bool_t fStatic;
121  Bool_t fTimeStamps;
122  Bool_t fInFileIsOpen;
123 
124  Double_t fEventTimeMin;
125 
126  Double_t fEventTimeMax;
127 
128  Double_t fEventTime;
129 
130  Double_t fEventMeanTime;
131 
132  TF1* fTimeProb;
133 
135 
138 
140 
142 
143  ClassDef(FairRunAna, 6);
144 };
145 
146 #endif // FAIRRUNANA_H
void TerminateRun()
Definition: FairRunAna.cxx:602
Bool_t fTimeStamps
Definition: FairRunAna.h:121
void Init()
Definition: FairRunAna.cxx:127
FairMixedSource * fMixedSource
Definition: FairRunAna.h:139
void Reinit(UInt_t runId)
Definition: FairRunAna.cxx:617
Double_t fEventTime
Definition: FairRunAna.h:128
UInt_t getRunId()
Definition: FairRunAna.h:76
ClassDef(FairRunAna, 6)
Double_t fEventTimeMax
Definition: FairRunAna.h:126
void RunOnLmdFiles(UInt_t NStart=0, UInt_t NStop=0)
Definition: FairRunAna.cxx:552
Bool_t fStoreEventHeader
Definition: FairRunAna.h:141
Bool_t fLoadGeo
Definition: FairRunAna.h:117
FairRootManager * fRootManager
Definition: FairRun.h:193
Double_t fEventTimeMin
Definition: FairRunAna.h:124
Bool_t fInFileIsOpen
Definition: FairRunAna.h:122
void RunTSBuffers()
Definition: FairRunAna.cxx:524
void Run(Int_t NStart=0, Int_t NStop=0)
Definition: FairRunAna.cxx:275
Bool_t GetContainerStatic()
Definition: FairRunAna.h:90
FairField * fField
Definition: FairRunAna.h:120
void SetEventHeaderPersistence(Bool_t flag)
Definition: FairRunAna.h:73
void RunMQ(Long64_t entry)
Definition: FairRunAna.cxx:478
Double_t fEventMeanTime
Definition: FairRunAna.h:130
static FairRunAna * Instance()
Definition: FairRunAna.cxx:61
void RunOnTBData()
Definition: FairRunAna.cxx:573
void SetContainerStatic(Bool_t tempBool=kTRUE)
Definition: FairRunAna.cxx:637
static FairRunAna * fgRinstance
Definition: FairRunAna.h:116
void RunEventReco(Int_t NStart, Int_t NStop)
Definition: FairRunAna.cxx:380
virtual ~FairRunAna()
Definition: FairRunAna.cxx:91
Bool_t IsTimeStamp()
Definition: FairRunAna.h:92
Bool_t fStatic
Definition: FairRunAna.h:119
void SetSource(FairSource *tempSource)
Bool_t fFinishProcessingLMDFile
Definition: FairRunAna.h:134
UInt_t fRunId
Definition: FairRun.h:201
virtual void SetSource(FairSource *tempSource)
Definition: FairRunAna.h:70
TFile * GetGeoFile()
Definition: FairRunAna.h:84
FairFileSource * fFileSource
Definition: FairRunAna.h:137
TF1 * fTimeProb
Definition: FairRunAna.h:132
void RunWithTimeStamps()
Definition: FairRunAna.cxx:624
void DummyRun(Int_t NStart, Int_t NStop)
Definition: FairRunAna.cxx:587
TFile * fInputGeoFile
Definition: FairRunAna.h:115
Bool_t GetLMDProcessingStatus(void)
Definition: FairRunAna.h:97
void SetGeomFile(const char *GeoFileName)
Definition: FairRunAna.cxx:106
FairField * GetField()
Definition: FairRunAna.h:78
void StopProcessingLMD(void)
Definition: FairRunAna.h:95
void SetField(FairField *ffield)
Definition: FairRunAna.h:80
virtual void Fill()
Definition: FairRunAna.cxx:647
Bool_t fIsInitialized
Definition: FairRunAna.h:114