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