12#ifndef CbmStar2019MonitorAlgo_H
13#define CbmStar2019MonitorAlgo_H
41 virtual Bool_t
Init();
51 Bool_t
ProcessTs(
const fles::Timeslice& ts);
53 Bool_t
ProcessMs(
const fles::Timeslice& ts,
size_t uMsCompIdx,
size_t uMsIdx);
133 std::chrono::steady_clock::time_point
UInt_t fuGet4Id
Bin size in s for the plots with date as X axis.
TCanvas * fcStarTrigGdpbTsEvo
std::vector< ULong64_t > fvulCurrentEpochCycle
Current epoch index, per DPB.
void ProcessHit(gdpbv100::FullMessage mess)
std::vector< TH2 * > fvhRawCt_gDPB
Debug histo, only in DebugMonitorMode.
std::vector< std::vector< bool > > fvvbGdpbLastResyncPattern
Exclude from dictionnary.
UInt_t fuCurrDpbId
Current equipment ID, tells from which DPB the current MS is originating.
UInt_t fuCurrSector
Index of the DPB from which the MS currently unpacked is coming.
void SetIgnoreCriticalErrors(Bool_t bFlagIn=kTRUE)
std::vector< TH2 * > fvhGdpbPatternMissmatchEvo
UInt_t fuCurrentEquipmentId
Double_t fdMsTime
End Time in ns of current TS Core from the index of the first MS first component.
std::vector< TH2 * > fvhRemapTot_gDPB
Debug histo, only in DebugMonitorMode.
void ProcessSlowCtrl(gdpbv100::Message mess)
std::vector< ULong64_t > fvulStarTsMid
Bool_t ProcessTs(const fles::Timeslice &ts)
std::vector< UInt_t > fvuStarTokenLast
TH2 * fhPatternResync
Debug histo, only in DebugMonitorMode.
ULong64_t fulCurrentMsIdx
TCanvas * fcStarTrigCmdDaqVsTrig
UInt_t fuNrOfChannelsPerFee
Number of channels in each GET4.
std::vector< ULong64_t > fvulGdpbTsFullLast
void SetHistoryHistoSize(UInt_t inHistorySizeSec=1800)
Bool_t ProcessMs(const fles::Timeslice &ts, size_t uMsCompIdx, size_t uMsIdx)
TCanvas * fcStarTriggerRate
ULong64_t fulCurrentTsIdx
Double_t fdTsStopTimeCore
Time in ns of current TS from the index of the first MS first component.
std::vector< TH2 * > fvhGdpbPatternResyncEvo
Debug histo, only in DebugMonitorMode.
CbmStar2019MonitorAlgo(const CbmStar2019MonitorAlgo &)
UInt_t fuNrOfGet4PerFee
Number of FEBs per GDPB.
Bool_t fbIgnoreCriticalErrors
Switch ON the filling of a additional set of histograms.
std::vector< gdpbv100::Message > fvmEpSupprBuffer
Epoch + Epoch Cycle.
std::vector< ULong64_t > fvulGdpbTsLsb
gdpbv100::Message fmLastHit
std::vector< TH2 * > fvhGdpbResyncEvoPerTs
Debug histo, only in DebugMonitorMode.
std::vector< TH2 * > fvhGdpbGet4ChanScm
std::vector< ULong64_t > fvulStarTsMsb
TProfile * fhLostEvtFractEvo
std::vector< TH2 * > fvhGdpbEnableEvoPerTs
Debug histo, only in DebugMonitorMode.
std::vector< std::vector< bool > > fvvbGdpbLastMissmatchPattern
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
std::vector< ULong64_t > fvulStarTsFullLast
void ProcessEpSupprBuffer()
CbmStar2019TofPar * fUnpackPar
Settings from parameter file.
TH2 * fhLostEvtFractPerMsEvo
TCanvas * fcSummary
Canvases.
TH2 * fhGdpbSysMessPattType
UInt_t fuMinTotPulser
Number of channels per GDPB.
static const UInt_t kuBytesPerMessage
UInt_t fuNrOfChannelsPerGet4
Number of GET4s per FEE.
void ProcessSysMess(gdpbv100::FullMessage mess)
Bool_t fbDebugMonitorMode
Control flags.
Bool_t ProcessTs(const fles::Timeslice &ts, size_t)
std::map< gdpbv100::MessageTypes, UInt_t > fmMsgCounter
UInt_t fuHistoryHistoSize
Histograms related variables.
TH2 * fhErrorFractPerMsEvo
void ProcessPattern(gdpbv100::Message mess)
std::vector< ULong64_t > fvulGdpbTsMsb
STAR TRIGGER detection.
std::vector< std::vector< bool > > fvvbGdpbLastEnablePattern
Exclude from dictionnary.
void ProcessError(gdpbv100::FullMessage mess)
std::vector< TProfile * > fvhStarTrigGdpbTsEvo
std::vector< ULong64_t > fvulCurrentEpochFull
Epoch cycle from the Ms Start message and Epoch counter flip.
TH2 * fhLostEvtCntPerMsEvo
std::vector< UInt_t > fuNbMissmatchPattern
Int_t fiBinSizeDatePlots
Start of run time since "epoch" in s, for the plots with date as X axis.
std::vector< TH1 * > fvhTriggerRate
UInt_t fuNrOfChannelsPerGdpb
Number of GET4s per GDPB.
UInt_t fuMsIndex
Start Time in ns of current MS from its index field in header.
void ProcessStarTrig(gdpbv100::Message mess)
TProfile * fhErrorFractEvo
TCanvas * fcStarTrigStarTsEvo
std::vector< TH1 * > fvhTokenMsgType
std::vector< TH2 * > fvhGdpbPatternEnableEvo
Debug histo, only in DebugMonitorMode.
std::vector< TH2 * > fvhGdpbMissmatchEvoPerTs
Exclude from dictionnary.
std::vector< TH2 * > fvhGdpbGet4MessType
void ResetEvolutionHistograms()
std::vector< TH2 * > fvhStarTokenEvo
std::vector< TH2 * > fvhCmdDaqVsTrig
std::chrono::steady_clock::time_point ftStartTimeUnix
void SetPulserTotLimits(UInt_t uMin, UInt_t uMax)
std::vector< TCanvas * > fvcSumGdpbGet4
Bool_t SaveLatencyHistograms(TString fsHistoFileName)
TH2 * fhNbMissPatternPerMs
std::vector< TH2 * > fvhGdpbMissmatchEnaEvoPerTs
Debug histo, only in DebugMonitorMode.
static const Int_t kiMaxNbFlibLinks
Constants.
CbmStar2019MonitorAlgo operator=(const CbmStar2019MonitorAlgo &)
std::vector< TH2 * > fvhRemapChRate_gDPB
std::vector< TH1 * > fvhRemapChCount_gDPB
TH2 * fhPatternEnable
Debug histo, only in DebugMonitorMode.
std::vector< ULong64_t > fvulCurrentEpoch
Data format control: Current time references for each GDPB: merged epoch marker, epoch cycle,...
TH1 * fhMessType
Size in seconds of the evolution histograms.
Bool_t CreateHistograms()
Bool_t fbEpochSinceLastHit
Duplicate Hits detection.
TH2 * fhGdpbAsicSpiCounts
TH2 * fhGdpbEndMsDataLost
std::vector< UInt_t > fvuStarDaqCmdLast
void ProcessEpoch(gdpbv100::Message mess)
UInt_t fuNrOfGet4
Number of channels in each FEE.
std::vector< TProfile * > fvhStarTrigStarTsEvo
UInt_t fuGet4Nr
running number (0 to fuNrOfGet4PerGdpb) of the Get4 chip of a unique GDPB for current message
Int_t fiRunStartDateTimeSec
Index of the sector from which the MS currently unpacked is coming.
UInt_t fuNrOfGet4PerGdpb
Total number of Get4 chips in the system.
std::vector< TH2 * > fvhGdpbResyncEnaEvoPerTs
Debug histo, only in DebugMonitorMode.
TH1 * fhGdpbEndMsBufferNotEmpty
static const UInt_t kuNbChanDiamond
TH2 * fhPatternMissmatch
Debug histo, only in DebugMonitorMode.
Bool_t ReInitContainers()
std::vector< TH2 * > fvhGdpbStateEvoPerTs
Debug histo, only in DebugMonitorMode.
std::vector< TH2 * > fvhGdpbGet4ChanErrors
TCanvas * fcStarTrigStarTokenEvo
std::map< UInt_t, UInt_t > fGdpbIdIndexMap
Total number of GDPBs in the system.
std::vector< TH2 * > fvhRawFt_gDPB
void ProcessEpochCycle(uint64_t ulCycleData)
void SetSectorIndex(Int_t iSector=-1)
std::vector< Bool_t > fvbMaskedComponents
If ON not printout at all for critical errors.
TCanvas * fcStarTrigTokenType
void SetDebugMonitorMode(Bool_t bFlagIn=kTRUE)
std::vector< UInt_t > fvuStarTrigCmdLast
ULong64_t fulStartTs
Starting state book-keeping.
UInt_t fuNrOfFeePerGdpb
gDPB ID to index map
~CbmStar2019MonitorAlgo()
void AddMsComponentToList(size_t component, UShort_t usDetectorId)