-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPreselections.py
More file actions
95 lines (88 loc) · 2.96 KB
/
Preselections.py
File metadata and controls
95 lines (88 loc) · 2.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import FWCore.ParameterSet.Config as cms
import copy
###########################################################
##### Set up the event selections (channels) #####
###########################################################
##### List of valid input collections #####
# jets, muons, electrons, taus, photons, mets,
# events, tracks, primaryvertexs,
# genjets, mcparticles,
# bxlumis, superclusters
Event_Preselection = cms.PSet(
cuts = cms.VPSet (
cms.PSet (
inputCollection = cms.string("events"),
cutString = cms.string("FilterOutScraping > 0"),
numberRequired = cms.string(">= 1")
),
cms.PSet (
inputCollection = cms.string("primaryvertexs"),
cutString = cms.string("isGood > 0"),
numberRequired = cms.string(">= 1")
),
)
)
Muon_Preselection = cms.PSet(
cuts = cms.VPSet (
cms.PSet (
inputCollection = cms.string("muons"),
cutString = cms.string("abs(eta) < 2.5"),
numberRequired = cms.string(">= 1")
),
cms.PSet (
inputCollection = cms.string("muons"),
cutString = cms.string("pt > 25"),
numberRequired = cms.string(">= 1")
),
cms.PSet (
inputCollection = cms.string("muons"),
cutString = cms.string("tightID > 0"),
numberRequired = cms.string(">= 1")
),
cms.PSet (
inputCollection = cms.string("muons"),
cutString = cms.string("relPFdBetaIso < 0.12"),
numberRequired = cms.string(">= 1")
),
)
)
Electron_Preselection = cms.PSet(
cuts = cms.VPSet (
cms.PSet (
inputCollection = cms.string("electrons"),
cutString = cms.string("abs(eta) < 2.5"),
numberRequired = cms.string(">= 1")
),
cms.PSet (
inputCollection = cms.string("electrons"),
cutString = cms.string("pt > 25"),
numberRequired = cms.string(">= 1")
),
# ELECTRON CRACK VETO
cms.PSet (
inputCollection = cms.string("electrons"),
cutString = cms.string("abs(eta) < 1.444 | abs(eta) > 1.566 "),
numberRequired = cms.string(">= 1"),
alias = cms.string("electron ECAL crack veto")
),
# PHOTON CONVERSION VETO
cms.PSet (
inputCollection = cms.string("electrons"),
cutString = cms.string("passConvVeto > 0"),
numberRequired = cms.string(">= 1")
),
cms.PSet (
inputCollection = cms.string("electrons"),
cutString = cms.string("mvaNonTrig_HtoZZto4l > 0"),
numberRequired = cms.string(">= 1")
),
cms.PSet (
inputCollection = cms.string("electrons"),
cutString = cms.string("relPFrhoIso < 0.1"),
numberRequired = cms.string(">= 1")
),
)
)
## Preselection_EMu_PF_withTrigger = copy.deepcopy(Preselection_EMu_PF)
## Preselection_EMu_PF_withTrigger.name = "Preselection_EMu_PF_withTrigger"
## Preselection_EMu_PF_withTrigger.triggers = cms.vstring("HLT_Mu22_Photon22_CaloIdL_v")