CbmRoot
CbmStar2019MonitorTask.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // ----- -----
3 // ----- CbmStar2019MonitorTask -----
4 // ----- Created 12.10.2019 by P.-A. Loizeau -----
5 // ----- -----
6 // -----------------------------------------------------------------------------
7 
8 #ifndef CbmStar2019MonitorTask_H
9 #define CbmStar2019MonitorTask_H
10 
11 #include "Timeslice.hpp"
12 
13 #include "CbmMcbmUnpack.h"
14 
15 #include "TString.h"
16 
18 class CbmTbDaqBuffer;
19 class TClonesArray;
20 
22 public:
24  virtual ~CbmStar2019MonitorTask();
25 
26  virtual Bool_t Init();
27  virtual Bool_t DoUnpack(const fles::Timeslice& ts, size_t component);
28  virtual void Reset();
29 
30  virtual void Finish();
31 
32  void SetParContainers();
33 
34  Bool_t InitContainers();
35 
36  Bool_t ReInitContainers();
37 
39  void AddMsComponentToList(size_t component, UShort_t usDetectorId);
40  void SetNbMsInTs(size_t /*uCoreMsNb*/, size_t /*uOverlapMsNb*/) {};
41 
43  inline void SetDebugMonitorMode(Bool_t bFlagIn = kTRUE) {
44  fbDebugMonitorMode = bFlagIn;
45  }
46  inline void SetIgnoreCriticalErrors(Bool_t bFlagIn = kTRUE) {
47  fbIgnoreCriticalErrors = bFlagIn;
48  }
49  void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
50  inline void SetHistoryHistoSize(UInt_t inHistorySizeSec = 1800) {
51  fuHistoryHistoSize = inHistorySizeSec;
52  }
53  inline void SetHistoFilename(TString sNameIn) { fsHistoFileName = sNameIn; }
54  inline void SetPulserTotLimits(UInt_t uMin, UInt_t uMax) {
55  fuMinTotPulser = uMin;
56  fuMaxTotPulser = uMax;
57  }
58  inline void SetSectorIndex(Int_t iSector = -1) { fiSectorIndex = iSector; }
59 
60  Bool_t SaveLatencyHistograms(TString sFilename);
61 
62 private:
63  Bool_t SaveHistograms();
64 
66  Bool_t
68  Bool_t
70 
73  TString fsHistoFileName;
77 
79  TList* fParCList;
80 
82  uint64_t fulTsCounter;
83 
86 
89 
90  ClassDef(CbmStar2019MonitorTask, 1)
91 };
92 
93 #endif // CbmStar2019MonitorTask_H
CbmStar2019MonitorTask::fulTsCounter
uint64_t fulTsCounter
Statistics & first TS rejection.
Definition: CbmStar2019MonitorTask.h:82
CbmStar2019MonitorTask::SetHistoFilename
void SetHistoFilename(TString sNameIn)
Definition: CbmStar2019MonitorTask.h:53
CbmStar2019MonitorTask::SetNbMsInTs
void SetNbMsInTs(size_t, size_t)
Definition: CbmStar2019MonitorTask.h:40
CbmStar2019MonitorTask::fbDebugMonitorMode
Bool_t fbDebugMonitorMode
Control flags.
Definition: CbmStar2019MonitorTask.h:67
CbmStar2019MonitorAlgo
Definition: CbmStar2019MonitorAlgo.h:31
CbmStar2019MonitorTask::Finish
virtual void Finish()
Definition: CbmStar2019MonitorTask.cxx:188
CbmMcbmUnpack.h
CbmStar2019MonitorTask::ReInitContainers
Bool_t ReInitContainers()
Definition: CbmStar2019MonitorTask.cxx:143
CbmStar2019MonitorTask::InitContainers
Bool_t InitContainers()
Definition: CbmStar2019MonitorTask.cxx:84
CbmStar2019MonitorTask::CbmStar2019MonitorTask
CbmStar2019MonitorTask()
Definition: CbmStar2019MonitorTask.cxx:36
CbmStar2019MonitorTask::DoUnpack
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
Definition: CbmStar2019MonitorTask.cxx:155
CbmStar2019MonitorTask::SetSectorIndex
void SetSectorIndex(Int_t iSector=-1)
Definition: CbmStar2019MonitorTask.h:58
CbmStar2019MonitorTask::Init
virtual Bool_t Init()
Definition: CbmStar2019MonitorTask.cxx:53
CbmStar2019MonitorTask::CbmStar2019MonitorTask
CbmStar2019MonitorTask(const CbmStar2019MonitorTask &)
CbmStar2019MonitorTask::operator=
CbmStar2019MonitorTask operator=(const CbmStar2019MonitorTask &)
CbmStar2019MonitorTask::fuMaxTotPulser
UInt_t fuMaxTotPulser
Definition: CbmStar2019MonitorTask.h:75
CbmStar2019MonitorTask::fiSectorIndex
Int_t fiSectorIndex
Definition: CbmStar2019MonitorTask.h:76
CbmStar2019MonitorTask::Reset
virtual void Reset()
Definition: CbmStar2019MonitorTask.cxx:186
CbmStar2019MonitorTask::SetIgnoreOverlapMs
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
Definition: CbmStar2019MonitorTask.cxx:190
CbmStar2019MonitorTask::SaveLatencyHistograms
Bool_t SaveLatencyHistograms(TString sFilename)
Definition: CbmStar2019MonitorTask.cxx:194
CbmStar2019MonitorTask::fuHistoryHistoSize
UInt_t fuHistoryHistoSize
If ON not printout at all for critical errors.
Definition: CbmStar2019MonitorTask.h:72
CbmStar2019MonitorTask::fParCList
TList * fParCList
Parameters management.
Definition: CbmStar2019MonitorTask.h:79
CbmStar2019MonitorTask::SaveHistograms
Bool_t SaveHistograms()
Definition: CbmStar2019MonitorTask.cxx:198
CbmStar2019MonitorTask::fbIgnoreCriticalErrors
Bool_t fbIgnoreCriticalErrors
Switch ON the filling of a additional set of histograms.
Definition: CbmStar2019MonitorTask.h:69
CbmStar2019MonitorTask::SetDebugMonitorMode
void SetDebugMonitorMode(Bool_t bFlagIn=kTRUE)
Algo settings setters.
Definition: CbmStar2019MonitorTask.h:43
CbmStar2019MonitorTask::AddMsComponentToList
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
Definition: CbmStar2019MonitorTask.cxx:150
CbmStar2019MonitorTask::SetParContainers
void SetParContainers()
Definition: CbmStar2019MonitorTask.cxx:60
CbmStar2019MonitorTask
Definition: CbmStar2019MonitorTask.h:21
CbmStar2019MonitorTask::~CbmStar2019MonitorTask
virtual ~CbmStar2019MonitorTask()
Definition: CbmStar2019MonitorTask.cxx:51
CbmStar2019MonitorTask::fsHistoFileName
TString fsHistoFileName
Definition: CbmStar2019MonitorTask.h:73
CbmStar2019MonitorTask::fMonitorAlgo
CbmStar2019MonitorAlgo * fMonitorAlgo
Processing algo.
Definition: CbmStar2019MonitorTask.h:85
CbmStar2019MonitorTask::SetPulserTotLimits
void SetPulserTotLimits(UInt_t uMin, UInt_t uMax)
Definition: CbmStar2019MonitorTask.h:54
CbmStar2019MonitorTask::fuMinTotPulser
UInt_t fuMinTotPulser
Definition: CbmStar2019MonitorTask.h:74
CbmMcbmUnpack
Definition: CbmMcbmUnpack.h:15
CbmStar2019MonitorTask::SetIgnoreCriticalErrors
void SetIgnoreCriticalErrors(Bool_t bFlagIn=kTRUE)
Definition: CbmStar2019MonitorTask.h:46
CbmStar2019MonitorTask::SetHistoryHistoSize
void SetHistoryHistoSize(UInt_t inHistorySizeSec=1800)
Definition: CbmStar2019MonitorTask.h:50