Skip to content

Commit ec61534

Browse files
committed
ITS: fix truth seeding if firstOrbit is not 0
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 62ee697 commit ec61534

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "SimulationDataFormat/DigitizationContext.h"
2626
#include "Steer/MCKinematicsReader.h"
2727
#include "ITSMFTBase/DPLAlpideParam.h"
28+
#include "DetectorsRaw/HBFUtils.h"
2829

2930
#ifdef VTX_DEBUG
3031
#include "TTree.h"
@@ -581,7 +582,7 @@ void VertexerTraits::addTruthSeedingVertices()
581582
const auto& ir = irs[eveId2colId[iEve]];
582583
if (!ir.isDummy()) { // do we need this, is this for diffractive events?
583584
const auto& eve = mcReader.getMCEventHeader(iSrc, iEve);
584-
int rofId = (ir.toLong() - roFrameBiasInBC) / roFrameLengthInBC;
585+
int rofId = ((ir - raw::HBFUtils::Instance().getFirstSampledTFIR()).toLong() - roFrameBiasInBC) / roFrameLengthInBC;
585586
if (!vertices.contains(rofId)) {
586587
vertices[rofId] = bounded_vector<Vertex>(mMemoryPool.get());
587588
}

0 commit comments

Comments
 (0)