Skip to content

Commit f1537df

Browse files
fapfap69Antonio Franco
andauthored
Hmpid fix decoder bug (#12391)
* Fix the bug jira ticket O2-4243 * Fix CLang error --------- Co-authored-by: Antonio Franco <antonio.franco@cern.ch>
1 parent 203b5ba commit f1537df

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Detectors/HMPID/reconstruction/src/HmpidDecoder2.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ void HmpidDecoder2::init()
133133
for (int i = 0; i < mNumberOfEquipments; i++) {
134134
mTheEquipments[i]->init();
135135
mTheEquipments[i]->resetPadMap();
136+
mTheEquipments[i]->resetErrors();
136137
}
137138

138139
mDigits.clear();
@@ -1276,7 +1277,7 @@ bool HmpidDecoder2::setUpStream(void* Buffer, long BufferLen)
12761277
}
12771278

12781279
mActualStreamPtr = (uint32_t*)Buffer; // sets the pointer to the Buffer
1279-
mEndStreamPtr = ((uint32_t*)Buffer) + wordsBufferLen; // sets the End of buffer
1280+
mEndStreamPtr = ((uint32_t*)Buffer) + wordsBufferLen - 1; // sets the End of buffer
12801281
mStartStreamPtr = ((uint32_t*)Buffer);
12811282
return (true);
12821283
}

Detectors/HMPID/workflow/src/DataDecoderSpec2.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void DataDecoderTask2::decodeTF(framework::ProcessingContext& pc)
213213
// The stream end !
214214
LOG(debug) << "End Page decoding !";
215215
}
216-
// std::cout << ">>>>" << pointerToTheFirst << "," << mDeco->mDigits.size() << std::endl;
216+
// std::cout << " fDigit=" << pointerToTheFirst << " lDigit=," << mDeco->mDigits.size() << " nDigit=" << mDeco->mDigits.size()-pointerToTheFirst << std::endl;
217217
mTriggers.push_back(o2::hmpid::Trigger(mDeco->mIntReco, pointerToTheFirst, mDeco->mDigits.size() - pointerToTheFirst));
218218
mTotalFrames++;
219219
}

0 commit comments

Comments
 (0)