Skip to content

Commit c8aced8

Browse files
committed
fix in tof digit task
1 parent f2fd020 commit c8aced8

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

Modules/TOF/src/TaskDigits.cxx

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -292,27 +292,27 @@ void TaskDigits::monitorData(o2::framework::ProcessingContext& ctx)
292292
mHistoOrbitID->Fill(row.mFirstIR.orbit % mRangeMaxOrbitId, crate);
293293
mHistoBCID->Fill(row.mFirstIR.bc, crate);
294294
mHistoEventCounter->Fill(row.mEventCounter % mRangeMaxEventCounter, crate);
295+
}
295296

296-
// check patterns
297-
int trmMult[72][10] = { 0 }; // multiplicity in TRM and ROW
298-
for (auto const& digit : digits_in_row) {
299-
if (digit.getChannel() < 0) {
300-
LOG(error) << "No valid channel";
301-
continue;
302-
}
303-
int ech = o2::tof::Geo::getECHFromCH(digit.getChannel());
304-
int crate = o2::tof::Geo::getCrateFromECH(ech);
305-
int trm = o2::tof::Geo::getTRMFromECH(ech) - 3;
306-
trmMult[crate][trm]++;
297+
// check patterns
298+
int trmMult[72][10] = { 0 }; // multiplicity in TRM and ROW
299+
for (auto const& digit : digits_in_row) {
300+
if (digit.getChannel() < 0) {
301+
LOG(error) << "No valid channel";
302+
continue;
307303
}
304+
int ech = o2::tof::Geo::getECHFromCH(digit.getChannel());
305+
int crate = o2::tof::Geo::getCrateFromECH(ech);
306+
int trm = o2::tof::Geo::getTRMFromECH(ech) - 3;
307+
trmMult[crate][trm]++;
308+
}
308309

309-
for (int crate = 0; crate < 72; crate++) {
310-
if (row.isEmptyCrate(crate)) { // Only for active crates
311-
continue;
312-
}
313-
for (int trm = 0; trm < 10; trm++) {
314-
mHistoDecodingCrate[trm]->Fill(0., crate, trmMult[crate][trm]);
315-
}
310+
for (int crate = 0; crate < 72; crate++) {
311+
if (row.isEmptyCrate(crate)) { // Only for active crates
312+
continue;
313+
}
314+
for (int trm = 0; trm < 10; trm++) {
315+
mHistoDecodingCrate[trm]->Fill(0., crate, trmMult[crate][trm]);
316316
}
317317

318318
if (mFlagEnableDiagnostic) {
@@ -330,11 +330,11 @@ void TaskDigits::monitorData(o2::framework::ProcessingContext& ctx)
330330

331331
if (el > 28) { // new slot
332332
slot = el - 28;
333-
} else if (slot > -1 && lastslot != slot) { // fill only one time per TRM and row
333+
} else if (slot > 1 && lastslot != slot) { // fill only one time per TRM and row
334334
// fill error
335335
mHistoDecodingErrors->Fill(crate, slot);
336336
lastslot = slot;
337-
} else { // fill TRM mult for the current bit error for this TRM
337+
} else if(slot > 2 && slot < 12){ // fill TRM mult for the current bit error for this TRM
338338
mHistoDecodingCrate[slot - 3]->Fill(el, crate, trmMult[crate][slot - 3]);
339339
}
340340
}

0 commit comments

Comments
 (0)