12#ifndef CBMMCBM2018MONITORMCBMRATE_H
13#define CBMMCBM2018MONITORMCBMRATE_H
15#include "Timeslice.hpp"
43 virtual Bool_t
Init();
45 virtual Bool_t
DoUnpack(
const fles::Timeslice& ts,
size_t component);
61 virtual void SetNbMsInTs(
size_t uCoreMsNb,
size_t uOverlapMsNb);
132 std::vector<std::vector<stsxyter::FinalHit>>
134 std::vector<std::vector<stsxyter::FinalHit>>
140 Bool_t
ProcessStsMs(
const fles::Timeslice& ts,
size_t uMsComp, UInt_t uMsIdx);
185 Bool_t
ProcessTofMs(
const fles::Timeslice& ts,
size_t uMsComp, UInt_t uMsIdx);
TH1 * fhDiamondHitsRateDerivative
Int_t fiBinSizeDatePlots
Start of run time since "epoch" in s, for the plots with date as X axis.
Bool_t ProcessStsMs(const fles::Timeslice &ts, size_t uMsComp, UInt_t uMsIdx)
UInt_t fuCurrentEquipmentId
void FillTofEpochInfo(gdpbv100::Message)
TH2 * fhTofVsDiamHitsNbPerTimeBin
TH2 * fhDiamVsTofHitsNbPerTimeBin
stsxyter::MessagePrintMask fPrintMessCtrlSts
TH2 * fhMcbmHitsNbPerTsEvo
ULong64_t fulCurrentTsStartTime
void FillStsHitInfo(stsxyter::Message mess, const UInt_t &uMsIdx)
TH2 * fhTofVsMuchHitsNbPerTimeBin
void AddMsComponentToListSts(size_t component)
TH2 * fhStsVsTofHitsNbPerTimeBin
UInt_t fuCurrDpbId
Current equipment ID, tells from which DPB the current MS is originating.
Double_t fdMuchTofOffsetNs
static const UInt_t kuStsBytesPerMessage
UInt_t fuTotalNrOfDpb
Global parameters.
std::vector< UInt_t > fvuHitsNbInTimeBinSts
std::vector< int > fviTofMsgCounter
void SetDiamondDpbIdx(UInt_t uIdx=2)
std::map< UInt_t, UInt_t > fmStsDpbIdIndexMap
Total number of Sts DPBs in system.
TH2 * fhTofVsStsHitsNbPerTimeBin
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
TH2 * fhDiamVsStsHitsNbPerTimeBin
std::vector< std::vector< gdpbv100::FullMessage > > fvmTofGdpbHitsInMs
Buffer for system sync check.
std::vector< UInt_t > fvuHitsNbInTimeBinTof
std::vector< ULong64_t > fvulTofCurrentEpoch
TH2 * fhMcbmHitsNbFineEvo
void SetHistoFileName(TString sFileName="data/SetupHistos.root")
void SaveAllHistos(TString sFileName="")
void SavePulserHistos(TString sFileName="")
Bool_t ReInitContainers()
TH2 * fhDiamondHitsRateMapEvo
Int_t fiRunStartDateTimeSec
Index of the DPB from which the MS currently unpacked is coming.
Bool_t ProcessTofMs(const fles::Timeslice &ts, size_t uMsComp, UInt_t uMsIdx)
void SetStsTofOffsetNs(Double_t dOffsetIn=0.0)
void FillTofEpochCycle(uint64_t ulCycleData)
void FillTofHitInfo(gdpbv100::Message)
CbmMcbm2018StsPar * fUnpackParSts
TH2 * fhStsVsDiamHitsNbPerTimeBin
CbmMcbm2018MonitorMcbmRate()
TH2 * fhStsVsMuchHitsNbPerTimeBin
static const UInt_t kuTimeBinSizeNs
ULong64_t fulCurrentMsIdx
void SetMsOverlap(size_t uOverlapMsNb=1)
std::vector< std::vector< gdpbv100::Message > > fvmTofEpSupprBuffer
Buffer for suppressed epoch processing.
TH2 * fhMuchVsDiamHitsNbPerTimeBin
virtual ~CbmMcbm2018MonitorMcbmRate()
void FillStsTsMsbInfo(stsxyter::Message mess, UInt_t uMessIdx=0, UInt_t uMsIdx=0)
std::vector< std::vector< stsxyter::FinalHit > > fvmStsSdpbHitsInMs
Current TS MSB cycle for DPB.
static const UInt_t kuNbTimeBins
CbmMcbm2018MonitorMcbmRate operator=(const CbmMcbm2018MonitorMcbmRate &)
virtual void SetNbMsInTs(size_t uCoreMsNb, size_t uOverlapMsNb)
std::map< UInt_t, UInt_t > fmTofDpbIdIndexMap
Total number of GDPBs in the system.
std::vector< UInt_t > fvuHitsNbInTimeBinMuch
TString fsHistoFileFullname
void CreateTofHistograms()
Processing methods.
Double_t fdStsTofOffsetNs
std::vector< ULong64_t > fvulTofCurrentEpochCycle
void SetMuchDpbIdx(UInt_t uIdx=1)
void FillStsEpochInfo(stsxyter::Message mess)
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
CbmMcbm2018MonitorMcbmRate(const CbmMcbm2018MonitorMcbmRate &)
TH2 * fhMuchVsTofHitsNbPerTimeBin
std::vector< std::vector< stsxyter::FinalHit > > fvmStsSdpbHitsInTs
All hits (time in bins, ADC in bins, asic, channel) in last TS, sorted with "<" operator.
std::vector< size_t > fvMsComponentsListSts
void SetIgnoreMsOverlap(Bool_t bIgnoreOver=kTRUE)
void AddMsComponentToListTof(size_t component)
uint64_t fulTofCurrentTsIndex
Running indices.
virtual void AddMsComponentToList(size_t component, UShort_t usDetectorId)
std::vector< size_t > fvMsComponentsListTof
ULong64_t fulCurrentTsIdx
std::vector< UInt_t > fvuHitsNbInTimeBinDiam
std::vector< ULong64_t > fvulTofCurrentEpochFull
std::vector< ULong64_t > fvulStsCurrentTsMsb
Bin size in s for the plots with date as X axis.
void CreateStsHistograms()
All hits (time in bins, ADC in bins, asic, channel) in last TS, sorted with "<" operator.
static const UInt_t kuTofBytesPerMessage
TODO => move to the message class!!
std::map< stsxyter::MessType, UInt_t > fmMsgCounter
void CreateMcbmHistograms()
CbmMcbm2018TofPar * fUnpackParTof
Unpacking and mapping parameters for TOF.
void UseDaqBuffer(Bool_t)
std::vector< std::vector< gdpbv100::FullMessage > > fvmTofGdpbHitsInTs
TH2 * fhMuchVsStsHitsNbPerTimeBin
static const UInt_t kuTsSizeInNs
UInt_t fuMuchDpbIdx
Map of DPB Identifier to DPB index.
ULong64_t fulTofCurrentEpochTime
std::vector< UInt_t > fvuStsCurrentTsMsbCycle
Current TS MSB for each DPB.
TH2 * fhDiamVsMuchHitsNbPerTimeBin
void SetMuchTofOffsetNs(Double_t dOffsetIn=0.0)
MessagePrintMask
Printout control.