Go to the documentation of this file.
8 #ifndef CBMMCBM2018MONITORSTS_H
9 #define CBMMCBM2018MONITORSTS_H
11 #include "Timeslice.hpp"
30 class CbmCern2017UnpackParSts;
37 virtual Bool_t
Init();
39 virtual Bool_t
DoUnpack(
const fles::Timeslice& ts,
size_t component);
52 virtual void SetNbMsInTs(
size_t uCoreMsNb,
size_t uOverlapMsNb);
59 void SetRunStart(Int_t dateIn, Int_t timeIn, Int_t iBinSize = 5);
112 std::map<UInt_t, UInt_t>
114 std::vector<std::vector<Bool_t>>
118 std::vector<std::vector<std::vector<Int_t>>>
120 std::vector<std::vector<std::vector<Int_t>>>
122 std::vector<std::vector<std::vector<Int_t>>>
124 std::vector<std::vector<std::vector<Double_t>>>
126 std::vector<std::vector<std::vector<Double_t>>>
166 std::vector<std::vector<ULong64_t>>
169 std::vector<std::vector<Double_t>>
173 std::vector<std::vector<std::vector<UInt_t>>>
175 std::vector<std::vector<std::vector<Double_t>>>
177 std::vector<std::vector<std::vector<UShort_t>>>
185 std::chrono::steady_clock::time_point
188 std::vector<stsxyter::FinalHit>
191 std::vector<std::vector<stsxyter::FinalHit>>
193 std::vector<std::vector<stsxyter::FinalHit>>
290 std::vector<std::vector<std::vector<Double_t>>>
292 std::vector<std::vector<UInt_t>>
294 std::vector<std::vector<UInt_t>>
296 std::vector<std::vector<UInt_t>>
298 std::vector<std::vector<UInt_t>>
300 std::vector<std::vector<UInt_t>>
353 Bool_t
ProcessStsMs(
const fles::Timeslice& ts,
size_t uMsComp, UInt_t uMsIdx);
356 const UShort_t& usElinkIdx,
357 const UInt_t& uAsicIdx,
358 const UInt_t& uMsIdx);
373 #endif // CBMMCBM2018MONITORSTS_H
TH2 * fhStsFebAsicHitCounts
UInt_t fuNrOfDpbs
STS address for the first strip of each module.
TH2 * fhStsMessTypePerDpb
Bool_t fbLongHistoEnable
Rate evolution histos.
constexpr static const Double_t kdSmxErrCoincWinNoiseM11
constexpr static const Double_t kdSmxErrCoincWinMainM10
void FillTsMsbInfo(stsxyter::Message mess, UInt_t uMessIdx=0, UInt_t uMsIdx=0)
std::vector< std::vector< UInt_t > > fvuSmxErrIdxLastHit
[ NbFebs ][ NbSmxPerFeb ]
virtual Bool_t DoUnpack(const fles::Timeslice &ts, size_t component)
TH2 * fhStsAllFebsHitRateEvo
std::map< UInt_t, UInt_t > fDpbIdIndexMap
Total number of STS DPBs in system.
UInt_t fuMaxNbMicroslices
constexpr static const Double_t kdSmxErrCoincWinMainM11
std::vector< std::vector< Double_t > > fdStsFebChanLastTimeForDist
std::vector< TProfile2D * > fhStsFebSmxErrRatioCopyEvoAsic
std::vector< std::vector< std::vector< Double_t > > > fvdSmxErrTimeLastHits
Int_t fiRunStartDateTimeSec
Index of the DPB from which the MS currently unpacked is coming.
constexpr static const Double_t kdSmxErrCoincWinNoiseM09
std::vector< TH2 * > fhStsFebChanHitRateEvoLong
UInt_t fuCurrentEquipmentId
UInt_t fuNbStsXyters
Number of StsXyter ASICs.
TH1 * fhMsSz[kiMaxNbFlibLinks]
TH2 * fhMsErrorsEvo
Binning FW error flag.
virtual void SetNbMsInTs(size_t uCoreMsNb, size_t uOverlapMsNb)
CbmMcbm2018MonitorSts(const CbmMcbm2018MonitorSts &)
static const Int_t kiMaxNbFlibLinks
ADC offset in e-, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ].
void SetRunStart(Int_t dateIn, Int_t timeIn, Int_t iBinSize=5)
constexpr static const Double_t kdSmxErrCoincWinNoiseM08
constexpr static const Double_t kdSmxErrCoincWinNoiseM07
Coincidence windows 99.9% tagging (up to 0.1% of corruption not detected)
std::vector< TH1 * > fhStsFebHitRateEvoLong
Bool_t fbSmx2ErrorUseNoiseLevels
SXM 2.0 logic error detection and tagging, 1 eLink case.
Int_t fiTimeIntervalRateUpdate
Mean Rate per channel plots.
std::vector< size_t > fvMsComponentsList
TH2 * fhStsMsStatusFieldType
Bool_t ReInitContainers()
std::vector< TH2 * > fhStsFebChanDistT
std::vector< std::vector< std::vector< Double_t > > > fvdFebAdcOffs
ADC gain in e-/b, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ].
Double_t fdCoincCenter
Coincidences in sorted hits.
Double_t fdSmxErrCoincWinM11
std::vector< TProfile2D * > fhStsFebSmxErrRatioCopySameAdcEvoAsic
TH1 * fhStsMessType
Histogram manager.
void UseNoiseLimitsSmx2LogicError(Bool_t bUseNoise=kTRUE)
std::vector< TH2 * > fhStsFebAsicMissEvtEvo
std::vector< TProfile * > fhStsFebChanCloseHitsRatio
static const UInt_t kuSmxErrCoincWinNbHits
std::vector< TH2 * > fhStsFebAsicHitRateEvo
void FillEpochInfo(stsxyter::Message mess)
std::vector< std::vector< Bool_t > > fvbCrobActiveFlag
Map of DPB Identifier to DPB index.
void SetLongDurationLimits(UInt_t uDurationSeconds=3600, UInt_t uBinSize=1)
constexpr static const Double_t kdSmxErrCoincWinMainM09
void SetBinningFwFlag(Bool_t bEnable=kTRUE)
=> Quick and dirty hack for binning FW!!!
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM08
[ NbFebs ][ NbSmxPerFeb ]
Double_t fdSmxErrCoincWinM10
std::vector< TCanvas * > fvcStsSmxErr
std::vector< TProfile * > fhStsFebChanHitRateProf
Bool_t fbPrintMessages
Task configuration values.
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM11
[ NbFebs ][ NbSmxPerFeb ]
std::vector< TH1 * > fhStsFebHitRateEvo
std::vector< std::vector< stsxyter::FinalHit > > fvmAsicHitsInMs
All hits (time in bins, ADC in bins, asic, channel) in last TS, sorted with "<" operator.
TH2 * fhStsHitsElinkPerDpb
std::vector< std::vector< Double_t > > fvdChanLastHitTime
Last hit time in bins for each Channel.
std::vector< TH2 * > fhStsFebChanHitRateEvo
Double_t fdSmxErrCoincWinM07
Tagging variables.
std::vector< ULong64_t > fvulCurrentTsMsb
Bin size in s for the plots with date as X axis.
std::vector< TH1 * > fhStsFebMissEvtEvo
Double_t fdStartTime
Last hit ADC in bins in each MS for each Channel.
std::vector< std::vector< std::vector< Double_t > > > fvdFebAdcGain
FEB type, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ], 0 = A, 1 = B, -1 if inactive.
Bool_t ProcessStsMs(const fles::Timeslice &ts, size_t uMsComp, UInt_t uMsIdx)
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM10
[ NbFebs ][ NbSmxPerFeb ]
void SetFebChanCoincidenceLimitNs(Double_t dLimitIn)
std::vector< Bool_t > fvbMaskedComponents
void SetPrintMessage(Bool_t bPrintMessOn=kTRUE, stsxyter::MessagePrintMask ctrl=stsxyter::MessagePrintMask::msg_print_Hex|stsxyter::MessagePrintMask::msg_print_Human)
UInt_t fuLongHistoBinSizeSec
void SetEnableCheckBugSmx20(Bool_t bEnable=kTRUE)
TH2 * fhStsAllAsicsHitRateEvo
std::vector< std::vector< ULong64_t > > fvulChanLastHitTime
std::vector< TH2 * > fhStsFebChanMissEvtEvo
std::vector< TH1 * > fhStsFebChanCntRaw
CbmMcbm2018StsPar * fUnpackParSts
/** Ignore Overlap Ms: all fuOverlapMsNb MS at the end of timeslice **/
constexpr static const Double_t kdSmxErrCoincWinMainM07
Coincidence windows for 99.0% tagging (up to 1% of corruption not detected)
ULong64_t fulCurrentTsIdx
TS/MS info.
std::vector< TH2 * > fhStsFebChanRawTs
void SaveAllHistos(TString sFileName="")
CbmMcbm2018MonitorSts operator=(const CbmMcbm2018MonitorSts &)
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 SetMsOverlap(size_t uOverlapMsNb=1)
Bool_t ScanForNoisyChannels(Double_t dNoiseThreshold=1e3)
---------------------------------------------------------------—///
std::vector< Double_t > fvdMsTime
Header time of previous MS per link.
std::vector< std::vector< std::vector< Int_t > > > fviFebModuleIdx
Number of StsXyter ASICs.
constexpr static const Double_t kdSmxErrCoincWinNoiseM10
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
MessagePrintMask
Printout control.
std::vector< TH2 * > fhStsFebAsicHitRateEvoLong
stsxyter::MessagePrintMask fPrintMessCtrl
std::vector< TProfile * > fhStsFebChanAdcRawProf
UInt_t fuCurrDpbId
Current equipment ID, tells from which DPB the current MS is originating.
std::vector< TProfile * > fhStsFebSmxErrRatioCopySameAdcEvo
std::vector< std::vector< std::vector< Int_t > > > fviFebModuleSide
Idx of the STS module for each FEB, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ], -1 if inactive.
std::vector< TH2 * > fhStsFebChanAdcRaw
Double_t fdSmxErrCoincWinM08
TH2 * fhStsMessTypePerElink
Double_t fdSmxErrCoincWinM09
std::vector< Double_t > fvdFebTimeSecLastRateUpdate
Bool_t fbEnableCheckBugSmx20
std::vector< TH2 * > fhStsFebChanMissEvt
Double_t fdFebChanCoincidenceLimit
Plots per FEB-8.
std::vector< UInt_t > fvuCurrentTsMsbCycle
Current TS MSB for each DPB.
Bool_t InitStsParameters()
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM07
[ NbFebs ][ NbSmxPerFeb ][ kuSmxErrCoincWinNbHits ]
std::vector< TCanvas * > fvcStsSumm
Canvases.
ULong64_t fulCurrentMsIdx
std::chrono::steady_clock::time_point ftStartTimeUnix
std::vector< TProfile * > fhStsFebSmxErrRatioEvo
Histograms.
std::vector< TProfile2D * > fhStsFebSmxErrRatioEvoAsic
void SetHistoFileName(TString sFileName="data/SetupHistos.root")
void UseDaqBuffer(Bool_t)
constexpr static const Double_t kdSmxErrCoincWinMainM08
UInt_t fuLongHistoNbSeconds
void SmxErrInitializeVariables()
Methods.
std::vector< std::vector< UInt_t > > fvuSmxErrIdxFirstHitM09
[ NbFebs ][ NbSmxPerFeb ]
static const UInt_t kuBytesPerMessage
std::vector< UInt_t > fvuInitialHeaderDone
Current TS MSB cycle for DPB.
void SetIgnoreOverlapMs(Bool_t bFlagIn=kTRUE)
virtual ~CbmMcbm2018MonitorSts()
std::vector< std::vector< std::vector< UShort_t > > > fvusChanLastHitAdcInMs
Last hit time in bins in each MS for each Channel.
CbmHistManager * fHM
Histograms.
std::vector< std::vector< std::vector< Double_t > > > fvdChanLastHitTimeInMs
Number of hits in each MS for each Channel.
UInt_t fuNbFebs
Array to hold the active flag for all CROBs, [ NbDpb ][ NbCrobPerDpb ].
void SavePulserHistos(TString sFileName="")
std::vector< Int_t > fviFebCountsSinceLastRateUpdate
std::vector< Int_t > fviModuleType
Total number of STS modules in the setup.
std::vector< Int_t > fviModAddress
Type of each module: 0 for connectors on the right, 1 for connectors on the left.
constexpr static const Double_t kdSmxErrCoincWinBeg
std::vector< std::vector< std::vector< Int_t > > > fviFebType
STS module side for each FEB, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ], 0 = P, 1 = N,...
Int_t fiBinSizeDatePlots
Start of run time since "epoch" in s, for the plots with date as X axis.
std::vector< TProfile * > fhStsFebSmxErrRatioCopyEvo
void SaveStsHistos(TString sFileName="")
Bool_t fbBinningFw
=> Quick and dirty hack for binning FW!!!
TH2 * fhStsSysMessTypePerDpb
std::vector< UInt_t > fvuInitialTsMsbCycleHeader
Flag set after seeing MS header in 1st MS for DPB.
TH2 * fhStsStatusMessType
void FillHitInfo(stsxyter::Message mess, const UShort_t &usElinkIdx, const UInt_t &uAsicIdx, const UInt_t &uMsIdx)
std::vector< UInt_t > fvuElinkLastTsHit
TS MSB cycle from MS header in 1st MS for DPB.
std::vector< TH2 * > fhStsFebChanCloseHitsCounts
TProfile * fhMsSzTime[kiMaxNbFlibLinks]
std::vector< Double_t > fvdPrevMsTime
Last hit time in ns for each Channel.
virtual void AddMsComponentToList(size_t component, UShort_t usDetectorId)
std::vector< TH1 * > fhStsFebChanCntRawGood
TString fsHistoFileFullname
std::vector< std::vector< Double_t > > fvdFebChanCountsSinceLastRateUpdate
std::map< stsxyter::MessType, UInt_t > fmMsgCounter
Current data properties.
std::vector< std::vector< std::vector< UInt_t > > > fvuChanNbHitsInMs
Header time of each MS.
Bool_t SmxErrCheckCoinc(UInt_t uFebIdx, UInt_t uAsicIdx, Double_t dNewHitTime)
std::vector< stsxyter::FinalHit > fvmHitsInMs
Hits time-sorting.