From 82dfac19bd72fbea4e949bf3cbb9ded1882541bb Mon Sep 17 00:00:00 2001 From: mmusich Date: Tue, 29 Aug 2023 09:00:24 +0200 Subject: [PATCH] add information on first hit from HitPattern to LostTracks --- PhysicsTools/PatAlgos/plugins/PATLostTracks.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/PhysicsTools/PatAlgos/plugins/PATLostTracks.cc b/PhysicsTools/PatAlgos/plugins/PATLostTracks.cc index fa875f631edd4..5567d4400caa4 100644 --- a/PhysicsTools/PatAlgos/plugins/PATLostTracks.cc +++ b/PhysicsTools/PatAlgos/plugins/PATLostTracks.cc @@ -313,6 +313,7 @@ void pat::PATLostTracks::addPackedCandidate(std::vector& c cands.back().setLostInnerHits(lostHits); if (trk->pt() > minPtToStoreProps_ || trkStatus == TrkStatus::VTX) { cands.back().setTrkAlgo(static_cast(trk->algo()), static_cast(trk->originalAlgo())); + cands.back().setFirstHit(trk->hitPattern().getHitPattern(reco::HitPattern::TRACK_HITS, 0)); if (useLegacySetup_ || std::abs(id) == 11 || trkStatus == TrkStatus::VTX) { cands.back().setTrackProperties(*trk, covariancePackingSchemas_[4], covarianceVersion_); } else {