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