Skip to content

Commit d2b9c3d

Browse files
dstoccosawenzel
authored andcommitted
Correctly encode the first event
1 parent 7c281f8 commit d2b9c3d

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Detectors/MUON/MID/Raw/src/Encoder.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,7 @@ void Encoder::hbTrigger(const InteractionRecord& ir)
4545
{
4646
/// Processes HB trigger
4747
if (mLastIR.isDummy()) {
48-
// This is the first HB
49-
for (uint16_t feeId = 0; feeId < crateparams::sNGBTs; ++feeId) {
50-
mGBTEncoders[feeId].processTrigger(o2::constants::lhc::LHCMaxBunches, raw::sORB);
51-
}
5248
mLastIR = o2::raw::HBFUtils::Instance().getFirstIR();
53-
return;
5449
}
5550

5651
std::vector<InteractionRecord> HBIRVec;

Detectors/MUON/MID/Raw/test/testRaw.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ BOOST_AUTO_TEST_CASE(SmallSample)
230230

231231
std::map<o2::InteractionRecord, std::vector<o2::mid::ColumnData>> inData;
232232
// Small standard event
233-
o2::InteractionRecord ir(100, 0);
233+
o2::InteractionRecord ir(100, 1);
234234

235235
// Crate 5 link 0
236236
inData[ir].emplace_back(getColData(2, 4, 0x1, 0xFFFF));
@@ -241,7 +241,7 @@ BOOST_AUTO_TEST_CASE(SmallSample)
241241
// Crate 10 link 1 and crate 11 link 1
242242
inData[ir].emplace_back(getColData(41, 2, 0xFF0F, 0, 0xF0FF, 0xF));
243243
ir.bc = 200;
244-
ir.orbit = 1;
244+
ir.orbit = 2;
245245
// Crate 12 link 1
246246
inData[ir].emplace_back(getColData(70, 3, 0xFF00, 0xFF));
247247

@@ -255,7 +255,7 @@ BOOST_AUTO_TEST_CASE(LargeBufferSample)
255255
o2::mid::Mapping mapping;
256256
std::map<o2::InteractionRecord, std::vector<o2::mid::ColumnData>> inData;
257257
// Big event that should pass the 8kB
258-
o2::InteractionRecord ir(0, 0);
258+
o2::InteractionRecord ir(0, 1);
259259
for (int irepeat = 0; irepeat < 4000; ++irepeat) {
260260
++ir;
261261
for (int ide = 0; ide < o2::mid::detparams::NDetectionElements; ++ide) {

0 commit comments

Comments
 (0)