Go to the documentation of this file.
8 #ifndef CbmMcbm2018UnpackerAlgoMuch_H
9 #define CbmMcbm2018UnpackerAlgoMuch_H
42 virtual Bool_t
Init();
52 Bool_t
ProcessTs(
const fles::Timeslice& ts);
53 Bool_t
ProcessTs(
const fles::Timeslice& ts,
size_t ) {
56 Bool_t
ProcessMs(
const fles::Timeslice& ts,
size_t uMsCompIdx,
size_t uMsIdx);
104 std::map<UInt_t, UInt_t>
106 std::vector<std::vector<Bool_t>>
117 std::vector<std::vector<bool>>
153 std::chrono::steady_clock::time_point
156 std::vector<stsxyter::FinalHit>
163 std::vector<std::vector<UShort_t>>
165 std::vector<std::vector<UShort_t>>
167 std::vector<std::vector<UShort_t>>
169 std::vector<std::vector<UShort_t>>
186 const UShort_t& usElinkIdx,
187 const UInt_t& uAsicIdx,
188 const UInt_t& uMsIdx);
std::map< stsxyter::MessType, UInt_t > fmMsgCounter
void MaskNoisyChannel(UInt_t uFeb, UInt_t uChan, Bool_t bMasked=kTRUE)
UInt_t fdAdcCut
Vector of channel masks, [ NbFeb ][ NbCHanInFeb ], used only if fbUseChannelMask is true.
Bool_t CreateHistograms()
void ProcessHitInfo(const stsxyter::Message &mess, const UShort_t &usElinkIdx, const UInt_t &uAsicIdx, const UInt_t &uMsIdx)
Bool_t fbBinningFw
=> Quick and dirty hack for binning FW!!!
std::vector< ULong64_t > fvulCurrentTsMsb
void EnableAsicType(Int_t flag=0)
Bool_t fbMonitorMode
Control flags.
static const UInt_t kuMaxTsMsbDiffDuplicates
All hits (time in bins, ADC in bins, asic, channel) in last MS, sorted with "<" operator.
std::vector< std::vector< UShort_t > > fvvusLastTsMsbCycleChan
TS MSB of last hit message for each channel, [ AsicIdx ][ Chan ].
Bool_t ProcessTs(const fles::Timeslice &ts)
CbmMcbm2018UnpackerAlgoMuch operator=(const CbmMcbm2018UnpackerAlgoMuch &)
Bool_t fbDebugMonitorMode
Switch ON the filling of a minimal set of histograms.
void SetVectCapInc(Double_t dIncFact)
std::chrono::steady_clock::time_point ftStartTimeUnix
void SetTimeOffsetNsAsic(UInt_t uAsicIdx, Double_t dOffsetIn=0.0)
void ProcessStatusInfo(const stsxyter::Message &mess, const UInt_t &uAsicIdx)
std::vector< UInt_t > fvuCurrentTsMsbCycle
Current TS MSB for each DPB.
~CbmMcbm2018UnpackerAlgoMuch()
void SetTimeOffsetNs(Double_t dOffsetIn=0.0)
Bool_t ProcessMs(const fles::Timeslice &ts, size_t uMsCompIdx, size_t uMsIdx)
std::map< UInt_t, UInt_t > fDpbIdIndexMap
Total number of STS DPBs in system.
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
void SetAdcCut(UInt_t uAdc)
void ProcessEpochInfo(const stsxyter::Message &mess)
Bool_t ReInitContainers()
std::vector< std::vector< UShort_t > > fvvusLastTsChan
Limit how many different TS_MSB are checked for same duplicate hit => set to 1 uS.
std::vector< std::vector< UShort_t > > fvvusLastAdcChan
TS of last hit message for each channel, [ AsicIdx ][ Chan ].
UInt_t fuCurrDpbId
Current equipment ID, tells from which DPB the current MS is originating.
Double_t fdCapacityIncFactor
UInt_t fuMsIndex
Start Time in ns of current MS from its index field in header.
Double_t fdTimeOffsetNs
Number of StsXyter ASICs.
CbmMcbm2018MuchPar * fUnpackPar
Switch to smx2.0/smx2.1 data-> fiFlag = 0 for 2.0 and fiFlag = 1 for 2.1.
void ProcessTsMsbInfo(const stsxyter::Message &mess, UInt_t uMessIdx=0, UInt_t uMsIdx=0)
std::vector< std::vector< bool > > fvvbMaskedChannels
CbmMcbm2018UnpackerAlgoMuch(const CbmMcbm2018UnpackerAlgoMuch &)
Double_t fdTsStopTimeCore
Time in ns of current TS from the index of the first MS first component.
void SetMonitorMode(Bool_t bFlagIn=kTRUE)
ULong64_t fulCurrentTsIdx
UInt_t fuNbStsXyters
Number of FEBs with StsXyter ASICs.
static const Int_t kiMaxNbFlibLinks
Constants.
TH1 * fhDigisTimeInRun
TS MSB cycle of last hit message for each channel, [ AsicIdx ][ Chan ].
std::vector< stsxyter::FinalHit > fvmHitsInMs
Hits time-sorting.
Double_t fdMsTime
End Time in ns of current TS Core from the index of the first MS first component.
Bool_t ProcessTs(const fles::Timeslice &ts, size_t)
UInt_t fuCurrentEquipmentId
std::vector< std::vector< UShort_t > > fvvusLastTsMsbChan
ADC of last hit message for each channel, [ AsicIdx ][ Chan ].
CbmMuchBeamTimeDigi * CreateMuchDigi(stsxyter::FinalHit *)
Int_t fiRunStartDateTimeSec
Index of the DPB from which the MS currently unpacked is coming.
std::vector< Bool_t > fvbMaskedComponents
Switch ON the filling of a additional set of histograms.
CbmMcbm2018UnpackerAlgoMuch()
std::vector< Double_t > fvdTimeOffsetNsAsics
UInt_t fuNbFebs
Array to hold the active flag for all CROBs, [ NbDpb ][ NbCrobPerDpb ].
ULong64_t fulCurrentMsIdx
void SetBinningFwFlag(Bool_t bEnable=kTRUE)
=> Quick and dirty hack for binning FW!!!
std::vector< std::vector< Bool_t > > fvbCrobActiveFlag
Map of DPB Identifier to DPB index.
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
Int_t fiBinSizeDatePlots
Start of run time since "epoch" in s, for the plots with date as X axis.