Skip to content

Commit

Permalink
Removed self assignment of variable in GlobalTrackQualityProducer
Browse files Browse the repository at this point in the history
This fixes a clang warning.
  • Loading branch information
Dr15Jones committed Jan 22, 2019
1 parent 64c594d commit 618657c
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -285,11 +285,9 @@ std::pair<double,double> GlobalTrackQualityProducer::newChi2(Trajectory& muon) c
}
}

if (tkNdof < 6 ) tkChi2 = tkChi2; // or should I set it to a large number ?
else tkChi2 /= (tkNdof-5.);
if (tkNdof > 5 ) {tkChi2 /= (tkNdof-5.); }

if (muNdof < 6 ) muChi2 = muChi2; // or should I set it to a large number ?
else muChi2 /= (muNdof-5.);
if (muNdof > 5 ) {muChi2 /= (muNdof-5.); }

return std::pair<double,double>(tkChi2,muChi2);

Expand Down

0 comments on commit 618657c

Please sign in to comment.