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