Skip to content

Commit 34fdea3

Browse files
committed
Merge pull request #88 from EmyrClement/master
Further synchronisation with analysis tools
2 parents 8f3bcb4 + 6f34297 commit 34fdea3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugins/TopPairElectronPlusJets2012SelectionFilter.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,8 @@ bool TopPairElectronPlusJets2012SelectionFilter::isGoodElectron(const pat::Elect
265265
bool notInCrack = fabs(electron.superCluster()->eta()) < 1.4442 || fabs(electron.superCluster()->eta()) > 1.5660;
266266
//2D impact w.r.t primary vertex
267267
bool passesD0 = fabs(electron.dB(pat::Electron::PV2D)) < 0.02; //cm
268-
// bool passesHOverE = electron.hadronicOverEm() < 0.05; // same for EE and EB
269268
bool passesID = electron.electronID("mvaTrigV0") > 0.5;
270-
return passesPtAndEta && notInCrack && passesD0 && passesID; //&& passesHOverE;
269+
return passesPtAndEta && notInCrack && passesD0 && passesID;
271270
}
272271

273272
void TopPairElectronPlusJets2012SelectionFilter::cleanedJets() {
@@ -277,7 +276,7 @@ void TopPairElectronPlusJets2012SelectionFilter::cleanedJets() {
277276
if (!isGoodJet(jet))
278277
continue;
279278
bool overlaps(false);
280-
if (hasSignalElectron_) {
279+
if (hasSignalElectron_ && goodIsolatedElectrons_.size() == 1) {
281280
double dR = deltaR(signalElectron_, jet);
282281
overlaps = dR < 0.3;
283282
}

plugins/TopPairMuonPlusJets2012SelectionFilter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void TopPairMuonPlusJets2012SelectionFilter::cleanedJets() {
314314
const pat::Jet jet = jets_.at(index);
315315

316316
bool overlaps(false);
317-
if (hasSignalMuon_) {
317+
if (hasSignalMuon_ && goodIsolatedMuons_.size() == 1) {
318318
double dR = deltaR(signalMuon_, jet);
319319
overlaps = dR < 0.3;
320320
}

0 commit comments

Comments
 (0)