12#ifndef CBMCOSY2018MONITORPULSER_H
13#define CBMCOSY2018MONITORPULSER_H
15#include "Timeslice.hpp"
23#include "CbmTSUnpack.h"
33class CbmCern2017UnpackParHodo;
34class CbmCern2017UnpackParSts;
41 virtual Bool_t
Init();
43 virtual Bool_t
DoUnpack(
const fles::Timeslice& ts,
size_t component);
55 void SetRunStart(Int_t dateIn, Int_t timeIn, Int_t iBinSize = 5);
86 std::vector<std::vector<UInt_t>>
119 std::vector<std::vector<std::vector<Double_t>>>
121 std::vector<std::vector<std::vector<UShort_t>>>
127 std::chrono::steady_clock::time_point
131 std::vector<stsxyter::FinalHit>
133 std::vector<std::vector<stsxyter::FinalHit>>
std::vector< UInt_t > fvuElinkLastTsHit
Current TS MSB cycle for DPB.
Double_t fdStartTime
Last hit ADC in bins in each MS for each Channel.
UInt_t fuNbChanPerAsic
Number of StsXyter ASICs.
UInt_t fuCurrDpbId
Current equipment ID, tells from which DPB the current MS is originating.
static const UInt_t kuBytesPerMessage
stsxyter::MessagePrintMask fPrintMessCtrl
UInt_t fuCurrentEquipmentId
TH2 * fhPulserSysMessTypePerDpb
CbmCern2017UnpackParHodo * fUnpackParHodo
std::vector< std::vector< TH1 * > > fhPulserTimeDiffPerAsicPair
std::vector< TH2 * > fhPulserChanMissEvtEvo
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
std::vector< std::vector< TH2 * > > fhPulserTsLsbMatchPerAsicPair
std::map< UInt_t, UInt_t > fDpbIdIndexMap
Total number of Sts DPBs in system.
UInt_t fuLongHistoNbSeconds
Int_t fiRunStartDateTimeSec
Index of the DPB from which the MS currently unpacked is coming.
CbmCosy2018MonitorPulser(const CbmCosy2018MonitorPulser &)
virtual ~CbmCosy2018MonitorPulser()
std::vector< TH1 * > fhPulserChanCntRawGood
ULong64_t fulCurrentTsIdx
std::vector< Double_t > fvdMsTime
Last hit time in ns for each Channel.
std::chrono::steady_clock::time_point ftStartTimeUnix
std::vector< TH1 * > fhPulserIntervalLongAsic
std::vector< std::vector< ULong64_t > > fvulChanLastHitTime
TS from last hit for DPB.
void FillEpochInfo(stsxyter::Message mess)
void SetCoincidenceBorder(Double_t dCenterPos, Double_t dBorderVal)
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
std::vector< TH1 * > fhPulserFebMissEvtEvo
void SetLongDurationLimits(UInt_t uDurationSeconds=3600, UInt_t uBinSize=1)
std::vector< ULong64_t > fvulCurrentTsMsb
Bin size in s for the plots with date as X axis.
std::vector< TH2 * > fhPulserTimeDiffPerAsic
Last hits in each ASIC.
std::vector< std::vector< TH2 * > > fhPulserTsMsbMatchPerAsicPair
std::map< stsxyter::MessType, UInt_t > fmMsgCounter
void SetRunStart(Int_t dateIn, Int_t timeIn, Int_t iBinSize=5)
Bool_t ReInitContainers()
std::vector< TH1 * > fhPulserChanCntRaw
CbmCosy2018MonitorPulser()
TH2 * fhPulserMessTypePerDpb
TH2 * fhPulserMessTypePerElink
std::vector< std::vector< stsxyter::FinalHit > > fvmAsicHitsInTs
All hits (time in bins, ADC in bins, asic, channel) in last TS, sorted with "<" operator.
std::vector< stsxyter::FinalHit > fvmLastHitAsic
Last hits in each ASIC.
Double_t fdStartTs
Pulser time difference histos.
std::vector< TH2 * > fhPulserChanHitRateEvoLong
TString fsHistoFileFullname
std::vector< std::vector< UInt_t > > fvuElinkToAsic
Number of channels per StsXyter ASIC => should be constant somewhere!!!!
std::vector< UInt_t > fvuCurrentTsMsbCycle
Current TS MSB for each DPB.
std::vector< TH1 * > fhPulserFebRateEvo
std::vector< TH1 * > fhPulserFebRateEvoLong
void FillHitInfo(stsxyter::Message mess, const UShort_t &usElinkIdx, const UInt_t &uAsicIdx, 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< stsxyter::FinalHit > fvmHitsInTs
std::vector< std::vector< TH2 * > > fhPulserTimeDiffEvoPerAsicPair
std::vector< std::vector< Double_t > > fvdChanLastHitTime
Last hit time in bins for each Channel.
std::vector< TH2 * > fhPulserChanAdcRaw
std::vector< TProfile * > fhPulserChanAdcRawProf
TH1 * fhMsSz[kiMaxNbFlibLinks]
UInt_t fuNbElinksPerDpb
Map of DPB Identifier to DPB index.
UInt_t fuMaxNbMicroslices
All hits (time in bins, ADC in bins, asic, channel) in last TS, per ASIC, sorted with "<" operator.
CbmCosy2018MonitorPulser operator=(const CbmCosy2018MonitorPulser &)
void UseDaqBuffer(Bool_t)
void FillTsMsbInfo(stsxyter::Message mess, UInt_t uMessIdx=0, UInt_t uMsIdx=0)
std::vector< TH2 * > fhPulserChanMissEvt
std::vector< std::vector< std::vector< Double_t > > > fvdChanLastHitTimeInMs
Number of hits in each MS for each Channel.
void SetPrintMessage(Bool_t bPrintMessOn=kTRUE, stsxyter::MessagePrintMask ctrl=stsxyter::MessagePrintMask::msg_print_Hex|stsxyter::MessagePrintMask::msg_print_Human)
void SetHistoFileName(TString sFileName="data/SetupHistos.root")
TProfile * fhMsSzTime[kiMaxNbFlibLinks]
void SetMsOverlap(size_t uOverlapMsNb=1)
std::vector< TH1 * > fhPulserIntervalAsic
UInt_t fuLongHistoBinSizeSec
std::vector< std::vector< std::vector< UShort_t > > > fvusChanLastHitAdcInMs
Last hit time in bins in each MS for each Channel.
UInt_t fuNbStsXyters
Number of possible eLinks per DPB.
TH2 * fhPulserSysMessTypePerElink
static const Int_t kiMaxNbFlibLinks
Vector holding for each link the corresponding ASIC index [fuNrOfDpbs * fuNbElinksPerDpb].
std::vector< TH2 * > fhPulserChanHitRateEvo
ULong64_t fulCurrentMsIdx
std::vector< TH2 * > fhPulserChanRawTs
std::vector< std::vector< std::vector< UInt_t > > > fvuChanNbHitsInMs
Header time of each MS.
TH1 * fhPulserMessType
Histogram manager.
TH1 * fhPulserSysMessType
void SaveAllHistos(TString sFileName="")
MessagePrintMask
Printout control.