12#ifndef CbmCosy2019UnpackerAlgoHodo_H
13#define CbmCosy2019UnpackerAlgoHodo_H
45 virtual Bool_t
Init();
55 Bool_t
ProcessTs(
const fles::Timeslice& ts);
57 Bool_t
ProcessMs(
const fles::Timeslice& ts,
size_t uMsCompIdx,
size_t uMsIdx);
84 std::vector<std::vector<Bool_t>>
88 std::vector<std::vector<std::vector<Int_t>>>
90 std::vector<std::vector<std::vector<Double_t>>>
92 std::vector<std::vector<std::vector<Double_t>>>
125 std::chrono::steady_clock::time_point
129 std::vector<stsxyter::FinalHit>
146 const UInt_t& uMsIdx);
UInt_t fuCurrentEquipmentId
std::chrono::steady_clock::time_point ftStartTimeUnix
CbmCosy2019UnpackerAlgoHodo(const CbmCosy2019UnpackerAlgoHodo &)
std::vector< std::vector< std::vector< Double_t > > > fvdFebAdcGain
Idx of the STS module for each FEB, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ], -1 if inactive.
void SetVectCapInc(Double_t dIncFact)
void AddMsComponentToList(size_t component, UShort_t usDetectorId)
std::map< UInt_t, UInt_t > fDpbIdIndexMap
Total number of STS DPBs in system.
void ProcessStatusInfo(const stsxyter::Message &mess)
Bool_t ProcessTs(const fles::Timeslice &ts, size_t)
std::vector< std::vector< std::vector< Double_t > > > fvdFebAdcOffs
ADC gain in e-/b, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ].
std::vector< ULong64_t > fvulCurrentTsMsb
void SetTimeOffsetNs(Double_t dOffsetIn=0.0)
std::vector< Double_t > fvdTimeOffsetNsAsics
std::vector< std::vector< Bool_t > > fvbCrobActiveFlag
Map of DPB Identifier to DPB index.
void SetTimeOffsetNsAsic(UInt_t uAsicIdx, Double_t dOffsetIn=0.0)
void ProcessTsMsbInfo(const stsxyter::Message &mess, UInt_t uMessIdx=0, UInt_t uMsIdx=0)
CbmCosy2019HodoPar * fUnpackPar
Settings from parameter file.
void ProcessEpochInfo(const stsxyter::Message &mess)
std::vector< stsxyter::FinalHit > fvmHitsInMs
Hits time-sorting.
Double_t fdCapacityIncFactor
Double_t fdTimeOffsetNs
Module for each FEB, [ NbDpb * NbCrobPerDpb * NbFebsPerCrob ].
std::vector< Int_t > fviFebAddress
ADC offset in e-, [ NbDpb ][ NbCrobPerDpb ][ NbFebsPerCrob ].
UInt_t fuNrOfDpbs
STS address for the first strip of each module.
std::vector< Int_t > fviFebModule
STS address for each FEB, [ NbDpb * NbCrobPerDpb * NbFebsPerCrob ].
~CbmCosy2019UnpackerAlgoHodo()
static const Int_t kiMaxNbFlibLinks
Constants.
ULong64_t fulCurrentTsIdx
UInt_t fuCurrDpbIdx
Temp holder until Current equipment ID is properly filled in MS.
Double_t fdTsStopTimeCore
Time in ns of current TS from the index of the first MS first component.
std::vector< Bool_t > fvbMaskedComponents
Switch ON the filling of a additional set of histograms.
Bool_t fbDebugMonitorMode
Switch ON the filling of a minimal set of histograms.
ULong64_t fulCurrentMsIdx
Bool_t CreateHistograms()
std::vector< std::vector< std::vector< Int_t > > > fviFebModuleIdx
Number of StsXyter ASICs.
Int_t fiRunStartDateTimeSec
Index of the DPB from which the MS currently unpacked is coming.
std::map< stsxyter::MessType, UInt_t > fmMsgCounter
UInt_t fuMsIndex
Start Time in ns of current MS from its index field in header.
TH1 * fhDigisTimeInRun
All hits (time in bins, ADC in bins, asic, channel) in last MS, sorted with "<" operator.
Int_t fiBinSizeDatePlots
Start of run time since "epoch" in s, for the plots with date as X axis.
std::vector< UInt_t > fvuCurrentTsMsbCycle
Current TS MSB for each DPB.
Double_t fdMsTime
End Time in ns of current TS Core from the index of the first MS first component.
UInt_t fuNbFebs
Array to hold the active flag for all CROBs, [ NbDpb ][ NbCrobPerDpb ].
Bool_t ReInitContainers()
UInt_t fuCurrDpbId
Current equipment ID, tells from which DPB the current MS is originating.
std::vector< Int_t > fviModAddress
Total number of STS modules in the setup.
CbmCosy2019UnpackerAlgoHodo()
UInt_t fuNbStsXyters
Number of FEBs with StsXyter ASICs.
Bool_t ProcessTs(const fles::Timeslice &ts)
void SetMonitorMode(Bool_t bFlagIn=kTRUE)
Bool_t fbMonitorMode
Control flags.
void ProcessHitInfo(const stsxyter::Message &mess, const UShort_t &usElinkIdx, const UInt_t &uAsicIdx, const UInt_t &uMsIdx)
Bool_t ProcessMs(const fles::Timeslice &ts, size_t uMsCompIdx, size_t uMsIdx)
CbmCosy2019UnpackerAlgoHodo operator=(const CbmCosy2019UnpackerAlgoHodo &)