CbmRoot
Loading...
Searching...
No Matches
CbmMcbm2018MonitorTaskBmon.h
Go to the documentation of this file.
1/* Copyright (C) 2019-2021 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Pierre-Alain Loizeau [committer], Florian Uhlig */
4
5// -----------------------------------------------------------------------------
6// ----- -----
7// ----- CbmMcbm2018MonitorTaskBmon -----
8// ----- Created 10.02.2019 by P.-A. Loizeau -----
9// ----- -----
10// -----------------------------------------------------------------------------
11
12#ifndef CbmMcbm2018MonitorTaskBmon_H
13#define CbmMcbm2018MonitorTaskBmon_H
14
16#include "CbmMcbmUnpack.h"
17
18#include "Timeslice.hpp"
19
20#include "TString.h"
21
23public:
27
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 SetMonitorMode(Bool_t bFlagIn = kTRUE) { fbMonitorMode = bFlagIn; }
48 void SetIgnoreOverlapMs(Bool_t bFlagIn = kTRUE);
49 inline void SetHistoryHistoSize(UInt_t inHistorySizeSec = 1800) { fuHistoryHistoSize = inHistorySizeSec; }
50 inline void SetHistoFilename(TString sNameIn) { fsHistoFileName = sNameIn; }
51 inline void SetPulserTotLimits(UInt_t uMin, UInt_t uMax)
52 {
53 fuMinTotPulser = uMin;
54 fuMaxTotPulser = uMax;
55 }
56 inline void SetSpillThreshold(UInt_t uCntLimit) { fuOffSpillCountLimit = uCntLimit; }
57 inline void SetSpillThresholdNonPulser(UInt_t uCntLimit) { fuOffSpillCountLimitNonPulser = uCntLimit; }
58 inline void SetSpillCheckInterval(Double_t dIntervalSec) { fdSpillCheckInterval = dIntervalSec; }
59 void SetChannelMap(UInt_t uChan0, UInt_t uChan1, UInt_t uChan2, UInt_t uChan3, UInt_t uChan4, UInt_t uChan5,
60 UInt_t uChan6, UInt_t uChan7);
61
62private:
66
75
77 uint64_t fulTsCounter;
78
81
83};
84
85#endif
CbmMcbm2018MonitorAlgoBmon * fMonitorAlgo
Processing algo.
UInt_t fuHistoryHistoSize
Switch ON the filling of a additional set of histograms.
void SetChannelMap(UInt_t uChan0, UInt_t uChan1, UInt_t uChan2, UInt_t uChan3, UInt_t uChan4, UInt_t uChan5, UInt_t uChan6, UInt_t uChan7)
void SetSpillCheckInterval(Double_t dIntervalSec)
CbmMcbm2018MonitorTaskBmon(const CbmMcbm2018MonitorTaskBmon &)=delete
void SetSpillThresholdNonPulser(UInt_t uCntLimit)
void SetMonitorMode(Bool_t bFlagIn=kTRUE)
Algo settings setters.
void SetPulserTotLimits(UInt_t uMin, UInt_t uMax)
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
void SetHistoryHistoSize(UInt_t inHistorySizeSec=1800)
CbmMcbm2018MonitorTaskBmon operator=(const CbmMcbm2018MonitorTaskBmon &)=delete
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
Bool_t fbDebugMonitorMode
Switch ON the filling of a minimal set of histograms.
uint64_t fulTsCounter
Statistics & first TS rejection.
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Temp until we change from CbmMcbmUnpack to something else.
void SetSpillThreshold(UInt_t uCntLimit)