PageRenderTime 23ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/ElectroWeakAnalysis/ZMuMu/python/goodZToMuMu_cfi.py

https://github.com/aivanov-cern/cmssw
Python | 163 lines | 107 code | 49 blank | 7 comment | 0 complexity | 17c42595572a53fbd468aefa9200039f MD5 | raw file
  1import FWCore.ParameterSet.Config as cms
  2
  3import copy
  4
  5from ElectroWeakAnalysis.ZMuMu.zSelection_cfi import *
  6
  7goodZToMuMuLoose = cms.EDFilter(
  8    "ZToMuMuIsolatedIDSelector",
  9    zSelectionLoose,
 10    src = cms.InputTag("dimuonsGlobal"),
 11    filter = cms.bool(True)
 12
 13)
 14
 15goodZToMuMu = cms.EDFilter(
 16    "ZToMuMuIsolatedIDSelector",
 17    zSelection,
 18    src = cms.InputTag("dimuonsGlobal"),
 19    filter = cms.bool(True) 
 20)
 21
 22
 23goodZToMuMuNotFiltered = cms.EDFilter(
 24    "ZToMuMuIsolatedIDSelector",
 25    zSelection,
 26    src = cms.InputTag("dimuonsGlobal"),
 27    filter = cms.bool(False) ### not filtered, needed for AB and BB region study 
 28
 29)
 30
 31
 32
 33#ZMuMu: requiring at least  1 HLT trigger match (for the shape)
 34goodZToMuMuAtLeast1HLTLoose = cms.EDFilter(
 35    "ZHLTMatchFilter",
 36    src = cms.InputTag("goodZToMuMuLoose"),
 37    condition =cms.string("atLeastOneMatched"),
 38    hltPath = cms.string("HLT_Mu9"),
 39    filter = cms.bool(True) 
 40)
 41
 42goodZToMuMuAtLeast1HLT = cms.EDFilter(
 43    "ZHLTMatchFilter",
 44    src = cms.InputTag("goodZToMuMu"),
 45    condition =cms.string("atLeastOneMatched"),
 46    hltPath = cms.string("HLT_Mu9"),
 47    filter = cms.bool(True) 
 48)
 49
 50
 51
 52
 53#ZMuMu: requiring  2 HLT trigger match
 54goodZToMuMu2HLTLoose = copy.deepcopy(goodZToMuMuAtLeast1HLTLoose)
 55goodZToMuMu2HLTLoose.condition =cms.string("bothMatched")
 56
 57goodZToMuMu2HLT = copy.deepcopy(goodZToMuMuAtLeast1HLT)
 58goodZToMuMu2HLT.condition =cms.string("bothMatched")
 59
 60
 61#ZMuMu: requiring 1 HLT trigger match
 62goodZToMuMu1HLTLoose = copy.deepcopy(goodZToMuMuAtLeast1HLTLoose)
 63goodZToMuMu1HLTLoose.condition =cms.string("exactlyOneMatched")
 64
 65goodZToMuMu1HLT = copy.deepcopy(goodZToMuMuAtLeast1HLT)
 66goodZToMuMu1HLT.condition =cms.string("exactlyOneMatched")
 67
 68
 69
 70### exploring the 2.1 -- 2.4  eta region
 71### A: |eta|<2.1, B: 2.1<|eta|<2.4
 72zToMuMuABLoose = cms.EDFilter(
 73    "ZToMuMuIsolatedIDSelector",
 74    zSelectionABLoose,
 75    src = cms.InputTag("dimuonsGlobal"),
 76    filter = cms.bool(True) 
 77)
 78
 79
 80### two muon with 2.1< eta < 2.4
 81zToMuMuBBLoose = cms.EDFilter(
 82    "ZToMuMuIsolatedIDSelector",
 83    zSelectionBBLoose,
 84    src = cms.InputTag("dimuonsGlobal"),
 85    filter = cms.bool(True) 
 86)
 87
 88
 89zToMuMuAB = cms.EDFilter(
 90    "ZToMuMuIsolatedIDSelector",
 91    zSelectionAB,
 92    src = cms.InputTag("dimuonsGlobal"),
 93    filter = cms.bool(True) 
 94)
 95
 96### two muon with 2.1< eta < 2.4
 97zToMuMuBB = cms.EDFilter(
 98    "ZToMuMuIsolatedIDSelector",
 99    zSelectionBB,
100    src = cms.InputTag("dimuonsGlobal"),
101    filter = cms.bool(True) 
102)
103
104
105goodZToMuMuABLoose = cms.EDFilter(
106    "ZMuMuOverlapExclusionSelector",    
107    src = cms.InputTag("zToMuMuABLoose"),
108    overlap = cms.InputTag("goodZToMuMuNotFiltered"),
109    filter = cms.bool(True)
110)
111
112
113goodZToMuMuAB = cms.EDFilter(
114    "ZMuMuOverlapExclusionSelector",    
115    src = cms.InputTag("zToMuMuAB"),
116    overlap = cms.InputTag("goodZToMuMuNotFiltered"),
117    filter = cms.bool(True)
118)
119
120
121goodZToMuMuAB1HLTLoose = cms.EDFilter(
122    "ZHLTMatchFilter",
123    src = cms.InputTag("goodZToMuMuABLoose"),
124    condition =cms.string("exactlyOneMatched"),
125    hltPath = cms.string("HLT_Mu9"),
126    filter = cms.bool(True) 
127)
128
129goodZToMuMuBB2HLTLoose = cms.EDFilter(
130    "ZHLTMatchFilter",
131    src = cms.InputTag("zToMuMuBBLoose"),
132    condition =cms.string("bothMatched"),
133    hltPath = cms.string("HLT_DoubleMu3"),
134    filter = cms.bool(True) 
135)
136
137
138
139goodZToMuMuAB1HLT = cms.EDFilter(
140    "ZHLTMatchFilter",
141    src = cms.InputTag("goodZToMuMuAB"),
142    condition =cms.string("exactlyOneMatched"),
143    hltPath = cms.string("HLT_Mu9"),
144    filter = cms.bool(True) 
145)
146
147goodZToMuMuBB2HLT = cms.EDFilter(
148    "ZHLTMatchFilter",
149    src = cms.InputTag("zToMuMuBB"),
150    condition =cms.string("bothMatched"),
151    hltPath = cms.string("HLT_DoubleMu3"),
152    filter = cms.bool(True) 
153)
154
155
156
157
158
159
160
161
162
163