Skip to content

Commit

Permalink
double to auto
Browse files Browse the repository at this point in the history
  • Loading branch information
swagata87 committed Oct 1, 2021
1 parent 9603e83 commit 075154c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ class MinHitsTrajectoryFilter final : public TrajectoryFilter {
bool passed = false;

if (!traj.empty()) {
double pt = traj.lastMeasurement().updatedState().freeTrajectoryState()->momentum().perp();
double pz = traj.lastMeasurement().updatedState().freeTrajectoryState()->momentum().z();
double sinhTrajEta2 = (pz * pz) / (pt * pt);
double myEtaSwitch = sinh(theHighEtaSwitch);
auto pt = traj.lastMeasurement().updatedState().freeTrajectoryState()->momentum().perp();
auto pz = traj.lastMeasurement().updatedState().freeTrajectoryState()->momentum().z();
auto sinhTrajEta2 = (pz * pz) / (pt * pt);
auto myEtaSwitch = sinh(theHighEtaSwitch);
if (sinhTrajEta2 < (myEtaSwitch * myEtaSwitch)) {
if (traj.foundHits() >= theMinHits + seedPenalty)
passed = true;
Expand Down

0 comments on commit 075154c

Please sign in to comment.