Skip to content

Commit

Permalink
replace deltaR with deltaR2 also for trigger matching
Browse files Browse the repository at this point in the history
  • Loading branch information
david walter committed Feb 24, 2023
1 parent e79ac72 commit ccaaaf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DQMOffline/Lumi/plugins/ZCounting.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion DQMOffline/Lumi/src/TriggerTools.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit ccaaaf3

Please sign in to comment.