1 import FWCore.ParameterSet.Config
as cms
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(
18 tag = cms.untracked.string(
"Mass"),
19 quantity = cms.untracked.string(
"mass")
22 tag = cms.untracked.string(
"Pt"),
23 quantity = cms.untracked.string(
"pt")
26 tag = cms.untracked.string(
"Eta"),
27 quantity = cms.untracked.string(
"eta")
30 tag = cms.untracked.string(
"Phi"),
31 quantity = cms.untracked.string(
"phi")
34 tag = cms.untracked.string(
"Y"),
35 quantity = cms.untracked.string(
"rapidity")
38 tag = cms.untracked.string(
"Dau1Pt"),
39 quantity = cms.untracked.string(
"daughter(0).masterClone.pt")
42 tag = cms.untracked.string(
"Dau2Pt"),
43 quantity = cms.untracked.string(
"daughter(1).masterClone.pt")
46 tag = cms.untracked.string(
"Dau1Q"),
47 quantity = cms.untracked.string(
"daughter(0).masterClone.charge")
50 tag = cms.untracked.string(
"Dau2Q"),
51 quantity = cms.untracked.string(
"daughter(1).masterClone.charge")
54 tag = cms.untracked.string(
"Dau1Eta"),
55 quantity = cms.untracked.string(
"daughter(0).masterClone.eta")
58 tag = cms.untracked.string(
"Dau2Eta"),
59 quantity = cms.untracked.string(
"daughter(1).masterClone.eta")
62 tag = cms.untracked.string(
"Dau1Phi"),
63 quantity = cms.untracked.string(
"daughter(0).masterClone.phi")
66 tag = cms.untracked.string(
"Dau2Phi"),
67 quantity = cms.untracked.string(
"daughter(1).masterClone.phi")
99 tag = cms.untracked.string(
"Dau1Iso"),
100 quantity = cms.untracked.string(
"daughter(0).masterClone.userIsolation('pat::User4Iso')")
103 tag = cms.untracked.string(
"Dau2Iso"),
104 quantity = cms.untracked.string(
"daughter(1).masterClone.userIsolation('pat::User4Iso')")
107 tag = cms.untracked.string(
"Dau1relIso"),
108 quantity = cms.untracked.string(
"daughter(0).masterClone.userIsolation('pat::User5Iso')")
111 tag = cms.untracked.string(
"Dau2relIso"),
112 quantity = cms.untracked.string(
"daughter(1).masterClone.userIsolation('pat::User5Iso')")
115 tag = cms.untracked.string(
"Dau1TrkIso"),
116 quantity = cms.untracked.string(
"daughter(0).masterClone.userIsolation('pat::User1Iso')")
119 tag = cms.untracked.string(
"Dau2TrkIso"),
120 quantity = cms.untracked.string(
"daughter(1).masterClone.userIsolation('pat::User1Iso')")
123 tag = cms.untracked.string(
"Dau1EcalIso"),
124 quantity = cms.untracked.string(
"daughter(0).masterClone.userIsolation('pat::User2Iso')")
127 tag = cms.untracked.string(
"Dau2EcalIso"),
128 quantity = cms.untracked.string(
"daughter(1).masterClone.userIsolation('pat::User2Iso')")
131 tag = cms.untracked.string(
"Dau1HcalIso"),
132 quantity = cms.untracked.string(
"daughter(0).masterClone.userIsolation('pat::User3Iso')")
135 tag = cms.untracked.string(
"Dau2HcalIso"),
136 quantity = cms.untracked.string(
"daughter(1).masterClone.userIsolation('pat::User3Iso')")
139 tag = cms.untracked.string(
"Dau1dxyFromBS"),
140 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_dxyFromBS')")
143 tag = cms.untracked.string(
"Dau1dzFromBS"),
144 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_dzFromBS')")
147 tag = cms.untracked.string(
"Dau1dxyFromPV"),
148 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_dxyFromPV')")
151 tag = cms.untracked.string(
"Dau1dzFromPV"),
152 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_dzFromPV')")
155 tag = cms.untracked.string(
"Dau1HLTBit"),
156 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_HLTBit')")
159 tag = cms.untracked.string(
"Dau1HLTSize"),
160 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_HLTSize')")
163 tag = cms.untracked.string(
"Dau1HLTDeltaR"),
164 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_HLTDeltaR')")
167 tag = cms.untracked.string(
"Dau1HLTDeltaEta"),
168 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_HLTDeltaEta')")
171 tag = cms.untracked.string(
"Dau1HLTDeltaPhi"),
172 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_HLTDeltaPhi')")
175 tag = cms.untracked.string(
"Dau1HLTDeltaPtOverPt"),
176 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_HLTDeltaPtOverPt')")
179 tag = cms.untracked.string(
"Dau1HLTPt"),
180 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_HLTPt')")
183 tag = cms.untracked.string(
"Dau2dxyFromBS"),
184 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_dxyFromBS')")
187 tag = cms.untracked.string(
"Dau2dzFromBS"),
188 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_dzFromBS')")
191 tag = cms.untracked.string(
"Dau2dxyFromPV"),
192 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_dxyFromPV')")
195 tag = cms.untracked.string(
"Dau2dzFromPV"),
196 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_dzFromPV')")
199 tag = cms.untracked.string(
"VtxNormChi2"),
200 quantity = cms.untracked.string(
"vertexNormalizedChi2")
216 tag = cms.untracked.string(
"TrueMass"),
217 quantity = cms.untracked.string(
"userFloat('TrueMass')")
220 tag = cms.untracked.string(
"TruePt"),
221 quantity = cms.untracked.string(
"userFloat('TruePt')")
224 tag = cms.untracked.string(
"TrueEta"),
225 quantity = cms.untracked.string(
"userFloat('TrueEta')")
228 tag = cms.untracked.string(
"TruePhi"),
229 quantity = cms.untracked.string(
"userFloat('TruePhi')")
232 tag = cms.untracked.string(
"TrueY"),
233 quantity = cms.untracked.string(
"userFloat('TrueY')")
236 tag = cms.untracked.string(
"Dau1Chi2"),
237 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_Chi2')")
240 tag = cms.untracked.string(
"Dau1TrkChi2"),
241 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_TrkChi2')")
244 tag = cms.untracked.string(
"Dau1SaChi2"),
245 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_SaChi2')")
248 tag = cms.untracked.string(
"Dau2Chi2"),
249 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_Chi2')")
252 tag = cms.untracked.string(
"Dau2TrkChi2"),
253 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_TrkChi2')")
256 tag = cms.untracked.string(
"Dau2SaChi2"),
257 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_SaChi2')")
260 tag = cms.untracked.string(
"Dau1NofMuonHits"),
261 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_NofMuonHits')")
264 tag = cms.untracked.string(
"Dau1SaNofMuonHits"),
265 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_SaNofMuonHits')")
268 tag = cms.untracked.string(
"Dau2NofMuonHits"),
269 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_NofMuonHits')")
272 tag = cms.untracked.string(
"Dau2SaNofMuonHits"),
273 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_SaNofMuonHits')")
276 tag = cms.untracked.string(
"Dau1NofStripHits"),
277 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_NofStripHits')")
280 tag = cms.untracked.string(
"Dau1NofPixelHits"),
281 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_NofPixelHits')")
284 tag = cms.untracked.string(
"Dau1TrkNofStripHits"),
285 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_TrkNofStripHits')")
288 tag = cms.untracked.string(
"Dau2TrkNofStripHits"),
289 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_TrkNofStripHits')")
292 tag = cms.untracked.string(
"Dau1TrkNofPixelHits"),
293 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_TrkNofPixelHits')")
296 tag = cms.untracked.string(
"Dau2TrkNofPixelHits"),
297 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_TrkNofPixelHits')")
300 tag = cms.untracked.string(
"Dau1NofMuChambers"),
301 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_NofMuChambers')")
304 tag = cms.untracked.string(
"Dau2NofMuChambers"),
305 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_NofMuChambers')")
308 tag = cms.untracked.string(
"Dau1NofMuMatches"),
309 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_NofMuMatches')")
312 tag = cms.untracked.string(
"Dau2NofMuMatches"),
313 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_NofMuMatches')")
316 tag = cms.untracked.string(
"Dau1MuEnergyEm"),
317 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_MuEnergyEm')")
320 tag = cms.untracked.string(
"Dau2MuEnergyEm"),
321 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_MuEnergyEm')")
324 tag = cms.untracked.string(
"Dau1MuEnergyHad"),
325 quantity = cms.untracked.string(
"daughter(0).masterClone.userFloat('zDau_MuEnergyHad')")
328 tag = cms.untracked.string(
"Dau2MuEnergyHad"),
329 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_MuEnergyHad')")
357 tag = cms.untracked.string(
"Dau2HLTBit"),
358 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_HLTBit')")
361 tag = cms.untracked.string(
"Dau2HLTSize"),
362 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_HLTSize')")
365 tag = cms.untracked.string(
"Dau2HLTDeltaR"),
366 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_HLTDeltaR')")
369 tag = cms.untracked.string(
"Dau2HLTDeltaEta"),
370 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_HLTDeltaEta')")
373 tag = cms.untracked.string(
"Dau2HLTDeltaPhi"),
374 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_HLTDeltaPhi')")
377 tag = cms.untracked.string(
"Dau2HLTDeltaPtOverPt"),
378 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_HLTDeltaPtOverPt')")
381 tag = cms.untracked.string(
"Dau2HLTPt"),
382 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_HLTPt')")
398 tag = cms.untracked.string(
"Dau1GlobalMuonBit"),
399 quantity = cms.untracked.string(
"daughter(0).masterClone.isGlobalMuon")
402 tag = cms.untracked.string(
"Dau2GlobalMuonBit"),
403 quantity = cms.untracked.string(
"daughter(1).masterClone.isGlobalMuon")
406 tag = cms.untracked.string(
"Dau1StandAloneBit"),
407 quantity = cms.untracked.string(
"daughter(0).masterClone.isStandAloneMuon")
410 tag = cms.untracked.string(
"Dau2StandAloneBit"),
411 quantity = cms.untracked.string(
"daughter(1).masterClone.isStandAloneMuon")
414 tag = cms.untracked.string(
"Dau1TrackerMuonBit"),
415 quantity = cms.untracked.string(
"daughter(0).masterClone.isTrackerMuon")
418 tag = cms.untracked.string(
"Dau2TrackerMuonBit"),
419 quantity = cms.untracked.string(
"daughter(1).masterClone.isTrackerMuon")
422 tag = cms.untracked.string(
"Dau2NofStripHits"),
423 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_NofStripHits')")
426 tag = cms.untracked.string(
"Dau2NofPixelHits"),
427 quantity = cms.untracked.string(
"daughter(1).masterClone.userFloat('zDau_NofPixelHits')")
430 tag = cms.untracked.string(
"Dau1Iso03SumPt"),
431 quantity = cms.untracked.string(
"daughter(0).masterClone.trackIso")
434 tag = cms.untracked.string(
"Dau2Iso03SumPt"),
435 quantity = cms.untracked.string(
"daughter(1).masterClone.trackIso")
438 tag = cms.untracked.string(
"Dau1Iso03EmEt"),
439 quantity = cms.untracked.string(
"daughter(0).masterClone.ecalIso")
442 tag = cms.untracked.string(
"Dau2Iso03EmEt"),
443 quantity = cms.untracked.string(
"daughter(1).masterClone.ecalIso")
446 tag = cms.untracked.string(
"Dau1Iso03HadEt"),
447 quantity = cms.untracked.string(
"daughter(0).masterClone.hcalIso")
450 tag = cms.untracked.string(
"Dau2Iso03HadEt"),
451 quantity = cms.untracked.string(
"daughter(1).masterClone.hcalIso")
545 tag = cms.untracked.string(
"SaGlbMass"),
546 quantity = cms.untracked.string(
"userFloat('SaGlbMass')")
549 tag = cms.untracked.string(
"GlbSaMass"),
550 quantity = cms.untracked.string(
"userFloat('GlbSaMass')")
553 tag = cms.untracked.string(
"SaSaMass"),
554 quantity = cms.untracked.string(
"userFloat('SaSaMass')")
557 tag = cms.untracked.string(
"MassSa"),
558 quantity = cms.untracked.string(
"userFloat('MassSa')")
561 tag = cms.untracked.string(
"Dau1SaPt"),
562 quantity = cms.untracked.string(
"userFloat('Dau1SaPt')")
565 tag = cms.untracked.string(
"Dau2SaPt"),
566 quantity = cms.untracked.string(
"userFloat('Dau2SaPt')")
569 tag = cms.untracked.string(
"Dau1SaEta"),
570 quantity = cms.untracked.string(
"userFloat('Dau1SaEta')")
573 tag = cms.untracked.string(
"Dau2SaEta"),
574 quantity = cms.untracked.string(
"userFloat('Dau2SaEta')")
577 tag = cms.untracked.string(
"Dau1SaPhi"),
578 quantity = cms.untracked.string(
"userFloat('Dau1SaPhi')")
581 tag = cms.untracked.string(
"Dau2SaPhi"),
582 quantity = cms.untracked.string(
"userFloat('Dau2SaPhi')")
646 tag = cms.untracked.string(
"Dau1GlobalMuonBit"),
647 quantity = cms.untracked.string(
"daughter(0).masterClone.isGlobalMuon")
650 tag = cms.untracked.string(
"Dau1StandAloneBit"),
651 quantity = cms.untracked.string(
"daughter(0).masterClone.isStandAloneMuon")
654 tag = cms.untracked.string(
"Dau1TrackerMuonBit"),
655 quantity = cms.untracked.string(
"daughter(0).masterClone.isTrackerMuon")
658 tag = cms.untracked.string(
"Dau1Iso03SumPt"),
659 quantity = cms.untracked.string(
"daughter(0).masterClone.trackIso")
662 tag = cms.untracked.string(
"Dau2Iso03SumPt"),
663 quantity = cms.untracked.string(
"daughter(1).masterClone.trackIso")
666 tag = cms.untracked.string(
"Dau1Iso03EmEt"),
667 quantity = cms.untracked.string(
"daughter(0).masterClone.ecalIso")
670 tag = cms.untracked.string(
"Dau2Iso03EmEt"),
671 quantity = cms.untracked.string(
"daughter(1).masterClone.ecalIso")
674 tag = cms.untracked.string(
"Dau1Iso03HadEt"),
675 quantity = cms.untracked.string(
"daughter(0).masterClone.hcalIso")
678 tag = cms.untracked.string(
"Dau2Iso03HadEt"),
679 quantity = cms.untracked.string(
"daughter(1).masterClone.hcalIso")
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")
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")
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")
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")
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")
728 ntuplesOut = cms.OutputModule(
730 fileName = cms.untracked.string(
'NtupleLooseTestNew.root'),
731 outputCommands = cms.untracked.vstring(
733 "keep *_eventVtxInfoNtuple_*_*",
734 "keep *_goodZToMuMuEdmNtupleLoose_*_*",
735 "keep *_goodZToMuMuSameChargeEdmNtupleLoose_*_*",
736 "keep *_goodZToMuMuOneStandAloneEdmNtupleLoose_*_*",
737 "keep *_goodZToMuMuOneTrackEdmNtupleLoose_*_*",
738 "keep *_goodZToMuMuOneTrackerMuonEdmNtupleLoose_*_*",
744 ntuplesOut.setLabel(
"ntuplesOut")
745 NtuplesOut.__iadd__(ntuplesOut)
746 NtuplesOut.setLabel(
"NtuplesOut")