Skip to content

Commit 0a283b8

Browse files
committed
fix swapped eta parameter for photons in Diphoton XGBoost MVA filter
1 parent 8f2b354 commit 0a283b8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

HLTrigger/Egamma/plugins/HLTEgammaDoubleXGBoostCombFilter.cc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,27 +87,27 @@ bool HLTEgammaDoubleXGBoostCombFilter::hltFilter(edm::Event& event,
8787
for (size_t i = 0; i < recCollection->size(); i++) {
8888
edm::Ref<reco::RecoEcalCandidateCollection> refi(recCollection, i);
8989
float EtaSCi = refi->eta();
90-
int eta1 = (std::abs(EtaSCi) < 1.5) ? 0 : 1;
90+
int etai = (std::abs(EtaSCi) < 1.5) ? 0 : 1;
9191
float mvaScorei = (*mvaMap).find(refi)->val;
9292
math::XYZTLorentzVector p4i = refi->p4();
9393
for (size_t j = i + 1; j < recCollection->size(); j++) {
9494
edm::Ref<reco::RecoEcalCandidateCollection> refj(recCollection, j);
9595
float EtaSCj = refj->eta();
96-
int eta2 = (std::abs(EtaSCj) < 1.5) ? 0 : 1;
96+
int etaj = (std::abs(EtaSCj) < 1.5) ? 0 : 1;
9797
float mvaScorej = (*mvaMap).find(refj)->val;
9898
math::XYZTLorentzVector p4j = refj->p4();
9999
math::XYZTLorentzVector pairP4 = p4i + p4j;
100100
double mass = pairP4.M();
101101
if (mass >= highMassCut_) {
102-
if (mvaScorei >= mvaScorej && ((mvaScorei > leadCutHighMass1_[eta1] && mvaScorej > subCutHighMass1_[eta2]) ||
103-
(mvaScorei > leadCutHighMass2_[eta1] && mvaScorej > subCutHighMass2_[eta2]) ||
104-
(mvaScorei > leadCutHighMass3_[eta1] && mvaScorej > subCutHighMass3_[eta2]))) {
102+
if (mvaScorei >= mvaScorej && ((mvaScorei > leadCutHighMass1_[etai] && mvaScorej > subCutHighMass1_[etaj]) ||
103+
(mvaScorei > leadCutHighMass2_[etai] && mvaScorej > subCutHighMass2_[etaj]) ||
104+
(mvaScorei > leadCutHighMass3_[etai] && mvaScorej > subCutHighMass3_[etaj]))) {
105105
accept = true;
106106
} //if scoreI > scoreJ
107107
else if (mvaScorej > mvaScorei &&
108-
((mvaScorej > leadCutHighMass1_[eta1] && mvaScorei > subCutHighMass1_[eta2]) ||
109-
(mvaScorej > leadCutHighMass2_[eta1] && mvaScorei > subCutHighMass2_[eta2]) ||
110-
(mvaScorej > leadCutHighMass3_[eta1] && mvaScorei > subCutHighMass3_[eta2]))) {
108+
((mvaScorej > leadCutHighMass1_[etaj] && mvaScorei > subCutHighMass1_[etai]) ||
109+
(mvaScorej > leadCutHighMass2_[etaj] && mvaScorei > subCutHighMass2_[etai]) ||
110+
(mvaScorej > leadCutHighMass3_[etaj] && mvaScorei > subCutHighMass3_[etai]))) {
111111
accept = true;
112112
} // if scoreJ > scoreI
113113
} //If high mass

0 commit comments

Comments
 (0)