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