CbmRoot
Loading...
Searching...
No Matches
CbmStar2019MonitorTask.h
Go to the documentation of this file.
1/* Copyright (C) 2019-2020 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer] */
4
5// -----------------------------------------------------------------------------
6// ----- -----
7// ----- CbmStar2019MonitorTask -----
8// ----- Created 12.10.2019 by P.-A. Loizeau -----
9// ----- -----
10// -----------------------------------------------------------------------------
11
12#ifndef CbmStar2019MonitorTask_H
13#define CbmStar2019MonitorTask_H
14
15#include "CbmMcbmUnpack.h"
16
17#include "Timeslice.hpp"
18
19#include "TString.h"
20
22class CbmTbDaqBuffer;
23class TClonesArray;
24
26public:
29
30 virtual Bool_t Init();
31 virtual Bool_t DoUnpack(const fles::Timeslice& ts, size_t component);
32 virtual void Reset();
33
34 virtual void Finish();
35
36 void SetParContainers();
37
38 Bool_t InitContainers();
39
40 Bool_t ReInitContainers();
41
43 void AddMsComponentToList(size_t component, UShort_t usDetectorId);
44 void SetNbMsInTs(size_t /*uCoreMsNb*/, size_t /*uOverlapMsNb*/) {};
45
47 inline void SetDebugMonitorMode(Bool_t bFlagIn = kTRUE) { fbDebugMonitorMode = bFlagIn; }
48 inline void SetIgnoreCriticalErrors(Bool_t bFlagIn = kTRUE) { fbIgnoreCriticalErrors = bFlagIn; }
49 void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
50 inline void SetHistoryHistoSize(UInt_t inHistorySizeSec = 1800) { fuHistoryHistoSize = inHistorySizeSec; }
51 inline void SetHistoFilename(TString sNameIn) { fsHistoFileName = sNameIn; }
52 inline void SetPulserTotLimits(UInt_t uMin, UInt_t uMax)
53 {
54 fuMinTotPulser = uMin;
55 fuMaxTotPulser = uMax;
56 }
57 inline void SetSectorIndex(Int_t iSector = -1) { fiSectorIndex = iSector; }
58
59 Bool_t SaveLatencyHistograms(TString sFilename);
60
61private:
62 Bool_t SaveHistograms();
63
67
74
76 TList* fParCList;
77
79 uint64_t fulTsCounter;
80
83
86
87 ClassDef(CbmStar2019MonitorTask, 1)
88};
89
90#endif // CbmStar2019MonitorTask_H
void SetDebugMonitorMode(Bool_t bFlagIn=kTRUE)
Algo settings setters.
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
void SetHistoryHistoSize(UInt_t inHistorySizeSec=1800)
CbmStar2019MonitorTask operator=(const CbmStar2019MonitorTask &)
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
CbmStar2019MonitorTask(const CbmStar2019MonitorTask &)
UInt_t fuHistoryHistoSize
If ON not printout at all for critical errors.
CbmStar2019MonitorAlgo * fMonitorAlgo
Processing algo.
uint64_t fulTsCounter
Statistics & first TS rejection.
Bool_t SaveLatencyHistograms(TString sFilename)
void SetHistoFilename(TString sNameIn)
void SetNbMsInTs(size_t, size_t)
void SetIgnoreCriticalErrors(Bool_t bFlagIn=kTRUE)
Bool_t fbDebugMonitorMode
Control flags.
Bool_t fbIgnoreCriticalErrors
Switch ON the filling of a additional set of histograms.
TList * fParCList
Parameters management.
void SetPulserTotLimits(UInt_t uMin, UInt_t uMax)
void SetSectorIndex(Int_t iSector=-1)
Singleton buffer class for CBM raw data.