CMS 3D CMS Logo

ZMuMuAnalysisNtupler_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 
5 import copy
6 
7 
8 
9 
10 goodZToMuMuEdmNtuple = cms.EDProducer(
11  "CandViewNtpProducer",
12  src=cms.InputTag("goodZToMuMuAtLeast1HLTLoose"),
13  lazyParser=cms.untracked.bool(True),
14  prefix=cms.untracked.string("z"),
15  eventInfo=cms.untracked.bool(True),
16  variables = cms.VPSet(
17  cms.PSet(
18  tag = cms.untracked.string("Mass"),
19  quantity = cms.untracked.string("mass")
20  ),
21  cms.PSet(
22  tag = cms.untracked.string("Pt"),
23  quantity = cms.untracked.string("pt")
24  ),
25  cms.PSet(
26  tag = cms.untracked.string("Eta"),
27  quantity = cms.untracked.string("eta")
28  ),
29  cms.PSet(
30  tag = cms.untracked.string("Phi"),
31  quantity = cms.untracked.string("phi")
32  ),
33  cms.PSet(
34  tag = cms.untracked.string("Y"),
35  quantity = cms.untracked.string("rapidity")
36  ),
37  cms.PSet(
38  tag = cms.untracked.string("Dau1Pt"),
39  quantity = cms.untracked.string("daughter(0).masterClone.pt")
40  ),
41  cms.PSet(
42  tag = cms.untracked.string("Dau2Pt"),
43  quantity = cms.untracked.string("daughter(1).masterClone.pt")
44  ),
45  cms.PSet(
46  tag = cms.untracked.string("Dau1Q"),
47  quantity = cms.untracked.string("daughter(0).masterClone.charge")
48  ),
49  cms.PSet(
50  tag = cms.untracked.string("Dau2Q"),
51  quantity = cms.untracked.string("daughter(1).masterClone.charge")
52  ),
53  cms.PSet(
54  tag = cms.untracked.string("Dau1Eta"),
55  quantity = cms.untracked.string("daughter(0).masterClone.eta")
56  ),
57  cms.PSet(
58  tag = cms.untracked.string("Dau2Eta"),
59  quantity = cms.untracked.string("daughter(1).masterClone.eta")
60  ),
61  cms.PSet(
62  tag = cms.untracked.string("Dau1Phi"),
63  quantity = cms.untracked.string("daughter(0).masterClone.phi")
64  ),
65  cms.PSet(
66  tag = cms.untracked.string("Dau2Phi"),
67  quantity = cms.untracked.string("daughter(1).masterClone.phi")
68  ),
69 
70 # cms.PSet(
71 # tag = cms.untracked.string("Dau1NofHit"),
72 # quantity = cms.untracked.string("?1>0?1:0"),
73 # ),
74 
75 
76 
77 # cms.PSet(
78 # tag = cms.untracked.string("Dau1NofHit"),
79 # quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon=1 || daughter(0).masterClone.isTrackerMuon=1)?daughter(0).masterClone.numberOfValidHits:daughter(0).masterClone.outerTrack.numberOfValidHits")
80 # ),
81 # cms.PSet(
82 # tag = cms.untracked.string("Dau1NofHitTk"),
83 # quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 || daughter(0).masterClone.isTrackerMuon=1)?daughter(0).masterClone.innerTrack.numberOfValidHits:0")
84 # ),
85 # cms.PSet(
86 # tag = cms.untracked.string("Dau1NofHitSta"),
87 # quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 ||daughter(0).masterClone.isStandAloneMuon==1 ) ? daughter(0).masterClone.outerTrack.numberOfValidHits : 0")
88 # ),
89 # cms.PSet(
90 # tag = cms.untracked.string("Dau1NofMuChambers"),
91 # quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 ||daughter(0).masterClone.isStandAloneMuon==1 ) ? daughter(0).masterClone.numberOfChambers :0")
92 # ),
93 # cms.PSet(
94 # tag = cms.untracked.string("Dau1NofMuMatches"),
95 # quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 ||daughter(0).masterClone.isStandAloneMuon==1 ) ? daughter(0).masterClone.numberOfMatches : 0")
96 # ),
97 
98  cms.PSet(
99  tag = cms.untracked.string("Dau1Iso"),
100  quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User4Iso')")
101  ),
102  cms.PSet(
103  tag = cms.untracked.string("Dau2Iso"),
104  quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User4Iso')")
105  ),
106  cms.PSet(
107  tag = cms.untracked.string("Dau1relIso"),
108  quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User5Iso')")
109  ),
110  cms.PSet(
111  tag = cms.untracked.string("Dau2relIso"),
112  quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User5Iso')")
113  ),
114  cms.PSet(
115  tag = cms.untracked.string("Dau1TrkIso"),
116  quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User1Iso')")
117  ),
118  cms.PSet(
119  tag = cms.untracked.string("Dau2TrkIso"),
120  quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User1Iso')")
121  ),
122  cms.PSet(
123  tag = cms.untracked.string("Dau1EcalIso"),
124  quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User2Iso')")
125  ),
126  cms.PSet(
127  tag = cms.untracked.string("Dau2EcalIso"),
128  quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User2Iso')")
129  ),
130  cms.PSet(
131  tag = cms.untracked.string("Dau1HcalIso"),
132  quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User3Iso')")
133  ),
134  cms.PSet(
135  tag = cms.untracked.string("Dau2HcalIso"),
136  quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User3Iso')")
137  ),
138  cms.PSet(
139  tag = cms.untracked.string("Dau1dxyFromBS"),
140  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_dxyFromBS')")
141  ),
142  cms.PSet(
143  tag = cms.untracked.string("Dau1dzFromBS"),
144  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_dzFromBS')")
145  ),
146  cms.PSet(
147  tag = cms.untracked.string("Dau1dxyFromPV"),
148  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_dxyFromPV')")
149  ),
150  cms.PSet(
151  tag = cms.untracked.string("Dau1dzFromPV"),
152  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_dzFromPV')")
153  ),
154  cms.PSet(
155  tag = cms.untracked.string("Dau1HLTBit"),
156  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTBit')")
157  ),
158  cms.PSet(
159  tag = cms.untracked.string("Dau1HLTSize"),
160  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTSize')")
161  ),
162 cms.PSet(
163  tag = cms.untracked.string("Dau1HLTDeltaR"),
164  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTDeltaR')")
165  ),
166 cms.PSet(
167  tag = cms.untracked.string("Dau1HLTDeltaEta"),
168  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTDeltaEta')")
169  ),
170 cms.PSet(
171  tag = cms.untracked.string("Dau1HLTDeltaPhi"),
172  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTDeltaPhi')")
173  ),
174 cms.PSet(
175  tag = cms.untracked.string("Dau1HLTDeltaPtOverPt"),
176  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTDeltaPtOverPt')")
177  ),
178 cms.PSet(
179  tag = cms.untracked.string("Dau1HLTPt"),
180  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTPt')")
181  ),
182  cms.PSet(
183  tag = cms.untracked.string("Dau2dxyFromBS"),
184  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_dxyFromBS')")
185  ),
186  cms.PSet(
187  tag = cms.untracked.string("Dau2dzFromBS"),
188  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_dzFromBS')")
189  ),
190  cms.PSet(
191  tag = cms.untracked.string("Dau2dxyFromPV"),
192  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_dxyFromPV')")
193  ),
194  cms.PSet(
195  tag = cms.untracked.string("Dau2dzFromPV"),
196  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_dzFromPV')")
197  ),
198  cms.PSet(
199  tag = cms.untracked.string("VtxNormChi2"),
200  quantity = cms.untracked.string("vertexNormalizedChi2")
201  ),
202 
203 # cms.PSet(
204 # tag = cms.untracked.string("Dau1TrkChi2"),
205 # quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 || daughter(0).masterClone.isTrackerMuon=1)?daughter(0).masterClone.innerTrack.normalizedChi2:0")
206 # ),
207 # cms.PSet(
208 # tag = cms.untracked.string("Dau1MuEnergyHad"),
209 # quantity = cms.untracked.string("?daughter(0).masterClone.isGlobalMuon==1||daughter(0).masterClone.isTrackerMuon==1 ?daughter(0).masterClone.calEnergy.had:-1")
210 # ),
211  # cms.PSet(
212  # tag = cms.untracked.string("Dau1MuEnergyEm"),
213  # quantity = cms.untracked.string("?daughter(0).masterClone.isGlobalMuon==1||daughter(0).masterClone.isTrackerMuon==1 ?daughter(0).masterClone.calEnergy.em:-1")
214  # ),
215  cms.PSet(
216  tag = cms.untracked.string("TrueMass"),
217  quantity = cms.untracked.string("userFloat('TrueMass')")
218  ),
219  cms.PSet(
220  tag = cms.untracked.string("TruePt"),
221  quantity = cms.untracked.string("userFloat('TruePt')")
222  ),
223  cms.PSet(
224  tag = cms.untracked.string("TrueEta"),
225  quantity = cms.untracked.string("userFloat('TrueEta')")
226  ),
227  cms.PSet(
228  tag = cms.untracked.string("TruePhi"),
229  quantity = cms.untracked.string("userFloat('TruePhi')")
230  ),
231  cms.PSet(
232  tag = cms.untracked.string("TrueY"),
233  quantity = cms.untracked.string("userFloat('TrueY')")
234  ),
235  cms.PSet(
236  tag = cms.untracked.string("Dau1Chi2"),
237  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_Chi2')")
238  ),
239  cms.PSet(
240  tag = cms.untracked.string("Dau1TrkChi2"),
241  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_TrkChi2')")
242  ),
243  cms.PSet(
244  tag = cms.untracked.string("Dau1SaChi2"),
245  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_SaChi2')")
246  ),
247  cms.PSet(
248  tag = cms.untracked.string("Dau2Chi2"),
249  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_Chi2')")
250  ),
251  cms.PSet(
252  tag = cms.untracked.string("Dau2TrkChi2"),
253  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_TrkChi2')")
254  ),
255  cms.PSet(
256  tag = cms.untracked.string("Dau2SaChi2"),
257  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_SaChi2')")
258  ),
259  cms.PSet(
260  tag = cms.untracked.string("Dau1NofMuonHits"),
261  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofMuonHits')")
262  ),
263  cms.PSet(
264  tag = cms.untracked.string("Dau1SaNofMuonHits"),
265  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_SaNofMuonHits')")
266  ),
267  cms.PSet(
268  tag = cms.untracked.string("Dau2NofMuonHits"),
269  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofMuonHits')")
270  ),
271  cms.PSet(
272  tag = cms.untracked.string("Dau2SaNofMuonHits"),
273  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_SaNofMuonHits')")
274  ),
275  cms.PSet(
276  tag = cms.untracked.string("Dau1NofStripHits"),
277  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofStripHits')")
278  ),
279  cms.PSet(
280  tag = cms.untracked.string("Dau1NofPixelHits"),
281  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofPixelHits')")
282  ),
283  cms.PSet(
284  tag = cms.untracked.string("Dau1TrkNofStripHits"),
285  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_TrkNofStripHits')")
286  ),
287  cms.PSet(
288  tag = cms.untracked.string("Dau2TrkNofStripHits"),
289  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_TrkNofStripHits')")
290  ),
291  cms.PSet(
292  tag = cms.untracked.string("Dau1TrkNofPixelHits"),
293  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_TrkNofPixelHits')")
294  ),
295  cms.PSet(
296  tag = cms.untracked.string("Dau2TrkNofPixelHits"),
297  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_TrkNofPixelHits')")
298  ),
299  cms.PSet(
300  tag = cms.untracked.string("Dau1NofMuChambers"),
301  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofMuChambers')")
302  ),
303  cms.PSet(
304  tag = cms.untracked.string("Dau2NofMuChambers"),
305  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofMuChambers')")
306  ),
307  cms.PSet(
308  tag = cms.untracked.string("Dau1NofMuMatches"),
309  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofMuMatches')")
310  ),
311  cms.PSet(
312  tag = cms.untracked.string("Dau2NofMuMatches"),
313  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofMuMatches')")
314  ),
315  cms.PSet(
316  tag = cms.untracked.string("Dau1MuEnergyEm"),
317  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_MuEnergyEm')")
318  ),
319  cms.PSet(
320  tag = cms.untracked.string("Dau2MuEnergyEm"),
321  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_MuEnergyEm')")
322  ),
323  cms.PSet(
324  tag = cms.untracked.string("Dau1MuEnergyHad"),
325  quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_MuEnergyHad')")
326  ),
327  cms.PSet(
328  tag = cms.untracked.string("Dau2MuEnergyHad"),
329  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_MuEnergyHad')")
330  ),
331 
332  )
333 
334  )
335 
336 
337 
338 
339 
340 zMuMu=(
341 
342 
343 # cms.PSet(
344 # tag = cms.untracked.string("Dau2NofHitSta"),
345 
346 # quantity = cms.untracked.string("?(daughter(1).masterClone.isGlobalMuon==1 ||daughter(1).masterClone.isStandAloneMuon==1 )?daughter(1).masterClone.outerTrack.numberOfValidHits: -1")
347 # ),
348 # cms.PSet(
349 # tag = cms.untracked.string("Dau2NofMuChambers"),
350 # quantity = cms.untracked.string("?(daughter(1).masterClone.isGlobalMuon==1 ||daughter(1).masterClone.isStandAloneMuon==1 )?daughter(1).masterClone.numberOfChambers: -1")
351 # ),
352 # cms.PSet(
353 # tag = cms.untracked.string("Dau2NofMuMatches"),
354 # quantity = cms.untracked.string("?(daughter(1).masterClone.isGlobalMuon==1 ||daughter(1).masterClone.isStandAloneMuon==1 )?daughter(1).masterClone.numberOfMatches: -1")
355 # ),
356  cms.PSet(
357  tag = cms.untracked.string("Dau2HLTBit"),
358  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTBit')")
359  ),
360 cms.PSet(
361  tag = cms.untracked.string("Dau2HLTSize"),
362  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTSize')")
363  ),
364 cms.PSet(
365  tag = cms.untracked.string("Dau2HLTDeltaR"),
366  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTDeltaR')")
367  ),
368 cms.PSet(
369  tag = cms.untracked.string("Dau2HLTDeltaEta"),
370  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTDeltaEta')")
371  ),
372 cms.PSet(
373  tag = cms.untracked.string("Dau2HLTDeltaPhi"),
374  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTDeltaPhi')")
375  ),
376 cms.PSet(
377  tag = cms.untracked.string("Dau2HLTDeltaPtOverPt"),
378  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTDeltaPtOverPt')")
379  ),
380 cms.PSet(
381  tag = cms.untracked.string("Dau2HLTPt"),
382  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTPt')")
383  ),
384 
385 
386 
387 
388 # cms.PSet(
389 # tag = cms.untracked.string("Dau2MuEnergyHad"),
390 # quantity = cms.untracked.string("?daughter(1).masterClone.isGlobalMuon==1 ||daughter(1).masterClone.isTrackerMuon==1?daughter(1).masterClone.calEnergy.had:-1")
391 # ),
392 # cms.PSet(
393 # tag = cms.untracked.string("Dau2MuEnergyEm"),
394 # quantity = cms.untracked.string("?daughter(1).masterClone.isGlobalMuon==1 ||daughter(1).masterClone.isTrackerMuon==1?daughter(1).masterClone.calEnergy.em:-1")
395 # ),
396 
397  cms.PSet(
398  tag = cms.untracked.string("Dau1GlobalMuonBit"),
399  quantity = cms.untracked.string("daughter(0).masterClone.isGlobalMuon")
400  ),
401  cms.PSet(
402  tag = cms.untracked.string("Dau2GlobalMuonBit"),
403  quantity = cms.untracked.string("daughter(1).masterClone.isGlobalMuon")
404  ),
405  cms.PSet(
406  tag = cms.untracked.string("Dau1StandAloneBit"),
407  quantity = cms.untracked.string("daughter(0).masterClone.isStandAloneMuon")
408  ),
409  cms.PSet(
410  tag = cms.untracked.string("Dau2StandAloneBit"),
411  quantity = cms.untracked.string("daughter(1).masterClone.isStandAloneMuon")
412  ),
413  cms.PSet(
414  tag = cms.untracked.string("Dau1TrackerMuonBit"),
415  quantity = cms.untracked.string("daughter(0).masterClone.isTrackerMuon")
416  ),
417  cms.PSet(
418  tag = cms.untracked.string("Dau2TrackerMuonBit"),
419  quantity = cms.untracked.string("daughter(1).masterClone.isTrackerMuon")
420  ),
421  cms.PSet(
422  tag = cms.untracked.string("Dau2NofStripHits"),
423  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofStripHits')")
424  ),
425  cms.PSet(
426  tag = cms.untracked.string("Dau2NofPixelHits"),
427  quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofPixelHits')")
428  ),
429  cms.PSet(
430  tag = cms.untracked.string("Dau1Iso03SumPt"),
431  quantity = cms.untracked.string("daughter(0).masterClone.trackIso")
432  ),
433  cms.PSet(
434  tag = cms.untracked.string("Dau2Iso03SumPt"),
435  quantity = cms.untracked.string("daughter(1).masterClone.trackIso")
436  ),
437  cms.PSet(
438  tag = cms.untracked.string("Dau1Iso03EmEt"),
439  quantity = cms.untracked.string("daughter(0).masterClone.ecalIso")
440  ),
441  cms.PSet(
442  tag = cms.untracked.string("Dau2Iso03EmEt"),
443  quantity = cms.untracked.string("daughter(1).masterClone.ecalIso")
444  ),
445  cms.PSet(
446  tag = cms.untracked.string("Dau1Iso03HadEt"),
447  quantity = cms.untracked.string("daughter(0).masterClone.hcalIso")
448  ),
449  cms.PSet(
450  tag = cms.untracked.string("Dau2Iso03HadEt"),
451  quantity = cms.untracked.string("daughter(1).masterClone.hcalIso")
452  ),
453 
454 
455 
456 
457  )
458 
459 
460 
461 
462 zGolden=(
463 
464 
465 
485 
486 
498 
499 
500 
501 
513 
514 
515 
523 
524 
544  cms.PSet(
545  tag = cms.untracked.string("SaGlbMass"),
546  quantity = cms.untracked.string("userFloat('SaGlbMass')")
547  ),
548  cms.PSet(
549  tag = cms.untracked.string("GlbSaMass"),
550  quantity = cms.untracked.string("userFloat('GlbSaMass')")
551  ),
552  cms.PSet(
553  tag = cms.untracked.string("SaSaMass"),
554  quantity = cms.untracked.string("userFloat('SaSaMass')")
555  ),
556  cms.PSet(
557  tag = cms.untracked.string("MassSa"),
558  quantity = cms.untracked.string("userFloat('MassSa')")
559  ),
560  cms.PSet(
561  tag = cms.untracked.string("Dau1SaPt"),
562  quantity = cms.untracked.string("userFloat('Dau1SaPt')")
563  ),
564  cms.PSet(
565  tag = cms.untracked.string("Dau2SaPt"),
566  quantity = cms.untracked.string("userFloat('Dau2SaPt')")
567  ),
568  cms.PSet(
569  tag = cms.untracked.string("Dau1SaEta"),
570  quantity = cms.untracked.string("userFloat('Dau1SaEta')")
571  ),
572  cms.PSet(
573  tag = cms.untracked.string("Dau2SaEta"),
574  quantity = cms.untracked.string("userFloat('Dau2SaEta')")
575  ),
576  cms.PSet(
577  tag = cms.untracked.string("Dau1SaPhi"),
578  quantity = cms.untracked.string("userFloat('Dau1SaPhi')")
579  ),
580  cms.PSet(
581  tag = cms.untracked.string("Dau2SaPhi"),
582  quantity = cms.untracked.string("userFloat('Dau2SaPhi')")
583  ),
584 
585  )
586 
587 
588 
589 
590 
591 zMuSa = (
592 
593 # cms.PSet(
594 # tag= cms.untracked.string("Dau2NofHit"),
595 # quantity = cms.untracked.string("?daughter(1).masterClone.isStandAloneMuon==1?daughter(1).masterClone.outerTrack.numberOfValidHits:daughter(1).masterClone.numberOfValidHits")
596 # ),
597 # cms.PSet(
598 # tag = cms.untracked.string("Dau2Chi2"),
599 # quantity = cms.untracked.string("?daughter(1).masterClone.isStandAloneMuon==1?daughter(1).masterClone.outerTrack.normalizedChi2:daughter(1).masterClone.normChi2")
600 # ),
601 
602  )
603 
604 
605 
606 
607 zMuTrkMu=(
608 # cms.PSet(
609 # tag = cms.untracked.string("Dau1Chi2"),
610 # quantity = cms.untracked.string("?daughter(0).masterClone.isTrackerMuon==1 ? daughter(0).masterClone.innerTrack.normalizedChi2 : daughter(0).masterClone.normChi2")
611 # ),
612 # cms.PSet(
613 # tag = cms.untracked.string("Dau2Chi2"),
614 # quantity = cms.untracked.string("?daughter(1).masterClone.isTrackerMuon==1 ? daughter(1).masterClone.innerTrack.normalizedChi2 : daughter(1).masterClone.normChi2")
615 # ),
616 # cms.PSet(
617 # tag = cms.untracked.string("Dau2NofHit"),
618 # quantity = cms.untracked.string("?daughter(1).masterClone.isTrackerMuon==1 ? daughter(1).masterClone.innerTrack.numberOfValidHits: daughter(1).masterClone.numberOfValidHits")
619 # ),
620 # cms.PSet(
621 # tag = cms.untracked.string("Dau2NofHitTk"),
622 # quantity = cms.untracked.string("daughter(1).masterClone.innerTrack.numberOfValidHits")
623 # ),
624 #
625  )
626 
627 
628 
629 
630 
631 zMuTrk =(
632 
644 
645  cms.PSet(
646  tag = cms.untracked.string("Dau1GlobalMuonBit"),
647  quantity = cms.untracked.string("daughter(0).masterClone.isGlobalMuon")
648  ),
649  cms.PSet(
650  tag = cms.untracked.string("Dau1StandAloneBit"),
651  quantity = cms.untracked.string("daughter(0).masterClone.isStandAloneMuon")
652  ),
653  cms.PSet(
654  tag = cms.untracked.string("Dau1TrackerMuonBit"),
655  quantity = cms.untracked.string("daughter(0).masterClone.isTrackerMuon")
656  ),
657  cms.PSet(
658  tag = cms.untracked.string("Dau1Iso03SumPt"),
659  quantity = cms.untracked.string("daughter(0).masterClone.trackIso")
660  ),
661  cms.PSet(
662  tag = cms.untracked.string("Dau2Iso03SumPt"),
663  quantity = cms.untracked.string("daughter(1).masterClone.trackIso")
664  ),
665  cms.PSet(
666  tag = cms.untracked.string("Dau1Iso03EmEt"),
667  quantity = cms.untracked.string("daughter(0).masterClone.ecalIso")
668  ),
669  cms.PSet(
670  tag = cms.untracked.string("Dau2Iso03EmEt"),
671  quantity = cms.untracked.string("daughter(1).masterClone.ecalIso")
672  ),
673  cms.PSet(
674  tag = cms.untracked.string("Dau1Iso03HadEt"),
675  quantity = cms.untracked.string("daughter(0).masterClone.hcalIso")
676  ),
677  cms.PSet(
678  tag = cms.untracked.string("Dau2Iso03HadEt"),
679  quantity = cms.untracked.string("daughter(1).masterClone.hcalIso")
680  )
681 
682  )
683 
684 
685 
686 goodZToMuMuEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
687 goodZToMuMuEdmNtupleLoose.variables += zMuMu
688 goodZToMuMuEdmNtupleLoose.variables += zGolden
689 goodZToMuMuEdmNtupleLoose.prefix = cms.untracked.string("zGolden")
690 goodZToMuMuPathLoose.__iadd__(goodZToMuMuEdmNtupleLoose)
691 goodZToMuMuPathLoose.setLabel("goodZToMuMuEdmLoose")
692 
693 
694 goodZToMuMuSameChargeEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
695 goodZToMuMuSameChargeEdmNtupleLoose.src = cms.InputTag("goodZToMuMuSameChargeAtLeast1HLTLoose")
696 goodZToMuMuSameChargeEdmNtupleLoose.prefix = cms.untracked.string("zSameCharge")
697 goodZToMuMuSameChargeEdmNtupleLoose.variables += zMuMu
698 goodZToMuMuSameChargeEdmNtupleLoose.variables += zGolden
699 goodZToMuMuSameChargePathLoose.__iadd__(goodZToMuMuSameChargeEdmNtupleLoose)
700 goodZToMuMuSameChargePathLoose.setLabel("goodZToMuMuSameChargeLoose")
701 
702 
703 
704 goodZToMuMuOneStandAloneEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
705 goodZToMuMuOneStandAloneEdmNtupleLoose.src=cms.InputTag("goodZToMuMuOneStandAloneMuonFirstHLTLoose")
706 goodZToMuMuOneStandAloneEdmNtupleLoose.prefix=cms.untracked.string("zMuSta")
707 goodZToMuMuOneStandAloneEdmNtupleLoose.variables += zMuMu
708 goodZToMuMuOneStandAloneEdmNtupleLoose.variables += zMuSa
709 goodZToMuMuOneStandAloneMuonPathLoose.__iadd__(goodZToMuMuOneStandAloneEdmNtupleLoose)
710 goodZToMuMuOneStandAloneMuonPathLoose.setLabel("goodZToMuMuOneStandAloneMuonLoose")
711 
712 goodZToMuMuOneTrackEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
713 goodZToMuMuOneTrackEdmNtupleLoose.src=cms.InputTag("goodZToMuMuOneTrackFirstHLTLoose")
714 goodZToMuMuOneTrackEdmNtupleLoose.prefix=cms.untracked.string("zMuTrk")
715 goodZToMuMuOneTrackEdmNtupleLoose.variables += zMuTrk
716 goodZToMuMuOneTrackPathLoose.__iadd__(goodZToMuMuOneTrackEdmNtupleLoose)
717 goodZToMuMuOneTrackPathLoose.setLabel("goodZToMuMuOneTrackLoose")
718 
719 goodZToMuMuOneTrackerMuonEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
720 goodZToMuMuOneTrackerMuonEdmNtupleLoose.src=cms.InputTag("goodZToMuMuOneTrackerMuonFirstHLTLoose")
721 goodZToMuMuOneTrackerMuonEdmNtupleLoose.prefix=cms.untracked.string("zMuTrkMu")
722 goodZToMuMuOneTrackerMuonEdmNtupleLoose.variables += zMuMu
723 goodZToMuMuOneTrackerMuonEdmNtupleLoose.variables += zMuTrkMu
724 goodZToMuMuOneTrackerMuonPathLoose.__iadd__(goodZToMuMuOneTrackerMuonEdmNtupleLoose)
725 goodZToMuMuOneTrackerMuonPathLoose.setLabel("goodZToMuMuOneTrackerMuonLoose")
726 
727 
728 ntuplesOut = cms.OutputModule(
729  "PoolOutputModule",
730  fileName = cms.untracked.string('NtupleLooseTestNew.root'),
731  outputCommands = cms.untracked.vstring(
732  "drop *",
733  "keep *_eventVtxInfoNtuple_*_*",
734  "keep *_goodZToMuMuEdmNtupleLoose_*_*",
735  "keep *_goodZToMuMuSameChargeEdmNtupleLoose_*_*",
736  "keep *_goodZToMuMuOneStandAloneEdmNtupleLoose_*_*",
737  "keep *_goodZToMuMuOneTrackEdmNtupleLoose_*_*",
738  "keep *_goodZToMuMuOneTrackerMuonEdmNtupleLoose_*_*",
739 
740  )
741  )
742 
743 
744 ntuplesOut.setLabel("ntuplesOut")
745 NtuplesOut.__iadd__(ntuplesOut)
746 NtuplesOut.setLabel("NtuplesOut")
747 
748 
ZMuMuCategoriesSequences_cff