diff --git a/DQMOffline/Lumi/plugins/ZCounting.h b/DQMOffline/Lumi/plugins/ZCounting.h index 636e2fe73b5b7..f4726db69c572 100644 --- a/DQMOffline/Lumi/plugins/ZCounting.h +++ b/DQMOffline/Lumi/plugins/ZCounting.h @@ -94,8 +94,8 @@ class ZCounting : public DQMEDAnalyzer { TriggerTools* triggers; // constants - const double DRMAX_HLT = 0.01; // max dR matching between muon and hlt object - const double DRMAX_IO = 0.09; // max dR matching between inner and outer muon track + const double DRMAX_HLT = 0.01; // max deltaR^2 matching between muon and hlt object + const double DRMAX_IO = 0.09; // max deltaR^2 matching between inner and outer muon track const double MIN_PT_TRK = 15; // minimum pT of inner track considered for matching outer to inner track const double MAX_ETA_TRK = 2.5; // maximum |eta| of inner track considered for matching outer to inner track diff --git a/DQMOffline/Lumi/src/TriggerTools.cc b/DQMOffline/Lumi/src/TriggerTools.cc index b26d60941f5d6..404482870c646 100644 --- a/DQMOffline/Lumi/src/TriggerTools.cc +++ b/DQMOffline/Lumi/src/TriggerTools.cc @@ -144,7 +144,7 @@ bool TriggerTools::passObj(const double eta, const double phi) const { for (unsigned int hlto = 0; hlto < keys.size(); hlto++) { trigger::size_type hltf = keys[hlto]; const trigger::TriggerObject& tobj(toc[hltf]); - if (reco::deltaR(eta, phi, tobj.eta(), tobj.phi()) < DRMAX) { + if (reco::deltaR2(eta, phi, tobj.eta(), tobj.phi()) < DRMAX) { return true; } }