1 |
import FWCore.ParameterSet.Config as cms
|
2 |
import copy
|
3 |
|
4 |
##########################################################################
|
5 |
##### Set up control regions for use with the doubleElectron dataset #####
|
6 |
##########################################################################
|
7 |
|
8 |
from OSUT3Analysis.ControlRegions.Preselections import *
|
9 |
|
10 |
singleElectronTriggerPath = cms.vstring("HLT_Ele27_WP80_v")
|
11 |
|
12 |
##########################################################################
|
13 |
|
14 |
WtoE_Selection = cms.PSet(
|
15 |
name = cms.string("W to E"),
|
16 |
triggers = singleElectronTriggerPath,
|
17 |
cuts = cms.VPSet ()
|
18 |
)
|
19 |
WtoE_Selection.cuts.extend(copy.deepcopy(Event_Preselection.cuts))
|
20 |
WtoE_Selection.cuts.extend(copy.deepcopy(Electron_Preselection.cuts))
|
21 |
for cut in WtoE_Selection.cuts:
|
22 |
if "electrons" in str(cut.inputCollection):
|
23 |
cut.numberRequired = cms.string('== 1')
|
24 |
|
25 |
met_cut = cms.PSet (
|
26 |
inputCollection = cms.string("mets"),
|
27 |
cutString = cms.string("pt > 40"),
|
28 |
numberRequired = cms.string("== 1")
|
29 |
)
|
30 |
WtoE_Selection.cuts.append(met_cut)
|
31 |
|
32 |
metMT_cut = cms.PSet (
|
33 |
inputCollection = cms.string("electrons"),
|
34 |
cutString = cms.string("metMT > 40"),
|
35 |
numberRequired = cms.string("== 1")
|
36 |
)
|
37 |
WtoE_Selection.cuts.append(metMT_cut)
|
38 |
|
39 |
##########################################################################
|
40 |
|
41 |
TTbartoEHad_Selection = cms.PSet(
|
42 |
name = cms.string("TTbar to EHad"),
|
43 |
triggers = singleElectronTriggerPath,
|
44 |
cuts = cms.VPSet ()
|
45 |
)
|
46 |
TTbartoEHad_Selection.cuts.extend(copy.deepcopy(Event_Preselection.cuts))
|
47 |
TTbartoEHad_Selection.cuts.extend(copy.deepcopy(Electron_Preselection.cuts))
|
48 |
for cut in TTbartoEHad_Selection.cuts:
|
49 |
if "electrons" in str(cut.inputCollection):
|
50 |
cut.numberRequired = cms.string('== 1')
|
51 |
|
52 |
jet_eta_cut = cms.PSet (
|
53 |
inputCollection = cms.string("jets"),
|
54 |
cutString = cms.string("abs(eta) < 2.4"),
|
55 |
numberRequired = cms.string(">= 4")
|
56 |
)
|
57 |
TTbartoEHad_Selection.cuts.append(jet_eta_cut)
|
58 |
|
59 |
jet_pt_cut = cms.PSet (
|
60 |
inputCollection = cms.string("jets"),
|
61 |
cutString = cms.string("pt > 30"),
|
62 |
numberRequired = cms.string(">= 4")
|
63 |
)
|
64 |
TTbartoEHad_Selection.cuts.append(jet_pt_cut)
|
65 |
|
66 |
btag_cut = cms.PSet (
|
67 |
inputCollection = cms.string("jets"),
|
68 |
cutString = cms.string("btagCombinedSecVertex > 0.679"),
|
69 |
numberRequired = cms.string(">= 2")
|
70 |
)
|
71 |
TTbartoEHad_Selection.cuts.append(btag_cut)
|
72 |
|
73 |
##########################################################################
|
74 |
|
75 |
QCDtoE_Selection = cms.PSet(
|
76 |
name = cms.string("QCD to E"),
|
77 |
triggers = singleElectronTriggerPath,
|
78 |
cuts = cms.VPSet ()
|
79 |
)
|
80 |
QCDtoE_Selection.cuts.extend(copy.deepcopy(Event_Preselection.cuts))
|
81 |
QCDtoE_Selection.cuts.extend(copy.deepcopy(Electron_Preselection.cuts))
|
82 |
for cut in QCDtoE_Selection.cuts:
|
83 |
if "electrons" in str(cut.inputCollection):
|
84 |
cut.numberRequired = cms.string('== 1')
|
85 |
if "relPFrhoIso" in str(cut.cutString) and "electrons" in str(cut.inputCollection):
|
86 |
cut.cutString = cms.string('relPFrhoIso > 0.3')
|
87 |
met_cut = cms.PSet (
|
88 |
inputCollection = cms.string("mets"),
|
89 |
cutString = cms.string("pt < 40"),
|
90 |
numberRequired = cms.string("== 1")
|
91 |
)
|
92 |
QCDtoE_Selection.cuts.append(met_cut)
|
93 |
|
94 |
|
95 |
##########################################################################
|
96 |
|
97 |
|
98 |
|
99 |
|