14#ifndef CBMMCBM2018MonitorMuchLite_H
15#define CBMMCBM2018MonitorMuchLite_H
18#include "Timeslice.hpp"
45 virtual Bool_t
Init();
47 virtual Bool_t
DoUnpack(
const fles::Timeslice& ts,
size_t component);
60 virtual void SetNbMsInTs(
size_t uCoreMsNb,
size_t uOverlapMsNb);
64 void SetRunStart(Int_t dateIn, Int_t timeIn, Int_t iBinSize = 5);
109 std::vector<std::vector<Bool_t>>
151 std::vector<std::vector<std::vector<Double_t>>>
153 std::vector<std::vector<std::vector<UShort_t>>>
164 std::chrono::steady_clock::time_point
168 std::vector<stsxyter::FinalHit>
170 std::vector<std::vector<stsxyter::FinalHit>>
172 std::vector<std::vector<stsxyter::FinalHit>>
257 Bool_t
ProcessMuchMs(
const fles::Timeslice& ts,
size_t uMsComp, UInt_t uMsIdx);
std::vector< TH1 * > fhMuchFebHitRateEvo_mskch_adccut
std::vector< TH2 * > fhMuchFebChanRawTs
std::chrono::steady_clock::time_point ftStartTimeUnix
Bool_t ReInitContainers()
Int_t fiBinSizeDatePlots
Start of run time since "epoch" in s, for the plots with date as X axis.
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
std::vector< std::vector< std::vector< UShort_t > > > fvusChanLastHitAdcInMs
Last hit time in bins in each MS for each Channel.
virtual void AddMsComponentToList(size_t component, UShort_t usDetectorId)
std::vector< stsxyter::FinalHit > fvmHitsInMs
Hits time-sorting.
void SetRunStart(Int_t dateIn, Int_t timeIn, Int_t iBinSize=5)
std::vector< TProfile * > fhMuchFebDuplicateHitProf
CbmHistManager * fHM
Coincidences in sorted hits.
TH2 * fhMuchHitsElinkPerDpb
std::map< UInt_t, UInt_t > fDpbIdIndexMap
Total number of STS DPBs in system.
UInt_t fuCurrDpbId
Current equipment ID, tells from which DPB the current MS is originating.
TH2 * fhMuchMessTypePerDpb
void SetBinningFwFlag(Bool_t bEnable=kTRUE)
=> Quick and dirty hack for binning FW!!!
std::vector< std::vector< ULong64_t > > fvulChanLastHitTime
stsxyter::MessagePrintMask fPrintMessCtrl
void SetMuchMode(Bool_t bMuchMode=kTRUE)
CbmMcbm2018MonitorMuchLite()
ULong64_t fulCurrentTsIdx
TS/MS info.
TH2 * fhMuchSysMessTypePerDpb
void SetHistoFileName(TString sFileName="data/SetupHistos.root")
std::map< stsxyter::MessType, UInt_t > fmMsgCounter
Current data properties.
CbmMcbm2018MonitorMuchLite operator=(const CbmMcbm2018MonitorMuchLite &)
std::vector< UInt_t > fvuInitialTsMsbCycleHeader
Flag set after seeing MS header in 1st MS for DPB.
Int_t fiRunStartDateTimeSec
Index of the DPB from which the MS currently unpacked is coming.
TH1 * fhMuchFebChanAdcRaw_combined
void SaveHistos(TString sFileName="")
std::vector< TH2 * > fhMuchChannelTime
ULong64_t fulCurrentMsIdx
std::vector< TH2 * > fHistPadDistr
Plots per FEB-8.
std::vector< TH1 * > fhMuchFebChanCntRaw
void FillEpochInfo(stsxyter::Message mess)
std::vector< UInt_t > fvuInitialHeaderDone
Current TS MSB cycle for DPB.
Int_t fiTimeIntervalRateUpdate
Mean Rate per channel plots.
std::vector< TH2 * > fhMuchFebADC
void SetMsOverlap(size_t uOverlapMsNb=1)
virtual void SetNbMsInTs(size_t uCoreMsNb, size_t uOverlapMsNb)
std::vector< Double_t > fvdMsTime
Header time of previous MS per link.
std::vector< std::vector< std::vector< Double_t > > > fvdChanLastHitTimeInMs
Number of hits in each MS for each Channel.
std::vector< TH1 * > fhMuchFebSpill
std::vector< std::vector< Bool_t > > fvbCrobActiveFlag
Map of DPB Identifier to DPB index.
TString fsHistoFileFullname
void SaveAllHistos(TString sFileName="")
CbmMcbm2018MonitorMuchLite(const CbmMcbm2018MonitorMuchLite &)
void SaveMuchHistos(TString sFileName="")
std::vector< TProfile * > fhMuchFebChanAdcRawProf
std::vector< UInt_t > fvuElinkLastTsHit
TS MSB cycle from MS header in 1st MS for DPB.
void FillTsMsbInfo(stsxyter::Message mess, UInt_t uMessIdx=0, UInt_t uMsIdx=0)
TH1 * fhMuchMessType
Histogram manager.
UInt_t Counter
Rate evolution histos.
TH2 * fhMsStatusFieldType
std::vector< std::vector< std::vector< UInt_t > > > fvuChanNbHitsInMs
Header time of each MS.
std::vector< TH1 * > fhMuchFebHitRateEvo
std::vector< TH1 * > fhMuchFebHitRateEvo_mskch
std::vector< TH2 * > fhMuchFebChanAdcRaw
std::vector< Bool_t > fvbMaskedComponents
TProfile * fhMsSzTime[kiMaxNbFlibLinks]
std::vector< std::vector< stsxyter::FinalHit > > fvmFebHitsInMs
All hits (time in bins, ADC in bins, asic, channel) in last TS, per ASIC, sorted with "<" operator.
Bool_t ScanForNoisyChannels(Double_t dNoiseThreshold=1e3)
---------------------------------------------------------------—///
Bool_t fbBinningFw
=> Quick and dirty hack for binning FW!!!
UInt_t fuCurrentEquipmentId
std::vector< UInt_t > fvuCurrentTsMsbCycle
Current TS MSB for each DPB.
static const UInt_t kuBytesPerMessage
std::vector< TH1 * > fhMuchFebHitRateEvo_WithoutDupli
Bool_t InitMuchParameters()
std::vector< Double_t > fvdPrevMsTime
Last hit time in ns for each Channel.
UInt_t fuMaxNbMicroslices
std::vector< std::vector< Double_t > > fdMuchFebChanLastTimeForDist
std::vector< Int_t > fviFebTimeSecLastRateUpdate
UInt_t fuNbStsXyters
Number of StsXyter ASICs.
std::vector< ULong64_t > fvulCurrentTsMsb
Bin size in s for the plots with date as X axis.
std::vector< std::vector< stsxyter::FinalHit > > fvmAsicHitsInMs
All hits (time in bins, ADC in bins, asic, channel) in last TS, sorted with "<" operator.
std::vector< size_t > fvMsComponentsList
std::vector< std::vector< Double_t > > fvdFebChanCountsSinceLastRateUpdate
static const Int_t kiMaxNbFlibLinks
Number of StsXyter ASICs.
void UseDaqBuffer(Bool_t)
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
virtual ~CbmMcbm2018MonitorMuchLite()
std::vector< Int_t > fviFebCountsSinceLastRateUpdate
TH2 * fhDpbMsErrors
Binning FW error flag.
std::vector< std::vector< Double_t > > fvdChanLastHitTime
Last hit time in bins for each Channel.
std::vector< TH2 * > fRealHistPadDistr
TH1 * fhMsSz[kiMaxNbFlibLinks]
void SetPrintMessage(Bool_t bPrintMessOn=kTRUE, stsxyter::MessagePrintMask ctrl=stsxyter::MessagePrintMask::msg_print_Hex|stsxyter::MessagePrintMask::msg_print_Human)
std::vector< TProfile * > fhMuchFebChanHitRateProf
Long64_t prevtime_new
Last hit ADC in bins in each MS for each Channel.
std::vector< TH2 * > fhMuchFebChanDistT
Bool_t ProcessMuchMs(const fles::Timeslice &ts, size_t uMsComp, UInt_t uMsIdx)
CbmMcbm2018MuchPar * fUnpackParMuch
/** Ignore Overlap Ms: all fuOverlapMsNb MS at the end of timeslice **/
std::vector< TH2 * > fhMuchFebChanHitRateEvo
Bool_t fbPrintMessages
Task configuration values.
UInt_t fuNbFebs
Array to hold the active flag for all CROBs, [ NbDpb ][ NbCrobPerDpb ].
void FillHitInfo(stsxyter::Message mess, const UShort_t &usElinkIdx, const UInt_t &uAsicIdx, const UInt_t &uMsIdx)
MessagePrintMask
Printout control.