Skip to content

Commit

Permalink
Merge pull request #42693 from mmusich/add_first_hit_to_lostTracks_13…
Browse files Browse the repository at this point in the history
…_1_X

[13.1.X] add information on first hit from HitPattern to LostTracks
  • Loading branch information
cmsbuild authored Sep 1, 2023
2 parents 0491ce5 + aa5101f commit 47a4378
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PhysicsTools/PatAlgos/plugins/PATLostTracks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ void pat::PATLostTracks::addPackedCandidate(std::vector<pat::PackedCandidate>& c
cands.back().setLostInnerHits(lostHits);
if (trk->pt() > minPtToStoreProps_ || trkStatus == TrkStatus::VTX) {
cands.back().setTrkAlgo(static_cast<uint8_t>(trk->algo()), static_cast<uint8_t>(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 {
Expand Down

0 comments on commit 47a4378

Please sign in to comment.