CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/ElectroWeakAnalysis/ZMuMu/python/ZMuMuAnalysisNtupler_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from ElectroWeakAnalysis.ZMuMu.ZMuMuCategoriesSequences_cff import *
00004 
00005 import copy
00006 
00007 
00008 ### CandViewNtpProducer Configuration - common to all categories.
00009 
00010 goodZToMuMuEdmNtuple = cms.EDProducer(
00011     "CandViewNtpProducer", 
00012     src=cms.InputTag("goodZToMuMuAtLeast1HLTLoose"),
00013     lazyParser=cms.untracked.bool(True),
00014     prefix=cms.untracked.string("z"),
00015     eventInfo=cms.untracked.bool(True),
00016     variables = cms.VPSet(
00017     cms.PSet(
00018     tag = cms.untracked.string("Mass"),
00019     quantity = cms.untracked.string("mass")
00020     ),
00021     cms.PSet(
00022     tag = cms.untracked.string("Pt"),
00023     quantity = cms.untracked.string("pt")
00024     ),
00025     cms.PSet(
00026     tag = cms.untracked.string("Eta"),
00027     quantity = cms.untracked.string("eta")
00028     ),
00029     cms.PSet(
00030     tag = cms.untracked.string("Phi"),
00031     quantity = cms.untracked.string("phi")
00032     ),
00033     cms.PSet(
00034     tag = cms.untracked.string("Y"),
00035     quantity = cms.untracked.string("rapidity")
00036     ),
00037     cms.PSet(
00038     tag = cms.untracked.string("Dau1Pt"),
00039     quantity = cms.untracked.string("daughter(0).masterClone.pt")
00040     ),
00041     cms.PSet(
00042     tag = cms.untracked.string("Dau2Pt"),
00043     quantity = cms.untracked.string("daughter(1).masterClone.pt")
00044     ),
00045     cms.PSet(
00046     tag = cms.untracked.string("Dau1Q"),
00047     quantity = cms.untracked.string("daughter(0).masterClone.charge")
00048     ),
00049     cms.PSet(
00050     tag = cms.untracked.string("Dau2Q"),
00051     quantity = cms.untracked.string("daughter(1).masterClone.charge")
00052     ),
00053     cms.PSet(
00054     tag = cms.untracked.string("Dau1Eta"),
00055     quantity = cms.untracked.string("daughter(0).masterClone.eta")
00056     ),
00057     cms.PSet(
00058     tag = cms.untracked.string("Dau2Eta"),
00059     quantity = cms.untracked.string("daughter(1).masterClone.eta")
00060     ),
00061     cms.PSet(
00062     tag = cms.untracked.string("Dau1Phi"),
00063     quantity = cms.untracked.string("daughter(0).masterClone.phi")
00064     ),
00065     cms.PSet(
00066     tag = cms.untracked.string("Dau2Phi"),
00067     quantity = cms.untracked.string("daughter(1).masterClone.phi")
00068     ),
00069     
00070 #    cms.PSet(
00071 #    tag = cms.untracked.string("Dau1NofHit"),
00072 #    quantity = cms.untracked.string("?1>0?1:0"),
00073 #    ),
00074 
00075 
00076     
00077 #    cms.PSet(
00078 #    tag = cms.untracked.string("Dau1NofHit"),
00079 #    quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon=1 || daughter(0).masterClone.isTrackerMuon=1)?daughter(0).masterClone.numberOfValidHits:daughter(0).masterClone.outerTrack.numberOfValidHits")
00080 #    ),
00081 #    cms.PSet(
00082 #    tag = cms.untracked.string("Dau1NofHitTk"),
00083 #    quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 || daughter(0).masterClone.isTrackerMuon=1)?daughter(0).masterClone.innerTrack.numberOfValidHits:0")
00084 #    ),
00085 #    cms.PSet(
00086 #    tag = cms.untracked.string("Dau1NofHitSta"),
00087 #    quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 ||daughter(0).masterClone.isStandAloneMuon==1  ) ? daughter(0).masterClone.outerTrack.numberOfValidHits : 0")
00088 #    ),
00089 #    cms.PSet(
00090 #    tag = cms.untracked.string("Dau1NofMuChambers"),
00091 #    quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 ||daughter(0).masterClone.isStandAloneMuon==1  ) ? daughter(0).masterClone.numberOfChambers :0")
00092 #    ),
00093 #    cms.PSet(
00094 #    tag = cms.untracked.string("Dau1NofMuMatches"),
00095 #    quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 ||daughter(0).masterClone.isStandAloneMuon==1  ) ? daughter(0).masterClone.numberOfMatches : 0")
00096 #    ),
00097 
00098     cms.PSet(
00099     tag = cms.untracked.string("Dau1Iso"),
00100     quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User4Iso')")
00101     ),
00102     cms.PSet(
00103     tag = cms.untracked.string("Dau2Iso"),
00104     quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User4Iso')")
00105     ),
00106     cms.PSet(
00107     tag = cms.untracked.string("Dau1relIso"),
00108     quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User5Iso')")
00109     ),
00110     cms.PSet(
00111     tag = cms.untracked.string("Dau2relIso"),
00112     quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User5Iso')")
00113     ),
00114     cms.PSet(
00115     tag = cms.untracked.string("Dau1TrkIso"),
00116     quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User1Iso')")
00117     ),
00118     cms.PSet(
00119     tag = cms.untracked.string("Dau2TrkIso"),
00120     quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User1Iso')")
00121     ),
00122     cms.PSet(
00123     tag = cms.untracked.string("Dau1EcalIso"),
00124     quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User2Iso')")
00125     ),
00126     cms.PSet(
00127     tag = cms.untracked.string("Dau2EcalIso"),
00128     quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User2Iso')")
00129     ),
00130     cms.PSet(
00131     tag = cms.untracked.string("Dau1HcalIso"),
00132     quantity = cms.untracked.string("daughter(0).masterClone.userIsolation('pat::User3Iso')")
00133     ),
00134     cms.PSet(
00135     tag = cms.untracked.string("Dau2HcalIso"),
00136     quantity = cms.untracked.string("daughter(1).masterClone.userIsolation('pat::User3Iso')")
00137     ),
00138     cms.PSet(
00139     tag = cms.untracked.string("Dau1dxyFromBS"),
00140     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_dxyFromBS')")
00141     ),
00142     cms.PSet(
00143     tag = cms.untracked.string("Dau1dzFromBS"),
00144     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_dzFromBS')")
00145     ),
00146     cms.PSet(
00147     tag = cms.untracked.string("Dau1dxyFromPV"),
00148     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_dxyFromPV')")
00149     ),
00150     cms.PSet(
00151     tag = cms.untracked.string("Dau1dzFromPV"),
00152     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_dzFromPV')")
00153     ),
00154     cms.PSet(
00155     tag = cms.untracked.string("Dau1HLTBit"),
00156     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTBit')")
00157     ),
00158     cms.PSet(
00159     tag = cms.untracked.string("Dau1HLTSize"),
00160     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTSize')")
00161     ),
00162 cms.PSet(
00163     tag = cms.untracked.string("Dau1HLTDeltaR"),
00164     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTDeltaR')")
00165     ),
00166 cms.PSet(
00167     tag = cms.untracked.string("Dau1HLTDeltaEta"),
00168     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTDeltaEta')")
00169     ),
00170 cms.PSet(
00171     tag = cms.untracked.string("Dau1HLTDeltaPhi"),
00172     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTDeltaPhi')")
00173     ),
00174 cms.PSet(
00175     tag = cms.untracked.string("Dau1HLTDeltaPtOverPt"),
00176     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTDeltaPtOverPt')")
00177     ),
00178 cms.PSet(
00179     tag = cms.untracked.string("Dau1HLTPt"),
00180     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_HLTPt')")
00181     ),
00182     cms.PSet(
00183     tag = cms.untracked.string("Dau2dxyFromBS"),
00184     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_dxyFromBS')")
00185     ),
00186     cms.PSet(
00187     tag = cms.untracked.string("Dau2dzFromBS"),
00188     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_dzFromBS')")
00189     ),
00190     cms.PSet(
00191     tag = cms.untracked.string("Dau2dxyFromPV"),
00192     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_dxyFromPV')")
00193     ),
00194     cms.PSet(
00195     tag = cms.untracked.string("Dau2dzFromPV"),
00196     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_dzFromPV')")
00197     ),
00198     cms.PSet(
00199     tag = cms.untracked.string("VtxNormChi2"),
00200     quantity = cms.untracked.string("vertexNormalizedChi2")
00201     ),
00202 
00203 #    cms.PSet(
00204 #    tag = cms.untracked.string("Dau1TrkChi2"),
00205 #    quantity = cms.untracked.string("?(daughter(0).masterClone.isGlobalMuon==1 || daughter(0).masterClone.isTrackerMuon=1)?daughter(0).masterClone.innerTrack.normalizedChi2:0")
00206 #    ),
00207 #    cms.PSet(
00208 #    tag = cms.untracked.string("Dau1MuEnergyHad"),
00209 #    quantity = cms.untracked.string("?daughter(0).masterClone.isGlobalMuon==1||daughter(0).masterClone.isTrackerMuon==1 ?daughter(0).masterClone.calEnergy.had:-1")
00210 #    ),
00211  #   cms.PSet(
00212  #   tag = cms.untracked.string("Dau1MuEnergyEm"),
00213  #   quantity = cms.untracked.string("?daughter(0).masterClone.isGlobalMuon==1||daughter(0).masterClone.isTrackerMuon==1 ?daughter(0).masterClone.calEnergy.em:-1")
00214  #   ),
00215     cms.PSet(
00216     tag = cms.untracked.string("TrueMass"),
00217     quantity = cms.untracked.string("userFloat('TrueMass')")
00218     ),
00219     cms.PSet(
00220     tag = cms.untracked.string("TruePt"),
00221     quantity = cms.untracked.string("userFloat('TruePt')")
00222     ),  
00223     cms.PSet(
00224     tag = cms.untracked.string("TrueEta"),
00225     quantity = cms.untracked.string("userFloat('TrueEta')")
00226     ),
00227     cms.PSet(
00228     tag = cms.untracked.string("TruePhi"),
00229     quantity = cms.untracked.string("userFloat('TruePhi')")
00230     ),
00231     cms.PSet(
00232     tag = cms.untracked.string("TrueY"),
00233     quantity = cms.untracked.string("userFloat('TrueY')")
00234     ),   
00235     cms.PSet(
00236     tag = cms.untracked.string("Dau1Chi2"),
00237     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_Chi2')")
00238     ),
00239     cms.PSet(
00240     tag = cms.untracked.string("Dau1TrkChi2"),
00241     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_TrkChi2')")
00242     ),
00243     cms.PSet(
00244     tag = cms.untracked.string("Dau1SaChi2"),
00245     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_SaChi2')")
00246     ),
00247     cms.PSet(
00248     tag = cms.untracked.string("Dau2Chi2"),
00249     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_Chi2')")
00250     ),
00251     cms.PSet(
00252     tag = cms.untracked.string("Dau2TrkChi2"),
00253     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_TrkChi2')")
00254     ),
00255     cms.PSet(
00256     tag = cms.untracked.string("Dau2SaChi2"),
00257     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_SaChi2')")
00258     ),
00259     cms.PSet(
00260     tag = cms.untracked.string("Dau1NofMuonHits"),
00261     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofMuonHits')")
00262     ),
00263     cms.PSet(
00264     tag = cms.untracked.string("Dau1SaNofMuonHits"),
00265     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_SaNofMuonHits')")
00266     ),  
00267     cms.PSet(
00268     tag = cms.untracked.string("Dau2NofMuonHits"),
00269     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofMuonHits')")
00270     ),
00271     cms.PSet(
00272     tag = cms.untracked.string("Dau2SaNofMuonHits"),
00273     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_SaNofMuonHits')")
00274     ),
00275     cms.PSet(
00276     tag = cms.untracked.string("Dau1NofStripHits"),
00277     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofStripHits')")
00278     ),
00279     cms.PSet(
00280     tag = cms.untracked.string("Dau1NofPixelHits"),
00281     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofPixelHits')")
00282     ),
00283     cms.PSet(
00284     tag = cms.untracked.string("Dau1TrkNofStripHits"),
00285     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_TrkNofStripHits')")
00286     ),
00287     cms.PSet(
00288     tag = cms.untracked.string("Dau2TrkNofStripHits"),
00289     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_TrkNofStripHits')")
00290     ),  
00291     cms.PSet(
00292     tag = cms.untracked.string("Dau1TrkNofPixelHits"),
00293     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_TrkNofPixelHits')")
00294     ),
00295     cms.PSet(
00296     tag = cms.untracked.string("Dau2TrkNofPixelHits"),
00297     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_TrkNofPixelHits')")
00298     ),  
00299     cms.PSet(
00300     tag = cms.untracked.string("Dau1NofMuChambers"),
00301     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofMuChambers')")
00302     ),
00303     cms.PSet(
00304     tag = cms.untracked.string("Dau2NofMuChambers"),
00305     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofMuChambers')")
00306     ),
00307     cms.PSet(
00308     tag = cms.untracked.string("Dau1NofMuMatches"),
00309     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_NofMuMatches')")
00310     ),
00311     cms.PSet(
00312     tag = cms.untracked.string("Dau2NofMuMatches"),
00313     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofMuMatches')")
00314     ),
00315     cms.PSet(
00316     tag = cms.untracked.string("Dau1MuEnergyEm"),
00317     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_MuEnergyEm')")
00318     ),
00319     cms.PSet(
00320     tag = cms.untracked.string("Dau2MuEnergyEm"),
00321     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_MuEnergyEm')")
00322     ),
00323     cms.PSet(
00324     tag = cms.untracked.string("Dau1MuEnergyHad"),
00325     quantity = cms.untracked.string("daughter(0).masterClone.userFloat('zDau_MuEnergyHad')")
00326     ),
00327     cms.PSet(
00328     tag = cms.untracked.string("Dau2MuEnergyHad"),
00329     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_MuEnergyHad')")
00330     ),
00331    
00332     )
00333     
00334     )
00335 
00336 
00337 
00338 ### zMuMu vector of PSet is common to all categories except zMuTrk category 
00339 
00340 zMuMu=(
00341     
00342     
00343 #    cms.PSet(
00344 #    tag = cms.untracked.string("Dau2NofHitSta"),
00345 
00346 #    quantity = cms.untracked.string("?(daughter(1).masterClone.isGlobalMuon==1  ||daughter(1).masterClone.isStandAloneMuon==1 )?daughter(1).masterClone.outerTrack.numberOfValidHits: -1")
00347 #    ),
00348 #    cms.PSet(
00349 #    tag = cms.untracked.string("Dau2NofMuChambers"),
00350 #    quantity = cms.untracked.string("?(daughter(1).masterClone.isGlobalMuon==1  ||daughter(1).masterClone.isStandAloneMuon==1 )?daughter(1).masterClone.numberOfChambers: -1")
00351 #    ),
00352 #    cms.PSet(
00353 #    tag = cms.untracked.string("Dau2NofMuMatches"),
00354 #    quantity = cms.untracked.string("?(daughter(1).masterClone.isGlobalMuon==1  ||daughter(1).masterClone.isStandAloneMuon==1 )?daughter(1).masterClone.numberOfMatches: -1")
00355 #    ),
00356     cms.PSet(
00357     tag = cms.untracked.string("Dau2HLTBit"),
00358     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTBit')")
00359     ),
00360 cms.PSet(
00361     tag = cms.untracked.string("Dau2HLTSize"),
00362     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTSize')")
00363     ),
00364 cms.PSet(
00365     tag = cms.untracked.string("Dau2HLTDeltaR"),
00366     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTDeltaR')")
00367     ),
00368 cms.PSet(
00369     tag = cms.untracked.string("Dau2HLTDeltaEta"),
00370     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTDeltaEta')")
00371     ),
00372 cms.PSet(
00373     tag = cms.untracked.string("Dau2HLTDeltaPhi"),
00374     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTDeltaPhi')")
00375     ),
00376 cms.PSet(
00377     tag = cms.untracked.string("Dau2HLTDeltaPtOverPt"),
00378     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTDeltaPtOverPt')")
00379     ),
00380 cms.PSet(
00381     tag = cms.untracked.string("Dau2HLTPt"),
00382     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_HLTPt')")
00383     ),
00384 
00385 
00386 
00387     
00388 #    cms.PSet(
00389 #    tag = cms.untracked.string("Dau2MuEnergyHad"),
00390 #    quantity = cms.untracked.string("?daughter(1).masterClone.isGlobalMuon==1 ||daughter(1).masterClone.isTrackerMuon==1?daughter(1).masterClone.calEnergy.had:-1")
00391 #    ),
00392 #    cms.PSet(
00393 #    tag = cms.untracked.string("Dau2MuEnergyEm"),
00394 #    quantity = cms.untracked.string("?daughter(1).masterClone.isGlobalMuon==1 ||daughter(1).masterClone.isTrackerMuon==1?daughter(1).masterClone.calEnergy.em:-1")
00395 #    ),
00396 
00397     cms.PSet(
00398     tag = cms.untracked.string("Dau1GlobalMuonBit"),
00399     quantity = cms.untracked.string("daughter(0).masterClone.isGlobalMuon")
00400     ),
00401     cms.PSet(
00402     tag = cms.untracked.string("Dau2GlobalMuonBit"),
00403     quantity = cms.untracked.string("daughter(1).masterClone.isGlobalMuon")
00404     ),
00405     cms.PSet(
00406     tag = cms.untracked.string("Dau1StandAloneBit"),
00407     quantity = cms.untracked.string("daughter(0).masterClone.isStandAloneMuon")
00408     ),
00409     cms.PSet(
00410     tag = cms.untracked.string("Dau2StandAloneBit"),
00411     quantity = cms.untracked.string("daughter(1).masterClone.isStandAloneMuon")
00412     ),
00413     cms.PSet(
00414     tag = cms.untracked.string("Dau1TrackerMuonBit"),
00415     quantity = cms.untracked.string("daughter(0).masterClone.isTrackerMuon")
00416     ),
00417     cms.PSet(
00418     tag = cms.untracked.string("Dau2TrackerMuonBit"),
00419     quantity = cms.untracked.string("daughter(1).masterClone.isTrackerMuon")
00420     ),
00421       cms.PSet(
00422     tag = cms.untracked.string("Dau2NofStripHits"),
00423     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofStripHits')")
00424     ),
00425     cms.PSet(
00426     tag = cms.untracked.string("Dau2NofPixelHits"),
00427     quantity = cms.untracked.string("daughter(1).masterClone.userFloat('zDau_NofPixelHits')")
00428     ),
00429     cms.PSet(
00430     tag = cms.untracked.string("Dau1Iso03SumPt"),
00431     quantity = cms.untracked.string("daughter(0).masterClone.trackIso")
00432     ),
00433     cms.PSet(
00434     tag = cms.untracked.string("Dau2Iso03SumPt"),
00435     quantity = cms.untracked.string("daughter(1).masterClone.trackIso")
00436     ),
00437     cms.PSet(
00438     tag = cms.untracked.string("Dau1Iso03EmEt"),
00439     quantity = cms.untracked.string("daughter(0).masterClone.ecalIso")
00440     ),
00441     cms.PSet(
00442     tag = cms.untracked.string("Dau2Iso03EmEt"),
00443     quantity = cms.untracked.string("daughter(1).masterClone.ecalIso")
00444     ),
00445     cms.PSet(
00446     tag = cms.untracked.string("Dau1Iso03HadEt"),
00447     quantity = cms.untracked.string("daughter(0).masterClone.hcalIso")
00448     ),
00449     cms.PSet(
00450     tag = cms.untracked.string("Dau2Iso03HadEt"),
00451     quantity = cms.untracked.string("daughter(1).masterClone.hcalIso")
00452     ),
00453 
00454 
00455 
00456                 
00457     )
00458 
00459 ### zGolden vector of PSet is specific for zGolden category
00460 
00461 
00462 zGolden=(
00463 
00464 
00465    ##  cms.PSet(
00466 ##     tag = cms.untracked.string("Dau1NofHit"),
00467 ##     quantity = cms.untracked.string("daughter(0).masterClone.numberOfValidHits")
00468 ##     ),
00469 ##     cms.PSet(
00470 ##     tag = cms.untracked.string("Dau1NofHitTk"),
00471 ##     quantity = cms.untracked.string("daughter(0).masterClone.innerTrack.numberOfValidHits")
00472 ##     ),
00473 ##     cms.PSet(
00474 ##     tag = cms.untracked.string("Dau1NofHitSta"),
00475 ##     quantity = cms.untracked.string("daughter(0).masterClone.outerTrack.numberOfValidHits")
00476 ##     ),
00477 ##     cms.PSet(
00478 ##     tag = cms.untracked.string("Dau1NofMuChambers"),
00479 ##     quantity = cms.untracked.string(" daughter(0).masterClone.numberOfChambers ")
00480 ##     ),
00481 ##     cms.PSet(
00482 ##     tag = cms.untracked.string("Dau1NofMuMatches"),
00483 ##     quantity = cms.untracked.string("daughter(0).masterClone.numberOfMatches")
00484 ##     ),
00485 
00486 ##     cms.PSet(
00487 ##     tag = cms.untracked.string("Dau1TrkChi2"),
00488 ##     quantity = cms.untracked.string("daughter(0).masterClone.innerTrack.normalizedChi2")
00489 ##     ),
00490 ##     cms.PSet(
00491 ##     tag = cms.untracked.string("Dau1MuEnergyHad"),
00492 ##     quantity = cms.untracked.string("daughter(0).masterClone.calEnergy.had")
00493 ##     ),
00494 ##     cms.PSet(
00495 ##     tag = cms.untracked.string("Dau1MuEnergyEm"),
00496 ##     quantity = cms.untracked.string("daughter(0).masterClone.calEnergy.em")
00497 ##     ),
00498 
00499 
00500     
00501 ##     cms.PSet(
00502 ##     tag = cms.untracked.string("Dau2NofHitSta"),
00503 ##     quantity = cms.untracked.string("daughter(1).masterClone.outerTrack.numberOfValidHits")
00504 ##     ),
00505 ##     cms.PSet(
00506 ##     tag = cms.untracked.string("Dau2NofMuChambers"),
00507 ##     quantity = cms.untracked.string("daughter(1).masterClone.numberOfChambers")
00508 ##     ),
00509 ##     cms.PSet(
00510 ##     tag = cms.untracked.string("Dau2NofMuMatches"),
00511 ##     quantity = cms.untracked.string("daughter(1).masterClone.numberOfMatches")
00512 ##     ),
00513 
00514 
00515 ##     cms.PSet(
00516 ##     tag = cms.untracked.string("Dau2MuEnergyHad"),
00517 ##     quantity = cms.untracked.string("daughter(1).masterClone.calEnergy.had")
00518 ##     ),
00519 ##     cms.PSet(
00520 ##     tag = cms.untracked.string("Dau2MuEnergyEm"),
00521 ##     quantity = cms.untracked.string("daughter(1).masterClone.calEnergy.em")
00522 ##     ),
00523 
00524 ##     cms.PSet(
00525 ##     tag = cms.untracked.string("Dau1Chi2"),
00526 ##     quantity = cms.untracked.string("daughter(0).masterClone.normChi2")
00527 ##     ),
00528 ##     cms.PSet(
00529 ##     tag = cms.untracked.string("Dau2Chi2"),
00530 ##     quantity = cms.untracked.string("daughter(1).masterClone.normChi2")
00531 ##     ),
00532 ##     cms.PSet(
00533 ##     tag = cms.untracked.string("Dau2NofHit"),
00534 ##     quantity = cms.untracked.string("daughter(1).masterClone.numberOfValidHits")
00535 ##     ),
00536 ##     cms.PSet(
00537 ##     tag = cms.untracked.string("Dau2NofHitTk"),
00538 ##     quantity = cms.untracked.string("daughter(1).masterClone.innerTrack.numberOfValidHits")
00539 ##     ),
00540 ##     cms.PSet(
00541 ##     tag = cms.untracked.string("Dau2TrkChi2"),
00542 ##     quantity = cms.untracked.string("daughter(1).masterClone.innerTrack.normalizedChi2")
00543 ##    ),
00544     cms.PSet(
00545     tag = cms.untracked.string("SaGlbMass"),
00546     quantity = cms.untracked.string("userFloat('SaGlbMass')")
00547     ),
00548     cms.PSet(
00549     tag = cms.untracked.string("GlbSaMass"),
00550     quantity = cms.untracked.string("userFloat('GlbSaMass')")
00551     ),
00552     cms.PSet(
00553     tag = cms.untracked.string("SaSaMass"),
00554     quantity = cms.untracked.string("userFloat('SaSaMass')")
00555     ),
00556     cms.PSet(
00557     tag = cms.untracked.string("MassSa"),
00558     quantity = cms.untracked.string("userFloat('MassSa')")
00559     ),
00560     cms.PSet(
00561     tag = cms.untracked.string("Dau1SaPt"),
00562     quantity = cms.untracked.string("userFloat('Dau1SaPt')")
00563     ),
00564     cms.PSet(
00565     tag = cms.untracked.string("Dau2SaPt"),
00566     quantity = cms.untracked.string("userFloat('Dau2SaPt')")
00567     ),
00568     cms.PSet(
00569     tag = cms.untracked.string("Dau1SaEta"),
00570     quantity = cms.untracked.string("userFloat('Dau1SaEta')")
00571     ),
00572     cms.PSet(
00573     tag = cms.untracked.string("Dau2SaEta"),
00574     quantity = cms.untracked.string("userFloat('Dau2SaEta')")
00575     ),
00576     cms.PSet(
00577     tag = cms.untracked.string("Dau1SaPhi"),
00578     quantity = cms.untracked.string("userFloat('Dau1SaPhi')")
00579     ),
00580     cms.PSet(
00581     tag = cms.untracked.string("Dau2SaPhi"),
00582     quantity = cms.untracked.string("userFloat('Dau2SaPhi')")
00583     ),
00584     
00585     )
00586 
00587 
00588 
00589 ### zMUSa vector of PSet is specific for zMuSa category
00590 
00591 zMuSa = (
00592    
00593 #    cms.PSet(
00594 #    tag= cms.untracked.string("Dau2NofHit"),
00595 #    quantity = cms.untracked.string("?daughter(1).masterClone.isStandAloneMuon==1?daughter(1).masterClone.outerTrack.numberOfValidHits:daughter(1).masterClone.numberOfValidHits")
00596 #    ),
00597 #    cms.PSet(
00598 #    tag = cms.untracked.string("Dau2Chi2"),
00599 #    quantity = cms.untracked.string("?daughter(1).masterClone.isStandAloneMuon==1?daughter(1).masterClone.outerTrack.normalizedChi2:daughter(1).masterClone.normChi2")
00600 #    ),
00601     
00602     )
00603 
00604 
00605 ### zMuTrkMu vector of PSet is specific for zMuTrkMu category
00606 
00607 zMuTrkMu=(
00608 #    cms.PSet(
00609 #    tag = cms.untracked.string("Dau1Chi2"),
00610 #    quantity = cms.untracked.string("?daughter(0).masterClone.isTrackerMuon==1 ? daughter(0).masterClone.innerTrack.normalizedChi2 : daughter(0).masterClone.normChi2")
00611 #    ),
00612 #    cms.PSet(
00613 #    tag = cms.untracked.string("Dau2Chi2"),
00614 #    quantity = cms.untracked.string("?daughter(1).masterClone.isTrackerMuon==1 ? daughter(1).masterClone.innerTrack.normalizedChi2 : daughter(1).masterClone.normChi2")
00615 #    ),
00616 #    cms.PSet(
00617 #    tag = cms.untracked.string("Dau2NofHit"),
00618 #    quantity = cms.untracked.string("?daughter(1).masterClone.isTrackerMuon==1 ?  daughter(1).masterClone.innerTrack.numberOfValidHits: daughter(1).masterClone.numberOfValidHits")
00619 #    ),
00620 #    cms.PSet(
00621 #    tag = cms.untracked.string("Dau2NofHitTk"),
00622 #    quantity = cms.untracked.string("daughter(1).masterClone.innerTrack.numberOfValidHits")
00623 #    ),
00624 #
00625     )
00626 
00627 
00628 ### zMuTrk vector of PSet is specific for zMuTrk category
00629 
00630 
00631 zMuTrk =(
00632 ##     cms.PSet(
00633 ##     tag = cms.untracked.string("Dau2NofHit"),
00634 ##     quantity = cms.untracked.string("daughter(1).masterClone.track.numberOfValidHits")
00635 ##     ),
00636 ##     cms.PSet(
00637 ##     tag = cms.untracked.string("Dau2NofHitTk"),
00638 ##     quantity = cms.untracked.string("daughter(1).masterClone.track.numberOfValidHits")
00639 ##     ),
00640 ##     cms.PSet(
00641 ##     tag = cms.untracked.string("Dau2Chi2"),
00642 ##     quantity = cms.untracked.string("daughter(1).masterClone.track.normalizedChi2")
00643 ##     ),
00644 
00645     cms.PSet(
00646     tag = cms.untracked.string("Dau1GlobalMuonBit"),
00647     quantity = cms.untracked.string("daughter(0).masterClone.isGlobalMuon")
00648     ),
00649     cms.PSet(
00650     tag = cms.untracked.string("Dau1StandAloneBit"),
00651     quantity = cms.untracked.string("daughter(0).masterClone.isStandAloneMuon")
00652     ),
00653     cms.PSet(
00654     tag = cms.untracked.string("Dau1TrackerMuonBit"),
00655     quantity = cms.untracked.string("daughter(0).masterClone.isTrackerMuon")
00656     ),
00657     cms.PSet(
00658     tag = cms.untracked.string("Dau1Iso03SumPt"),
00659     quantity = cms.untracked.string("daughter(0).masterClone.trackIso")
00660     ),
00661     cms.PSet(
00662     tag = cms.untracked.string("Dau2Iso03SumPt"),
00663     quantity = cms.untracked.string("daughter(1).masterClone.trackIso")
00664     ),
00665     cms.PSet(
00666     tag = cms.untracked.string("Dau1Iso03EmEt"),
00667     quantity = cms.untracked.string("daughter(0).masterClone.ecalIso")
00668     ),
00669     cms.PSet(
00670     tag = cms.untracked.string("Dau2Iso03EmEt"),
00671     quantity = cms.untracked.string("daughter(1).masterClone.ecalIso")
00672     ),
00673     cms.PSet(
00674     tag = cms.untracked.string("Dau1Iso03HadEt"),
00675     quantity = cms.untracked.string("daughter(0).masterClone.hcalIso")
00676     ),
00677     cms.PSet(
00678     tag = cms.untracked.string("Dau2Iso03HadEt"),
00679     quantity = cms.untracked.string("daughter(1).masterClone.hcalIso")
00680     )
00681     
00682     )
00683 
00684 
00685 
00686 goodZToMuMuEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
00687 goodZToMuMuEdmNtupleLoose.variables += zMuMu
00688 goodZToMuMuEdmNtupleLoose.variables += zGolden
00689 goodZToMuMuEdmNtupleLoose.prefix = cms.untracked.string("zGolden")
00690 goodZToMuMuPathLoose.__iadd__(goodZToMuMuEdmNtupleLoose)
00691 goodZToMuMuPathLoose.setLabel("goodZToMuMuEdmLoose")
00692 
00693 
00694 goodZToMuMuSameChargeEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
00695 goodZToMuMuSameChargeEdmNtupleLoose.src = cms.InputTag("goodZToMuMuSameChargeAtLeast1HLTLoose")
00696 goodZToMuMuSameChargeEdmNtupleLoose.prefix = cms.untracked.string("zSameCharge")
00697 goodZToMuMuSameChargeEdmNtupleLoose.variables += zMuMu
00698 goodZToMuMuSameChargeEdmNtupleLoose.variables += zGolden
00699 goodZToMuMuSameChargePathLoose.__iadd__(goodZToMuMuSameChargeEdmNtupleLoose)
00700 goodZToMuMuSameChargePathLoose.setLabel("goodZToMuMuSameChargeLoose")
00701 
00702 
00703 
00704 goodZToMuMuOneStandAloneEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
00705 goodZToMuMuOneStandAloneEdmNtupleLoose.src=cms.InputTag("goodZToMuMuOneStandAloneMuonFirstHLTLoose")
00706 goodZToMuMuOneStandAloneEdmNtupleLoose.prefix=cms.untracked.string("zMuSta")
00707 goodZToMuMuOneStandAloneEdmNtupleLoose.variables += zMuMu
00708 goodZToMuMuOneStandAloneEdmNtupleLoose.variables += zMuSa
00709 goodZToMuMuOneStandAloneMuonPathLoose.__iadd__(goodZToMuMuOneStandAloneEdmNtupleLoose)
00710 goodZToMuMuOneStandAloneMuonPathLoose.setLabel("goodZToMuMuOneStandAloneMuonLoose")
00711 
00712 goodZToMuMuOneTrackEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
00713 goodZToMuMuOneTrackEdmNtupleLoose.src=cms.InputTag("goodZToMuMuOneTrackFirstHLTLoose")
00714 goodZToMuMuOneTrackEdmNtupleLoose.prefix=cms.untracked.string("zMuTrk")
00715 goodZToMuMuOneTrackEdmNtupleLoose.variables += zMuTrk
00716 goodZToMuMuOneTrackPathLoose.__iadd__(goodZToMuMuOneTrackEdmNtupleLoose)
00717 goodZToMuMuOneTrackPathLoose.setLabel("goodZToMuMuOneTrackLoose")
00718 
00719 goodZToMuMuOneTrackerMuonEdmNtupleLoose= copy.deepcopy(goodZToMuMuEdmNtuple)
00720 goodZToMuMuOneTrackerMuonEdmNtupleLoose.src=cms.InputTag("goodZToMuMuOneTrackerMuonFirstHLTLoose")
00721 goodZToMuMuOneTrackerMuonEdmNtupleLoose.prefix=cms.untracked.string("zMuTrkMu")
00722 goodZToMuMuOneTrackerMuonEdmNtupleLoose.variables += zMuMu
00723 goodZToMuMuOneTrackerMuonEdmNtupleLoose.variables += zMuTrkMu
00724 goodZToMuMuOneTrackerMuonPathLoose.__iadd__(goodZToMuMuOneTrackerMuonEdmNtupleLoose)
00725 goodZToMuMuOneTrackerMuonPathLoose.setLabel("goodZToMuMuOneTrackerMuonLoose")
00726 
00727 
00728 ntuplesOut = cms.OutputModule(
00729     "PoolOutputModule",
00730     fileName = cms.untracked.string('NtupleLooseTestNew.root'),
00731     outputCommands = cms.untracked.vstring(
00732     "drop *",
00733     "keep *_eventVtxInfoNtuple_*_*",
00734     "keep *_goodZToMuMuEdmNtupleLoose_*_*",
00735     "keep *_goodZToMuMuSameChargeEdmNtupleLoose_*_*",
00736     "keep *_goodZToMuMuOneStandAloneEdmNtupleLoose_*_*",
00737     "keep *_goodZToMuMuOneTrackEdmNtupleLoose_*_*",
00738     "keep *_goodZToMuMuOneTrackerMuonEdmNtupleLoose_*_*",
00739       
00740     )
00741     )
00742 
00743 
00744 ntuplesOut.setLabel("ntuplesOut")
00745 NtuplesOut.__iadd__(ntuplesOut)
00746 NtuplesOut.setLabel("NtuplesOut")
00747 
00748