Skip to content
Snippets Groups Projects
Commit f499a27a authored by Dominik Smith's avatar Dominik Smith Committed by Pierre-Alain Loizeau
Browse files

Removed fhStsAsicTsMsb from CbmStsUnpackMonitor and CbmStsUnpackAlgo.

parent b24d66b1
No related branches found
No related tags found
1 merge request!415Include all unpackers in the new /reco/steer/ based scheme
......@@ -457,7 +457,6 @@ void CbmStsUnpackAlgo::processHitInfo(const stsxyter::Message& mess)
// Get the asix index
uint32_t uAsicIdx = getAsicIndex(fuCurrDpbIdx, uCrobIdx, usElinkIdx);
const uint16_t usChan = mess.GetHitChannel();
const uint16_t usRawAdc = mess.GetHitAdc();
const uint16_t usRawTs = mess.GetHitTimeBinning();
......@@ -510,7 +509,6 @@ void CbmStsUnpackAlgo::processHitInfo(const stsxyter::Message& mess)
fviFebSide[uFebIdx]);
}
fOutputVec.emplace_back(CbmStsDigi(fviFebAddress[uFebIdx], uChanInMod, ulTimeInNs, dCalAdc));
// REMARK This seems to be double looping, I do not see any reason here, to first store the stsxyter hits in a vector over which we loop afterwards again. May be I miss something @sts-experts?
// fvmHitsInMs.push_back(stsxyter::FinalHit(ulHitTime, usRawAdc, uAsicIdx, usChan, fuCurrDpbIdx, uCrobIdx));
......@@ -617,11 +615,6 @@ void CbmStsUnpackAlgo::processTsMsbInfo(const stsxyter::Message& mess, uint32_t
fMonitor->FillStsDpbRawTsMsb(fuCurrDpbIdx, fvulCurrentTsMsb[fuCurrDpbIdx]);
fMonitor->FillStsDpbRawTsMsbSx(fuCurrDpbIdx, fvulCurrentTsMsb[fuCurrDpbIdx]);
fMonitor->FillStsDpbRawTsMsbDpb(fuCurrDpbIdx, fvulCurrentTsMsb[fuCurrDpbIdx]);
const uint16_t usElinkIdx = mess.GetStatusLink();
const uint32_t uCrobIdx = usElinkIdx / fNrElinksPerCrob;
const uint32_t uAsicIdx = getAsicIndex(fuCurrDpbIdx, uCrobIdx, usElinkIdx);
fMonitor->FillStsAsicTsMsb(fvulCurrentTsMsb[fuCurrDpbIdx], uAsicIdx);
}
}
......
......@@ -441,12 +441,6 @@ Bool_t CbmStsUnpackMonitor::CreateDebugHistograms(CbmMcbm2018StsPar* pUnpackPar)
fhStsDpbRawTsMsbDpb->SetCanExtend(TH2::kAllAxes);
AddHistoToVector(fhStsDpbRawTsMsbDpb, "");
sHistName = "fhStsAsicTsMsb";
title = "MSB messages for each Asic; TsMsb; Asic; Count []";
fhStsAsicTsMsb = new TH2I(sHistName, title, 10, 0, 10, uNbAsics, 0, uNbAsics);
fhStsAsicTsMsb->SetCanExtend(TH2::kAllAxes);
AddHistoToVector(fhStsAsicTsMsb, "");
/// Asic plots
/// All histos per Asic: with channels or ASIC as axis!!
for (UInt_t uAsicIdx = 0; uAsicIdx < uNbAsics; ++uAsicIdx) {
......@@ -502,7 +496,6 @@ Bool_t CbmStsUnpackMonitor::ResetDebugHistograms()
fhStsDpbRawTsMsb->Reset();
fhStsDpbRawTsMsbSx->Reset();
fhStsDpbRawTsMsbDpb->Reset();
fhStsAsicTsMsb->Reset();
for (UInt_t uAsicIdx = 0; uAsicIdx < fvhStsChanCntRaw.size(); ++uAsicIdx) {
fvhStsChanCntRaw[uAsicIdx]->Reset();
......
......@@ -164,7 +164,6 @@ public:
{
fhStsDpbRawTsMsbDpb->Fill(uCurrDpbIdx, (ulCurrentTsMsb >> 5));
}
void FillStsAsicTsMsb(ULong_t ulCurrentTsMsb, UInt_t uAsicIdx) { fhStsAsicTsMsb->Fill(ulCurrentTsMsb, uAsicIdx); }
///Fill debugging "per Asic" histogram vectors
void FillStsChanCntRaw(UInt_t uAsicIdx, UShort_t usChan) { fvhStsChanCntRaw[uAsicIdx]->Fill(usChan); }
......@@ -260,7 +259,6 @@ private:
TH2* fhStsDpbRawTsMsb = nullptr;
TH2* fhStsDpbRawTsMsbSx = nullptr;
TH2* fhStsDpbRawTsMsbDpb = nullptr;
TH2* fhStsAsicTsMsb = nullptr;
static const UInt_t kiMaxNbFlibLinks = 32;
TH1* fvhMsSize[kiMaxNbFlibLinks];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment