File tree Expand file tree Collapse file tree
Detectors/ITSMFT/ITS/tracking/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525#include " SimulationDataFormat/DigitizationContext.h"
2626#include " Steer/MCKinematicsReader.h"
2727#include " ITSMFTBase/DPLAlpideParam.h"
28+ #include " DetectorsRaw/HBFUtils.h"
2829#include " CommonUtils/TreeStreamRedirector.h"
2930
3031// #define VTX_DEBUG 1
@@ -514,7 +515,7 @@ void VertexerTraits::addTruthSeedingVertices()
514515 const auto & ir = irs[eveId2colId[iEve]];
515516 if (!ir.isDummy ()) { // do we need this, is this for diffractive events?
516517 const auto & eve = mcReader.getMCEventHeader (iSrc, iEve);
517- int rofId = (ir .toLong () - roFrameBiasInBC) / roFrameLengthInBC;
518+ int rofId = ((ir - raw::HBFUtils::Instance (). getFirstSampledTFIR ()) .toLong () - roFrameBiasInBC) / roFrameLengthInBC;
518519 if (!vertices.contains (rofId)) {
519520 vertices[rofId] = bounded_vector<Vertex>(mMemoryPool .get ());
520521 }
You can’t perform that action at this time.
0 commit comments