12#ifndef CbmMcbm2018UnpackerAlgoSts_H
13#define CbmMcbm2018UnpackerAlgoSts_H
47 virtual Bool_t
Init();
60 Bool_t
ProcessTs(
const fles::Timeslice& ts);
62 Bool_t
ProcessMs(
const fles::Timeslice& ts,
size_t uMsCompIdx,
size_t uMsIdx);
101 std::vector<std::vector<Bool_t>>
105 std::vector<std::vector<std::vector<Int_t>>>
107 std::vector<std::vector<std::vector<Int_t>>>
109 std::vector<std::vector<std::vector<Int_t>>>
121 std::vector<std::vector<bool>>
149 std::chrono::steady_clock::time_point
153 std::vector<stsxyter::FinalHit>
162 std::vector<std::vector<UShort_t>>
164 std::vector<std::vector<UShort_t>>
166 std::vector<std::vector<UShort_t>>
192 const UInt_t& uMsIdx);
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
std::vector< stsxyter::FinalHit > fvmHitsInMs
Hits time-sorting.
std::vector< std::vector< UShort_t > > fvvusLastTsChan
std::vector< Bool_t > fvbMaskedComponents
Switch ON the filling of a additional set of histograms.
CbmMcbm2018UnpackerAlgoSts operator=(const CbmMcbm2018UnpackerAlgoSts &)
Bool_t fbBinningFw
=> Quick and dirty hack for binning FW!!!
std::vector< Double_t > fvdFebAdcOffs
ADC gain in e-/b, [ NbDpb * NbCrobPerDpb * NbFebsPerCrob ].
std::vector< Int_t > fviFebAddress
Pulser flag for each FEB, [ NbDpb * NbCrobPerDpb * NbFebsPerCrob ].
std::vector< CbmStsDigi > fPulserDigiVect
All hits (time in bins, ADC in bins, asic, channel) in last MS, sorted with "<" operator.
std::vector< CbmStsDigi > & GetPulserVector()
UInt_t fuNbFebs
Array to hold the active flag for all CROBs, [ NbDpb ][ NbCrobPerDpb ].
void SetMonitorMode(Bool_t bFlagIn=kTRUE)
Double_t fdCapacityIncFactor
void SetTimeOffsetNs(Double_t dOffsetIn=0.0)
std::vector< Double_t > fvdFebAdcGain
Module side for each FEB, [ NbDpb * NbCrobPerDpb * NbFebsPerCrob ].
TH1 * fhDigisTimeInRun
TS MSB cycle of last hit message for each channel, [ AsicIdx ][ Chan ].
void SetBinningFwFlag(Bool_t bEnable=kTRUE)
=> Quick and dirty hack for binning FW!!!
Int_t fiRunStartDateTimeSec
Index of the DPB from which the MS currently unpacked is coming.
std::vector< Int_t > fviModuleType
Total number of STS modules in the setup.
std::vector< UInt_t > fvuCurrentTsMsbCycle
Current TS MSB for each DPB.
void ProcessEpochInfo(const stsxyter::Message &mess)
UInt_t fuMsIndex
Start Time in ns of current MS from its index field in header.
std::vector< Int_t > fviFebSide
STS address for each FEB, [ NbDpb * NbCrobPerDpb * NbFebsPerCrob ].
Bool_t fbMonitorMode
Control flags.
std::vector< std::vector< std::vector< Int_t > > > fviFebModuleIdx
Number of StsXyter ASICs.
std::vector< Int_t > fviModAddress
Type of each module: 0 for connectors on the right, 1 for connectors on the left.
void SetAdcCut(UInt_t uAdc)
UInt_t fuNbStsXyters
Number of FEBs with StsXyter ASICs.
std::vector< std::vector< UShort_t > > fvvusLastTsMsbCycleChan
TS MSB of last hit message for each channel, [ AsicIdx ][ Chan ].
void ProcessHitInfo(const stsxyter::Message &mess, const UShort_t &usElinkIdx, const UInt_t &uAsicIdx, const UInt_t &uMsIdx)
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.
Bool_t fbDebugMonitorMode
Switch ON the filling of a minimal set of histograms.
void ProcessStatusInfo(const stsxyter::Message &mess, const UInt_t &uAsicIdx)
Bool_t CreateHistograms()
Bool_t ProcessTs(const fles::Timeslice &ts, size_t)
void ProcessTsMsbInfo(const stsxyter::Message &mess, UInt_t uMessIdx=0, UInt_t uMsIdx=0)
std::vector< std::vector< UShort_t > > fvvusLastTsMsbChan
ADC of last hit message for each channel, [ AsicIdx ][ Chan ].
Bool_t ReInitContainers()
~CbmMcbm2018UnpackerAlgoSts()
std::vector< std::vector< std::vector< Int_t > > > fviFebType
STS module side for each FEB, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ], 0 = P, 1 = N,...
std::vector< ULong64_t > fvulCurrentTsMsb
std::map< UInt_t, UInt_t > fDpbIdIndexMap
Total number of STS DPBs in system.
static const UInt_t kuMaxTsMsbDiffDuplicates
Duplicate hits suppression.
Double_t fdTsStopTimeCore
Time in ns of current TS from the index of the first MS first component.
std::chrono::steady_clock::time_point ftStartTimeUnix
std::vector< std::vector< bool > > fvvbMaskedChannels
UInt_t fuNrOfDpbs
STS address for the first strip of each module.
Bool_t ProcessMs(const fles::Timeslice &ts, size_t uMsCompIdx, size_t uMsIdx)
Double_t fdMsTime
End Time in ns of current TS Core from the index of the first MS first component.
UInt_t fuCurrentEquipmentId
CbmMcbm2018StsPar * fUnpackPar
If ON a separate output vector of digi is used for the pulser.
void SetVectCapInc(Double_t dIncFact)
UInt_t fdAdcCut
Vector of channel masks, [ NbFeb ][ NbCHanInFeb ], used only if fbUseChannelMask is true.
CbmMcbm2018UnpackerAlgoSts()
std::vector< bool > fvbFebPulser
FEB type, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ], 0 = A, 1 = B, -1 if inactive.
std::vector< Double_t > fvdTimeOffsetNsAsics
Double_t fdTimeOffsetNs
ADC offset in e-, [ NbDpb * NbCrobPerDpb * NbFebsPerCrob ].
Int_t fiBinSizeDatePlots
Start of run time since "epoch" in s, for the plots with date as X axis.
static const Int_t kiMaxNbFlibLinks
Constants.
void SetTimeOffsetNsAsic(UInt_t uAsicIdx, Double_t dOffsetIn=0.0)
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
ULong64_t fulCurrentMsIdx
std::vector< std::vector< UShort_t > > fvvusLastAdcChan
TS of last hit message for each channel, [ AsicIdx ][ Chan ].
Bool_t ProcessTs(const fles::Timeslice &ts)
std::vector< std::vector< std::vector< Int_t > > > fviFebModuleSide
Idx of the STS module for each FEB, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ], -1 if inactive.
void MaskNoisyChannel(UInt_t uFeb, UInt_t uChan, Bool_t bMasked=kTRUE)
void SeparatePulserOutput(Bool_t bFlagIn)
std::map< stsxyter::MessType, UInt_t > fmMsgCounter
ULong64_t fulCurrentTsIdx
CbmMcbm2018UnpackerAlgoSts(const CbmMcbm2018UnpackerAlgoSts &)