Go to the documentation of this file.
9 #ifndef CBMMCBM2018MONITORMUCH_H
10 #define CBMMCBM2018MONITORMUCH_H
13 #include "Timeslice.hpp"
33 class CbmCern2017UnpackParSts;
40 virtual Bool_t
Init();
42 virtual Bool_t
DoUnpack(
const fles::Timeslice& ts,
size_t component);
55 virtual void SetNbMsInTs(
size_t uCoreMsNb,
size_t uOverlapMsNb);
59 void SetRunStart(Int_t dateIn, Int_t timeIn, Int_t iBinSize = 5);
106 std::map<UInt_t, UInt_t>
108 std::vector<std::vector<Bool_t>>
112 std::vector<std::vector<std::vector<Double_t>>>
114 std::vector<std::vector<std::vector<Double_t>>>
151 std::vector<std::vector<ULong64_t>>
154 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>>>
173 std::chrono::steady_clock::time_point
176 std::vector<stsxyter::FinalHit>
179 std::vector<std::vector<stsxyter::FinalHit>>
181 std::vector<std::vector<stsxyter::FinalHit>>
273 std::vector<std::vector<std::vector<Double_t>>>
275 std::vector<std::vector<UInt_t>>
277 std::vector<std::vector<UInt_t>>
279 std::vector<std::vector<UInt_t>>
281 std::vector<std::vector<UInt_t>>
283 std::vector<std::vector<UInt_t>>
330 Bool_t
ProcessStsMs(
const fles::Timeslice& ts,
size_t uMsComp, UInt_t uMsIdx);
333 const UShort_t& usElinkIdx,
334 const UInt_t& uAsicIdx,
335 const UInt_t& uMsIdx);
350 #endif // CBMMCBM2018MONITORMUCH_H
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
std::vector< TH2 * > fhStsFebChanRawTs
std::vector< Int_t > fviFebCountsSinceLastRateUpdate
std::vector< stsxyter::FinalHit > fvmHitsInMs
Hits time-sorting.
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 fuLongHistoBinSizeSec
void FillEpochInfo(stsxyter::Message mess)
constexpr static const Double_t kdSmxErrCoincWinNoiseM09
std::vector< std::vector< std::vector< Double_t > > > fvdFebAdcGain
Number of StsXyter ASICs.
std::vector< TH2 * > fhStsFebAsicHitRateEvoLong
std::vector< TH2 * > fhStsFebChanAdcRaw
virtual void AddMsComponentToList(size_t component, UShort_t usDetectorId)
TH2 * fhStsHitsElinkPerDpb
Bool_t InitStsParameters()
std::vector< TProfile * > fhStsFebSmxErrRatioEvo
Histograms.
static const Int_t kiMaxNbFlibLinks
ADC offset in e-, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ].
std::vector< std::vector< std::vector< UShort_t > > > fvusChanLastHitAdcInMs
Last hit time in bins in each MS for each Channel.
std::vector< TProfile * > fhStsFebChanAdcRawProf
TH2 * fhStsSysMessTypePerDpb
ULong64_t fulCurrentTsIdx
TS/MS info.
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
Bool_t fbSmx2ErrorUseNoiseLevels
SXM 2.0 logic error detection and tagging, 1 eLink case.
constexpr static const Double_t kdSmxErrCoincWinNoiseM07
Coincidence windows 99.9% tagging (up to 0.1% of corruption not detected)
Bool_t fbLongHistoEnable
Rate evolution histos.
TH2 * fhPulserStatusMessType
static const UInt_t kuBytesPerMessage
std::vector< TH2 * > fhStsFebAsicMissEvtEvo
Double_t fdSmxErrCoincWinM08
Double_t fdSmxErrCoincWinM11
CbmMcbm2018MonitorMuch(const CbmMcbm2018MonitorMuch &)
constexpr static const Double_t kdSmxErrCoincWinMainM09
std::vector< std::vector< Double_t > > fvdChanLastHitTime
Last hit time in bins for each Channel.
std::vector< TH2 * > fhStsFebChanMissEvtEvo
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.
TH2 * fhStsMessTypePerDpb
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM07
[ NbFebs ][ NbSmxPerFeb ][ kuSmxErrCoincWinNbHits ]
std::vector< TH1 * > fhStsFebHitRateEvo_mskch_adccut
void SetLongDurationLimits(UInt_t uDurationSeconds=3600, UInt_t uBinSize=1)
Double_t fdSmxErrCoincWinM07
Tagging variables.
std::vector< TH2 * > fRealHistPadDistr
std::vector< std::vector< Double_t > > fdStsFebChanLastTimeForDist
Int_t fiRunStartDateTimeSec
Index of the DPB from which the MS currently unpacked is coming.
Int_t fiBinSizeDatePlots
Start of run time since "epoch" in s, for the plots with date as X axis.
TString fsHistoFileFullname
std::vector< UInt_t > fvuInitialHeaderDone
Current TS MSB cycle for DPB.
std::vector< TProfile2D * > fhStsFebSmxErrRatioCopyEvoAsic
void UseNoiseLimitsSmx2LogicError(Bool_t bUseNoise=kTRUE)
Bool_t fbPrintMessages
Task configuration values.
std::vector< TProfile2D * > fhStsFebSmxErrRatioCopySameAdcEvoAsic
std::vector< TH1 * > fhStsFebChanCntRaw
CbmHistManager * fHM
Histograms.
UInt_t fuLongHistoNbSeconds
UInt_t fuNbFebs
Array to hold the active flag for all CROBs, [ NbDpb ][ NbCrobPerDpb ].
std::vector< Double_t > fvdPrevMsTime
Last hit time in ns for each Channel.
TH1 * fhMsSz[kiMaxNbFlibLinks]
static const UInt_t kuSmxErrCoincWinNbHits
std::vector< TH1 * > fhStsFebChanCntRawGood
constexpr static const Double_t kdSmxErrCoincWinMainM10
void UseDaqBuffer(Bool_t)
std::vector< std::vector< std::vector< Double_t > > > fvdSmxErrTimeLastHits
void SaveAllHistos(TString sFileName="")
constexpr static const Double_t kdSmxErrCoincWinBeg
std::vector< TProfile2D * > fhStsFebSmxErrRatioEvoAsic
std::vector< std::vector< Bool_t > > fvbCrobActiveFlag
Map of DPB Identifier to DPB index.
Int_t fiTimeIntervalRateUpdate
Mean Rate per channel plots.
Bool_t SmxErrCheckCoinc(UInt_t uFebIdx, UInt_t uAsicIdx, Double_t dNewHitTime)
Long64_t fdStartTime
Last hit ADC in bins in each MS for each Channel.
std::vector< std::vector< TH2 * > > fhStsFebChanCoinc
void SetMsOverlap(size_t uOverlapMsNb=1)
constexpr static const Double_t kdSmxErrCoincWinNoiseM11
std::vector< std::vector< UInt_t > > fvuSmxErrIdxLastHit
[ NbFebs ][ NbSmxPerFeb ]
std::vector< TH2 * > fhStsFebChanMissEvt
std::vector< TH2 * > fhStsFebChanAdcCal
std::vector< TH1 * > fhStsFebMissEvtEvo
void FillTsMsbInfo(stsxyter::Message mess, UInt_t uMessIdx=0, UInt_t uMsIdx=0)
Bool_t fbEnableCoincidenceMaps
std::vector< Int_t > fviFebTimeSecLastRateUpdate
std::map< stsxyter::MessType, UInt_t > fmMsgCounter
Current data properties.
std::vector< ULong64_t > fvulCurrentTsMsb
Bin size in s for the plots with date as X axis.
std::vector< TH2 * > fhStsFebChanHitRateEvo
MessagePrintMask
Printout control.
Double_t fdSmxErrCoincWinM10
CbmMcbm2018MonitorMuch operator=(const CbmMcbm2018MonitorMuch &)
void FillHitInfo(stsxyter::Message mess, const UShort_t &usElinkIdx, const UInt_t &uAsicIdx, const UInt_t &uMsIdx)
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM08
[ NbFebs ][ NbSmxPerFeb ]
void SavePulserHistos(TString sFileName="")
CbmMcbm2018MuchPar * fUnpackParMuch
/** Ignore Overlap Ms: all fuOverlapMsNb MS at the end of timeslice **/
stsxyter::MessagePrintMask fPrintMessCtrl
void SetEnableCoincidenceMaps(Bool_t bEnableCoincidenceMapsOn=kTRUE)
void SetHistoFileName(TString sFileName="data/SetupHistos.root")
std::vector< TProfile * > fhStsFebChanHitRateProf
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM09
[ NbFebs ][ NbSmxPerFeb ]
void SaveStsHistos(TString sFileName="")
Bool_t ProcessStsMs(const fles::Timeslice &ts, size_t uMsComp, UInt_t uMsIdx)
std::vector< TProfile * > fhStsFebSmxErrRatioCopyEvo
void SetMuchMode(Bool_t bMuchMode=kTRUE)
Bool_t ReInitContainers()
virtual ~CbmMcbm2018MonitorMuch()
void SetRunStart(Int_t dateIn, Int_t timeIn, Int_t iBinSize=5)
std::vector< Double_t > fvdMsTime
Header time of previous MS per link.
std::vector< TH2 * > fhStsFebAsicHitRateEvo
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM11
[ NbFebs ][ NbSmxPerFeb ]
std::vector< std::vector< Double_t > > fvdFebChanCountsSinceLastRateUpdate
std::vector< TH2 * > fhStsFebChanHitRateEvoLong
TH1 * fhStsFebChanAdcRaw_combined
UInt_t fuCurrDpbId
Current equipment ID, tells from which DPB the current MS is originating.
Double_t fdFebChanCoincidenceLimit
std::vector< std::vector< std::vector< Double_t > > > fvdFebAdcOffs
ADC gain in e-/b, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ].
std::vector< size_t > fvMsComponentsList
std::chrono::steady_clock::time_point ftStartTimeUnix
TH2 * fhPulserMsStatusFieldType
TH1 * fhStsMessType
Histogram manager.
virtual void SetNbMsInTs(size_t uCoreMsNb, size_t uOverlapMsNb)
std::vector< TProfile * > fhStsFebChanAdcCalProf
UInt_t fuCurrentEquipmentId
std::vector< TH1 * > fhStsFebHitRateEvo
UInt_t fuNbStsXyters
Number of StsXyter ASICs.
std::vector< UInt_t > fvuElinkLastTsHit
TS MSB cycle from MS header in 1st MS for DPB.
void SetPrintMessage(Bool_t bPrintMessOn=kTRUE, stsxyter::MessagePrintMask ctrl=stsxyter::MessagePrintMask::msg_print_Hex|stsxyter::MessagePrintMask::msg_print_Human)
constexpr static const Double_t kdSmxErrCoincWinMainM11
std::vector< TH1 * > fhStsFebHitRateEvo_mskch
std::vector< UInt_t > fvuInitialTsMsbCycleHeader
Flag set after seeing MS header in 1st MS for DPB.
std::vector< TH1 * > fhStsFebHitRateEvoLong
std::vector< TH2 * > fhStsFebChanDistT
constexpr static const Double_t kdSmxErrCoincWinNoiseM08
TProfile * fhMsSzTime[kiMaxNbFlibLinks]
std::vector< std::vector< std::vector< Double_t > > > fvdChanLastHitTimeInMs
Number of hits in each MS for each Channel.
Bool_t ScanForNoisyChannels(Double_t dNoiseThreshold=1e3)
---------------------------------------------------------------—///
std::vector< std::vector< TH1 * > > fhStsFebChanDtCoinc
std::vector< std::vector< std::vector< UInt_t > > > fvuChanNbHitsInMs
Header time of each MS.
std::map< UInt_t, UInt_t > fDpbIdIndexMap
Total number of STS DPBs in system.
std::vector< std::vector< ULong64_t > > fvulChanLastHitTime
constexpr static const Double_t kdSmxErrCoincWinNoiseM10
void SetFebChanCoincidenceLimitNs(Double_t dLimitIn)
void SmxErrInitializeVariables()
Methods.
ULong64_t fulCurrentMsIdx
std::vector< TProfile * > fhStsFebSmxErrRatioCopySameAdcEvo
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM10
[ NbFebs ][ NbSmxPerFeb ]
void SetCoincidenceBorder(Double_t dCenterPos, Double_t dBorderVal)
UInt_t fuMaxNbMicroslices
Double_t fdSmxErrCoincWinM09
std::vector< UInt_t > fvuCurrentTsMsbCycle
Current TS MSB for each DPB.
std::vector< TH2 * > fHistPadDistr
Plots per FEB-8.
constexpr static const Double_t kdSmxErrCoincWinMainM07
Coincidence windows for 99.0% tagging (up to 1% of corruption not detected)
Double_t fdCoincCenter
Coincidences in sorted hits.
constexpr static const Double_t kdSmxErrCoincWinMainM08