Skip to content

Commit 940527b

Browse files
committed
IFX 4
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 8c808e9 commit 940527b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "DataFormatsTRD/TriggerRecord.h"
3535
#include "CommonDataFormat/IRFrame.h"
3636
#include "DetectorsBase/GRPGeomHelper.h"
37+
#include "DetectorsRaw/HBFUtils.h"
3738
#include "ITStracking/BoundedAllocator.h"
3839
#include "Framework/InputRecordWalker.h"
3940
#include "Framework/DataRefUtils.h"
@@ -327,6 +328,7 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc)
327328
const auto dc = o2::steer::DigitizationContext::loadFromFile("collisioncontext.root");
328329
const auto irs = dc->getEventRecords();
329330
const int64_t roFrameBiasInBC = o2::itsmft::DPLAlpideParam<o2::detectors::DetID::ITS>::Instance().getROFBiasInBC(1);
331+
const auto firstSampledTFIR = o2::raw::HBFUtils::Instance().getFirstSampledTFIR();
330332
o2::steer::MCKinematicsReader mcReader(dc);
331333
const int iSrc = 0; // take only events from collision generator
332334
const auto eveId2colId = dc->getCollisionIndicesForSource(iSrc);
@@ -338,7 +340,7 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc)
338340
}
339341
const auto& ir = irs[colId->second];
340342
if (!ir.isDummy()) {
341-
const auto bc = (ir - irFirstTF).toLong() - roFrameBiasInBC;
343+
const auto bc = (ir - firstSampledTFIR).toLong() - roFrameBiasInBC;
342344
if (bc >= 0 && upcPassRanForBC(bc)) {
343345
const int nCont = std::ranges::count_if(mcReader.getTracks(iSrc, iEve), [](const auto& trk) {
344346
if (!trk.isPrimary() || trk.GetPt() < 0.05 || std::abs(trk.GetEta()) > 1.1) {

0 commit comments

Comments
 (0)