Skip to content

Commit

Permalink
save correct outermost hit position also for tracks w/o last hit in mtd
Browse files Browse the repository at this point in the history
  • Loading branch information
martinamalberti committed Nov 20, 2024
1 parent 48600da commit de2b85d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions RecoMTD/TrackExtender/plugins/TrackExtenderWithMTD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1004,9 +1004,15 @@ void TrackExtenderWithMTDT<TrackCollection>::produce(edm::Event& ev, const edm::
#endif
npixBarrel.push_back(backtrack.hitPattern().numberOfValidPixelBarrelHits());
npixEndcap.push_back(backtrack.hitPattern().numberOfValidPixelEndcapHits());
outermostHitPosition.push_back(
mBTL.hit ? (float)(*track).outerRadius()
: (float)(*track).outerZ()); // save R of the outermost hit for BTL, z for ETL.

if (mBTL.hit || mETL.hit) {
outermostHitPosition.push_back(
mBTL.hit ? (float)(*track).outerRadius()
: (float)(*track).outerZ()); // save R of the outermost hit for BTL, z for ETL.
} else {
outermostHitPosition.push_back(std::abs(track->eta()) < 1.48 ? (float)(*track).outerRadius()
: (float)(*track).outerZ());
}

LogTrace("TrackExtenderWithMTD") << "TrackExtenderWithMTD: tmtd " << tmtdMap << " +/- " << sigmatmtdMap
<< " t0 " << t0Map << " +/- " << sigmat0Map << " tof pi/K/p " << tofpiMap
Expand Down

0 comments on commit de2b85d

Please sign in to comment.