CbmRoot
CbmStar2019MonitorPulserTask.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // ----- -----
3 // ----- CbmStar2019MonitorPulserTask -----
4 // ----- Created 12.10.2019 by P.-A. Loizeau -----
5 // ----- -----
6 // -----------------------------------------------------------------------------
7 
8 #ifndef CbmStar2019MonitorPulserTask_H
9 #define CbmStar2019MonitorPulserTask_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:
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  void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
44  inline void SetHistoFilename(TString sNameIn) { fsHistoFileName = sNameIn; }
45  inline void SetEtofFeeIndexing(Bool_t bFlagIn = kTRUE) {
46  fbEtofFeeIndexing = bFlagIn;
47  }
48  inline void SetUpdateFreqTs(UInt_t uFreq = 100) { fuUpdateFreqTs = uFreq; }
49  inline void SetPulserTotLimits(UInt_t uMin, UInt_t uMax) {
50  fuPulserMinTot = uMin;
51  fuPulserMaxTot = uMax;
52  }
53  inline void SetPulserChannel(UInt_t uChan) { fuPulserChannel = uChan; }
54  inline void SetSectorIndex(Int_t iSector = -1) { fiSectorIndex = iSector; }
55  inline void SetHistoryHistoSize(UInt_t inHistorySizeSec = 1800) {
56  fuHistoryHistoSize = inHistorySizeSec;
57  }
58 
59 private:
60  Bool_t SaveHistograms();
61 
64 
66  TString fsHistoFileName;
73 
75  TList* fParCList;
76 
78  uint64_t fulTsCounter;
79 
82 
85 
86  ClassDef(CbmStar2019MonitorPulserTask, 1)
87 };
88 
89 #endif // CbmStar2019MonitorPulserTask_H
CbmStar2019MonitorPulserTask::SetHistoFilename
void SetHistoFilename(TString sNameIn)
Definition: CbmStar2019MonitorPulserTask.h:44
CbmStar2019MonitorPulserTask::SetNbMsInTs
void SetNbMsInTs(size_t, size_t)
Definition: CbmStar2019MonitorPulserTask.h:40
CbmStar2019MonitorPulserTask::fParCList
TList * fParCList
Parameters management.
Definition: CbmStar2019MonitorPulserTask.h:75
CbmMcbmUnpack.h
CbmStar2019MonitorPulserTask::InitContainers
Bool_t InitContainers()
Definition: CbmStar2019MonitorPulserTask.cxx:87
CbmStar2019MonitorPulserTask::CbmStar2019MonitorPulserTask
CbmStar2019MonitorPulserTask(const CbmStar2019MonitorPulserTask &)
CbmStar2019MonitorPulserTask::fulTsCounter
uint64_t fulTsCounter
Statistics & first TS rejection.
Definition: CbmStar2019MonitorPulserTask.h:78
CbmStar2019MonitorPulserTask::SetHistoryHistoSize
void SetHistoryHistoSize(UInt_t inHistorySizeSec=1800)
Definition: CbmStar2019MonitorPulserTask.h:55
CbmStar2019MonitorPulserTask::SetPulserChannel
void SetPulserChannel(UInt_t uChan)
Definition: CbmStar2019MonitorPulserTask.h:53
CbmStar2019MonitorPulserTask::SetPulserTotLimits
void SetPulserTotLimits(UInt_t uMin, UInt_t uMax)
Definition: CbmStar2019MonitorPulserTask.h:49
CbmStar2019MonitorPulserTask::ReInitContainers
Bool_t ReInitContainers()
Definition: CbmStar2019MonitorPulserTask.cxx:147
CbmStar2019MonitorPulserTask::SetIgnoreOverlapMs
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
Algo settings setters.
Definition: CbmStar2019MonitorPulserTask.cxx:197
CbmStar2019MonitorPulserTask::fuPulserMaxTot
UInt_t fuPulserMaxTot
Definition: CbmStar2019MonitorPulserTask.h:69
CbmStar2019MonitorPulserTask::fuPulserMinTot
UInt_t fuPulserMinTot
Definition: CbmStar2019MonitorPulserTask.h:68
CbmStar2019MonitorPulserTask::~CbmStar2019MonitorPulserTask
virtual ~CbmStar2019MonitorPulserTask()
Definition: CbmStar2019MonitorPulserTask.cxx:52
CbmStar2019MonitorPulserTask::fsHistoFileName
TString fsHistoFileName
User settings parameters.
Definition: CbmStar2019MonitorPulserTask.h:66
CbmStar2019MonitorPulserTask::fiSectorIndex
Int_t fiSectorIndex
Definition: CbmStar2019MonitorPulserTask.h:71
CbmStar2019MonitorPulserTask::AddMsComponentToList
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
Definition: CbmStar2019MonitorPulserTask.cxx:154
CbmStar2019MonitorPulserTask::fuUpdateFreqTs
UInt_t fuUpdateFreqTs
Definition: CbmStar2019MonitorPulserTask.h:67
CbmStar2019MonitorPulserTask::SetSectorIndex
void SetSectorIndex(Int_t iSector=-1)
Definition: CbmStar2019MonitorPulserTask.h:54
CbmStar2019MonitorPulserTask::SetUpdateFreqTs
void SetUpdateFreqTs(UInt_t uFreq=100)
Definition: CbmStar2019MonitorPulserTask.h:48
CbmStar2019MonitorPulserTask::DoUnpack
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
Definition: CbmStar2019MonitorPulserTask.cxx:159
CbmStar2019MonitorPulserTask::operator=
CbmStar2019MonitorPulserTask operator=(const CbmStar2019MonitorPulserTask &)
CbmStar2019MonitorPulserTask::fuPulserChannel
UInt_t fuPulserChannel
Definition: CbmStar2019MonitorPulserTask.h:70
CbmStar2019MonitorPulserTask::Init
virtual Bool_t Init()
Definition: CbmStar2019MonitorPulserTask.cxx:56
CbmStar2019MonitorPulserTask::SetEtofFeeIndexing
void SetEtofFeeIndexing(Bool_t bFlagIn=kTRUE)
Definition: CbmStar2019MonitorPulserTask.h:45
CbmStar2019MonitorPulserTask::CbmStar2019MonitorPulserTask
CbmStar2019MonitorPulserTask()
Definition: CbmStar2019MonitorPulserTask.cxx:36
CbmStar2019MonitorPulserTask
Definition: CbmStar2019MonitorPulserTask.h:21
CbmStar2019MonitorPulserTask::SetParContainers
void SetParContainers()
Definition: CbmStar2019MonitorPulserTask.cxx:63
CbmStar2019MonitorPulserTask::SaveHistograms
Bool_t SaveHistograms()
Definition: CbmStar2019MonitorPulserTask.cxx:201
CbmStar2019MonitorPulserTask::Reset
virtual void Reset()
Definition: CbmStar2019MonitorPulserTask.cxx:190
CbmStar2019MonitorPulserTask::fbEtofFeeIndexing
Bool_t fbEtofFeeIndexing
Control flags.
Definition: CbmStar2019MonitorPulserTask.h:63
CbmMcbmUnpack
Definition: CbmMcbmUnpack.h:15
CbmStar2019MonitorPulserTask::fuHistoryHistoSize
UInt_t fuHistoryHistoSize
Definition: CbmStar2019MonitorPulserTask.h:72
CbmStar2019MonitorPulserTask::fMonitorPulserAlgo
CbmStar2019MonitorPulserAlgo * fMonitorPulserAlgo
Processing algo.
Definition: CbmStar2019MonitorPulserTask.h:81
CbmStar2019MonitorPulserTask::Finish
virtual void Finish()
Definition: CbmStar2019MonitorPulserTask.cxx:192
CbmStar2019MonitorPulserAlgo
Definition: CbmStar2019MonitorPulserAlgo.h:31