Skip to content

Commit

Permalink
Update HLTrigger/Egamma/plugins/HLTScoutingEgammaProducer.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Marino Missiroli <m.missiroli@cern.ch>
  • Loading branch information
arsahasransu and missirol committed Mar 10, 2023
1 parent 6617f4f commit 396c6c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions HLTrigger/Egamma/plugins/HLTScoutingEgammaProducer.cc
Expand Up @@ -292,9 +292,9 @@ void HLTScoutingEgammaProducer::produce(edm::StreamID sid, edm::Event& iEvent, e
tracketa = track.eta();
trackphi = track.phi();
charge = track.charge();
double trackchi2 = track.chi2();
double trackndof = track.ndof();
trackchi2overndf = trackchi2 / trackndof;
auto const trackndof = track.ndof();
if (trackndof != 0)
trackchi2overndf = track.chi2() / trackndof;
}
}
if (charge == -999) { // No associated track. Candidate is a scouting photon
Expand Down

0 comments on commit 396c6c4

Please sign in to comment.