PageRenderTime 27ms CodeModel.GetById 11ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/ElectroWeakAnalysis/ZMuMu/python/ZMuMuCategoriesPlots_cff.py

https://github.com/aivanov-cern/cmssw
Python | 212 lines | 83 code | 75 blank | 54 comment | 0 complexity | b1c4a2c2bdc84f733df5954645dfe8d9 MD5 | raw file
  1import FWCore.ParameterSet.Config as cms
  2
  3from ElectroWeakAnalysis.ZMuMu.ZMuMuCategoriesSequences_cff import *
  4import copy
  5
  6
  7zPlots = cms.PSet(
  8    histograms = cms.VPSet(
  9    cms.PSet(
 10    min = cms.untracked.double(0.0),
 11    max = cms.untracked.double(200.0),
 12    nbins = cms.untracked.int32(200),
 13    name = cms.untracked.string("zMass"),
 14    description = cms.untracked.string("Z mass [GeV/c^{2}]"),
 15    plotquantity = cms.untracked.string("mass")
 16    ),
 17    cms.PSet(
 18    min = cms.untracked.double(0.0),
 19    max = cms.untracked.double(200.0),
 20    nbins = cms.untracked.int32(200),
 21    name = cms.untracked.string("mu1Pt"),
 22    description = cms.untracked.string("Highest muon p_{t} [GeV/c]"),
 23    plotquantity = cms.untracked.string("max(daughter(0).pt,daughter(1).pt)")
 24    ),
 25    cms.PSet(
 26    min = cms.untracked.double(0.0),
 27    max = cms.untracked.double(200.0),
 28    nbins = cms.untracked.int32(200),
 29    name = cms.untracked.string("mu2Pt"),
 30    description = cms.untracked.string("Lowest muon p_{t} [GeV/c]"),
 31    plotquantity = cms.untracked.string("min(daughter(0).pt,daughter(1).pt)")
 32    )
 33    )
 34)
 35
 36
 37
 38# ZMuMu at least 1 HLT + 2 track-iso (Shape)
 39goodZToMuMuPlotsLoose = cms.EDAnalyzer(
 40    "CandViewHistoAnalyzer",
 41    zPlots,
 42    src = cms.InputTag("goodZToMuMuAtLeast1HLTLoose")
 43)
 44
 45goodZToMuMuPlots = cms.EDAnalyzer(
 46    "CandViewHistoAnalyzer",
 47    zPlots,
 48    src = cms.InputTag("goodZToMuMuAtLeast1HLT")
 49)
 50
 51
 52
 53## #### plot for loose cuts
 54
 55
 56## goodZToMuMuSequence.__iadd__(goodZToMuMuPlots)
 57## goodZToMuMuSequence.setLabel("goodZToMuMuAtLeast1HLT")
 58
 59## #ZMuMu 2 HLT + 2  track-iso
 60## goodZToMuMu2HLTPlots = copy.deepcopy(goodZToMuMuPlots)
 61## goodZToMuMu2HLTPlots.src = cms.InputTag("goodZToMuMu2HLT")
 62
 63## goodZToMuMu2HLTSequence.__iadd__(goodZToMuMu2HLTPlots)
 64## goodZToMuMu2HLTSequence.setLabel("goodZToMuMu2HLT")
 65
 66## #ZMuMu 1 HLT + 2  track-iso
 67## goodZToMuMu1HLTPlots = copy.deepcopy(goodZToMuMuPlots)
 68## goodZToMuMu1HLTPlots.src = cms.InputTag("goodZToMuMu1HLT")
 69
 70## goodZToMuMu1HLTSequence.__iadd__(goodZToMuMu1HLTPlots)
 71
 72
 73## #ZMuMu at least 1 HLT + at least 1 NON track-iso
 74## nonIsolatedZToMuMuPlots = copy.deepcopy(goodZToMuMuPlots)
 75## nonIsolatedZToMuMuPlots.src = cms.InputTag("nonIsolatedZToMuMuAtLeast1HLT")
 76
 77## nonIsolatedZToMuMuSequence.__iadd__(nonIsolatedZToMuMuPlots)
 78
 79## #ZMuMu at least 1 HLT + 1 NON track-iso
 80## oneNonIsolatedZToMuMuPlots = copy.deepcopy(goodZToMuMuPlots)
 81## oneNonIsolatedZToMuMuPlots.src = cms.InputTag("oneNonIsolatedZToMuMuAtLeast1HLT")
 82
 83## oneNonIsolatedZToMuMuSequence.__iadd__(oneNonIsolatedZToMuMuPlots) 
 84
 85
 86## #ZMuMu at least 1 HLT + 2 NON track-iso
 87## twoNonIsolatedZToMuMuPlots = copy.deepcopy(goodZToMuMuPlots)
 88## twoNonIsolatedZToMuMuPlots.src = cms.InputTag("twoNonIsolatedZToMuMuAtLeast1HLT")
 89
 90## twoNonIsolatedZToMuMuSequence.__iadd__(twoNonIsolatedZToMuMuPlots) 
 91
 92## #ZMuSta First HLT + 2  track-iso
 93## goodZToMuMuOneStandAloneMuonPlots = copy.deepcopy(goodZToMuMuPlots)
 94## goodZToMuMuOneStandAloneMuonPlots.src = cms.InputTag("goodZToMuMuOneStandAloneMuonFirstHLT")
 95
 96## goodZToMuMuOneStandAloneMuonSequence.__iadd__(goodZToMuMuOneStandAloneMuonPlots)
 97
 98
 99## #ZMuTk First HLT + 2  track-iso
100## goodZToMuMuOneTrackPlots = copy.deepcopy(goodZToMuMuPlots)
101## goodZToMuMuOneTrackPlots.src = cms.InputTag("goodZToMuMuOneTrackFirstHLT")
102
103## goodZToMuMuOneTrackSequence.__iadd__(goodZToMuMuOneTrackPlots)
104
105## #ZMuMu same charge
106## goodZToMuMuSameChargeAtLeast1HLTPlots = copy.deepcopy(goodZToMuMuPlots)
107## goodZToMuMuSameChargeAtLeast1HLTPlots.src = cms.InputTag("goodZToMuMuSameChargeAtLeast1HLT")
108
109## goodZToMuMuSameChargeSequence.__iadd__(goodZToMuMuSameChargeAtLeast1HLTPlots)
110
111## goodZToMuMuSameCharge2HLTPlots = copy.deepcopy(goodZToMuMuPlots)
112## goodZToMuMuSameCharge2HLTPlots.src = cms.InputTag("goodZToMuMuSameCharge2HLT")
113
114## goodZToMuMuSameCharge2HLTSequence.__iadd__(goodZToMuMuSameCharge2HLTPlots)
115
116## goodZToMuMuSameCharge1HLTPlots = copy.deepcopy(goodZToMuMuPlots)
117## goodZToMuMuSameCharge1HLTPlots.src = cms.InputTag("goodZToMuMuSameCharge1HLT")
118
119## goodZToMuMuSameCharge1HLTSequence.__iadd__(goodZToMuMuSameCharge1HLTPlots)
120
121
122
123#### plot for tight cuts
124
125
126goodZToMuMuPath.__iadd__(goodZToMuMuPlots)
127goodZToMuMuPath.setLabel("goodZToMuMuAtLeast1HLT")
128
129#ZMuMu 2 HLT + 2  track-iso
130goodZToMuMu2HLTPlots = copy.deepcopy(goodZToMuMuPlots)
131goodZToMuMu2HLTPlots.src = cms.InputTag("goodZToMuMu2HLT")
132
133goodZToMuMu2HLTPath.__iadd__(goodZToMuMu2HLTPlots)
134goodZToMuMu2HLTPath.setLabel("goodZToMuMu2HLT")
135
136#ZMuMu 1 HLT + 2  track-iso
137goodZToMuMu1HLTPlots= copy.deepcopy(goodZToMuMuPlots)
138goodZToMuMu1HLTPlots.src = cms.InputTag("goodZToMuMu1HLT")
139
140goodZToMuMu1HLTPath.__iadd__(goodZToMuMu1HLTPlots)
141
142
143##### plot for AB and BB region
144goodZToMuMuAB1HLTPlots= copy.deepcopy(goodZToMuMuPlots)
145goodZToMuMuAB1HLTPlots.src = cms.InputTag("goodZToMuMuAB1HLT")
146goodZToMuMuAB1HLTPath.__iadd__(goodZToMuMuAB1HLTPlots)
147
148goodZToMuMuBB2HLTPlots= copy.deepcopy(goodZToMuMuPlots)
149goodZToMuMuBB2HLTPlots.src = cms.InputTag("goodZToMuMuBB2HLT")
150goodZToMuMuBB2HLTPath.__iadd__(goodZToMuMuBB2HLTPlots)
151
152
153
154#ZMuMu at least 1 HLT + at least 1 NON track-iso
155nonIsolatedZToMuMuPlots = copy.deepcopy(goodZToMuMuPlots)
156nonIsolatedZToMuMuPlots.src = cms.InputTag("nonIsolatedZToMuMuAtLeast1HLT")
157
158nonIsolatedZToMuMuPath.__iadd__(nonIsolatedZToMuMuPlots)
159
160#ZMuMu at least 1 HLT + 1 NON track-iso
161oneNonIsolatedZToMuMuPlots = copy.deepcopy(goodZToMuMuPlots)
162oneNonIsolatedZToMuMuPlots.src = cms.InputTag("oneNonIsolatedZToMuMuAtLeast1HLT")
163
164oneNonIsolatedZToMuMuPath.__iadd__(oneNonIsolatedZToMuMuPlots) 
165
166
167#ZMuMu at least 1 HLT + 2 NON track-iso
168twoNonIsolatedZToMuMuPlots = copy.deepcopy(goodZToMuMuPlots)
169twoNonIsolatedZToMuMuPlots.src = cms.InputTag("twoNonIsolatedZToMuMuAtLeast1HLT")
170
171twoNonIsolatedZToMuMuPath.__iadd__(twoNonIsolatedZToMuMuPlots) 
172
173#ZMuSta global HLT + 2  track-iso
174goodZToMuMuOneStandAloneMuonPlots = copy.deepcopy(goodZToMuMuPlots)
175goodZToMuMuOneStandAloneMuonPlots.src = cms.InputTag("goodZToMuMuOneStandAloneMuonFirstHLT")
176
177goodZToMuMuOneStandAloneMuonPath.__iadd__(goodZToMuMuOneStandAloneMuonPlots)
178
179
180#ZMuTk First HLT + 2  track-iso
181goodZToMuMuOneTrackPlots = copy.deepcopy(goodZToMuMuPlots)
182goodZToMuMuOneTrackPlots.src = cms.InputTag("goodZToMuMuOneTrackFirstHLT")
183
184goodZToMuMuOneTrackPath.__iadd__(goodZToMuMuOneTrackPlots)
185
186
187#ZMuTkMu global HLT + 2  track-iso
188goodZToMuMuOneTrackerMuonPlots = copy.deepcopy(goodZToMuMuPlots)
189goodZToMuMuOneTrackerMuonPlots.src = cms.InputTag("goodZToMuMuOneTrackerMuonFirstHLT")
190
191goodZToMuMuOneTrackerMuonPath.__iadd__(goodZToMuMuOneTrackerMuonPlots)
192
193
194
195
196
197
198#ZMuMu same charge
199goodZToMuMuSameChargeAtLeast1HLTPlots = copy.deepcopy(goodZToMuMuPlots)
200goodZToMuMuSameChargeAtLeast1HLTPlots.src = cms.InputTag("goodZToMuMuSameChargeAtLeast1HLT")
201
202goodZToMuMuSameChargePath.__iadd__(goodZToMuMuSameChargeAtLeast1HLTPlots)
203
204goodZToMuMuSameCharge2HLTPlots = copy.deepcopy(goodZToMuMuPlots)
205goodZToMuMuSameCharge2HLTPlots.src = cms.InputTag("goodZToMuMuSameCharge2HLT")
206
207goodZToMuMuSameCharge2HLTPath.__iadd__(goodZToMuMuSameCharge2HLTPlots)
208
209goodZToMuMuSameCharge1HLTPlots = copy.deepcopy(goodZToMuMuPlots)
210goodZToMuMuSameCharge1HLTPlots.src = cms.InputTag("goodZToMuMuSameCharge1HLT")
211
212goodZToMuMuSameCharge1HLTPath.__iadd__(goodZToMuMuSameCharge1HLTPlots)