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