CbmRoot
CbmMcbm2018MonitorTaskTofPulser.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // ----- -----
3 // ----- CbmMcbm2018MonitorTaskTofPulser -----
4 // ----- Created 27.11.2019 by P.-A. Loizeau -----
5 // ----- -----
6 // -----------------------------------------------------------------------------
7 
8 #ifndef CbmMcbm2018MonitorTaskTofPulser_H
9 #define CbmMcbm2018MonitorTaskTofPulser_H
10 
11 #include "Timeslice.hpp"
12 
13 #include "CbmMcbmUnpack.h"
14 
15 #include "TString.h"
16 
18 
20 public:
23  delete;
27 
28  virtual Bool_t Init();
29  virtual Bool_t DoUnpack(const fles::Timeslice& ts, size_t component);
30  virtual void Reset();
31 
32  virtual void Finish();
33 
34  void SetParContainers();
35 
36  Bool_t InitContainers();
37 
38  Bool_t ReInitContainers();
39 
41  void AddMsComponentToList(size_t component, UShort_t usDetectorId);
42  void SetNbMsInTs(size_t /*uCoreMsNb*/, size_t /*uOverlapMsNb*/) {};
43 
45  void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
46  inline void SetHistoFilename(TString sNameIn) { fsHistoFileName = sNameIn; }
47  inline void SetUpdateFreqTs(UInt_t uFreq = 100) { fuUpdateFreqTs = uFreq; }
48  inline void SetPulserTotLimits(UInt_t uMin, UInt_t uMax) {
49  fuPulserMinTot = uMin;
50  fuPulserMaxTot = uMax;
51  }
52  inline void SetPulserChannel(UInt_t uChan) { fuPulserChannel = uChan; }
53  inline void SetGdpbIndex(Int_t iGdpb = -1) { fiGdpbIndex = iGdpb; }
54  inline void SetHistoryHistoSize(UInt_t inHistorySizeSec = 1800) {
55  fuHistoryHistoSize = inHistorySizeSec;
56  }
57 
58 private:
59  Bool_t SaveHistograms();
60 
62 
64  TString fsHistoFileName;
69  Int_t fiGdpbIndex;
71 
73  uint64_t fulTsCounter;
74 
77 
79 };
80 
81 #endif // CbmMcbm2018MonitorTaskTofPulser_H
CbmMcbm2018MonitorTaskTofPulser::SetHistoryHistoSize
void SetHistoryHistoSize(UInt_t inHistorySizeSec=1800)
Definition: CbmMcbm2018MonitorTaskTofPulser.h:54
CbmMcbm2018MonitorTaskTofPulser::SetHistoFilename
void SetHistoFilename(TString sNameIn)
Definition: CbmMcbm2018MonitorTaskTofPulser.h:46
CbmMcbm2018MonitorTaskTofPulser::CbmMcbm2018MonitorTaskTofPulser
CbmMcbm2018MonitorTaskTofPulser(const CbmMcbm2018MonitorTaskTofPulser &)=delete
CbmMcbmUnpack.h
CbmMcbm2018MonitorTaskTofPulser::fsHistoFileName
TString fsHistoFileName
Control flags.
Definition: CbmMcbm2018MonitorTaskTofPulser.h:64
CbmMcbm2018MonitorTaskTofPulser::fuUpdateFreqTs
UInt_t fuUpdateFreqTs
Definition: CbmMcbm2018MonitorTaskTofPulser.h:65
CbmMcbm2018MonitorTaskTofPulser::fuPulserMinTot
UInt_t fuPulserMinTot
Definition: CbmMcbm2018MonitorTaskTofPulser.h:66
CbmMcbm2018MonitorTaskTofPulser::~CbmMcbm2018MonitorTaskTofPulser
virtual ~CbmMcbm2018MonitorTaskTofPulser()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:50
CbmMcbm2018MonitorTaskTofPulser::SetNbMsInTs
void SetNbMsInTs(size_t, size_t)
Definition: CbmMcbm2018MonitorTaskTofPulser.h:42
CbmMcbm2018MonitorTaskTofPulser::AddMsComponentToList
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:150
CbmMcbm2018MonitorTaskTofPulser::fuPulserMaxTot
UInt_t fuPulserMaxTot
Definition: CbmMcbm2018MonitorTaskTofPulser.h:67
CbmMcbm2018MonitorTaskTofPulser::SetPulserChannel
void SetPulserChannel(UInt_t uChan)
Definition: CbmMcbm2018MonitorTaskTofPulser.h:52
CbmMcbm2018MonitorTaskTofPulser::DoUnpack
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:156
CbmMcbm2018MonitorTaskTofPulser::fMonitorPulserAlgo
CbmMcbm2018MonitorAlgoTofPulser * fMonitorPulserAlgo
Processing algo.
Definition: CbmMcbm2018MonitorTaskTofPulser.h:76
CbmMcbm2018MonitorTaskTofPulser::InitContainers
Bool_t InitContainers()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:85
CbmMcbm2018MonitorTaskTofPulser::SetIgnoreOverlapMs
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
Algo settings setters.
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:194
CbmMcbm2018MonitorTaskTofPulser::fulTsCounter
uint64_t fulTsCounter
Statistics & first TS rejection.
Definition: CbmMcbm2018MonitorTaskTofPulser.h:73
CbmMcbm2018MonitorTaskTofPulser::SaveHistograms
Bool_t SaveHistograms()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:198
CbmMcbm2018MonitorTaskTofPulser::CbmMcbm2018MonitorTaskTofPulser
CbmMcbm2018MonitorTaskTofPulser()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:36
CbmMcbm2018MonitorTaskTofPulser::SetUpdateFreqTs
void SetUpdateFreqTs(UInt_t uFreq=100)
Definition: CbmMcbm2018MonitorTaskTofPulser.h:47
CbmMcbm2018MonitorTaskTofPulser::ReInitContainers
Bool_t ReInitContainers()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:143
CbmMcbm2018MonitorTaskTofPulser::Finish
virtual void Finish()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:189
CbmMcbm2018MonitorTaskTofPulser::Reset
virtual void Reset()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:187
CbmMcbm2018MonitorAlgoTofPulser
Definition: CbmMcbm2018MonitorAlgoTofPulser.h:31
CbmMcbm2018MonitorTaskTofPulser::fuPulserChannel
UInt_t fuPulserChannel
Definition: CbmMcbm2018MonitorTaskTofPulser.h:68
CbmMcbm2018MonitorTaskTofPulser::operator=
CbmMcbm2018MonitorTaskTofPulser operator=(const CbmMcbm2018MonitorTaskTofPulser &)=delete
CbmMcbm2018MonitorTaskTofPulser::fiGdpbIndex
Int_t fiGdpbIndex
Definition: CbmMcbm2018MonitorTaskTofPulser.h:69
CbmMcbm2018MonitorTaskTofPulser::SetParContainers
void SetParContainers()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:61
CbmMcbm2018MonitorTaskTofPulser
Definition: CbmMcbm2018MonitorTaskTofPulser.h:19
CbmMcbm2018MonitorTaskTofPulser::SetPulserTotLimits
void SetPulserTotLimits(UInt_t uMin, UInt_t uMax)
Definition: CbmMcbm2018MonitorTaskTofPulser.h:48
CbmMcbmUnpack
Definition: CbmMcbmUnpack.h:15
CbmMcbm2018MonitorTaskTofPulser::fuHistoryHistoSize
UInt_t fuHistoryHistoSize
Definition: CbmMcbm2018MonitorTaskTofPulser.h:70
CbmMcbm2018MonitorTaskTofPulser::SetGdpbIndex
void SetGdpbIndex(Int_t iGdpb=-1)
Definition: CbmMcbm2018MonitorTaskTofPulser.h:53
CbmMcbm2018MonitorTaskTofPulser::Init
virtual Bool_t Init()
Definition: CbmMcbm2018MonitorTaskTofPulser.cxx:54