00001 import FWCore.ParameterSet.Config as cms 00002 00003 from ElectroWeakAnalysis.Skimming.dimuonsHLTFilter_cfi import * 00004 00005 from PhysicsTools.HepMCCandAlgos.goodMuonMCMatch_cfi import * 00006 goodMuonMCMatch.src = 'userDataMuons' 00007 00008 from PhysicsTools.HepMCCandAlgos.goodTrackMCMatch_cfi import * 00009 goodTrackMCMatch.src = 'userDataTracks' 00010 00011 from ElectroWeakAnalysis.Skimming.dimuonsMCMatch_cfi import * 00012 #dimuonsMCMatch.src=cms.InputTag("userDataDimuons") 00013 00014 from ElectroWeakAnalysis.Skimming.dimuonsOneTrackMCMatch_cfi import * 00015 #dimuonsOneTrackMCMatch.src=cms.InputTag("userDataDimuonsOneTrack") 00016 00017 #allDimuonsMCMatch = cms.EDFilter("GenParticleMatchMerger", 00018 # src = cms.VInputTag(cms.InputTag("goodMuonMCMatch"), cms.InputTag("goodTrackMCMatch"), cms.InputTag("dimuonsMCMatch")), 00019 # filter = cms.bool(False) 00020 #) 00021 00022 allDimuonsMCMatch = cms.EDFilter("GenParticleMatchMerger", 00023 src = cms.VInputTag(cms.InputTag("goodMuonMCMatch"), cms.InputTag("dimuonsMCMatch")), 00024 filter = cms.bool(False) 00025 ) 00026 00027 allDimuonsOneTrackMCMatch = cms.EDFilter("GenParticleMatchMerger", 00028 src = cms.VInputTag(cms.InputTag("goodMuonMCMatch"), cms.InputTag("goodTrackMCMatch"), cms.InputTag("dimuonsOneTrackMCMatch")), 00029 filter = cms.bool(False) 00030 ) 00031 00032 # Different MCtruth sequences for different ZMuMu paths 00033 mcTruthForDimuons = cms.Sequence(goodMuonMCMatch+dimuonsMCMatch+allDimuonsMCMatch) 00034 mcTruthForDimuonsOneTrack = cms.Sequence(goodMuonMCMatch+goodTrackMCMatch+dimuonsOneTrackMCMatch+allDimuonsOneTrackMCMatch) 00035 00036 #mcTruthForDimuons = cms.Sequence(goodMuonMCMatch+goodTrackMCMatch+dimuonsMCMatch+allDimuonsMCMatch) 00037 00038 #mcTruthForDimuonsOneTrack = cms.Sequence(goodMuonMCMatch+goodTrackMCMatch+dimuonsOneTrackMCMatch) 00039 00040 00041 #dimuonsMCTruth = cms.Path(dimuonsHLTFilter+ 00042 # mcTruthForDimuons 00043 #) 00044 00045 mcEventContent = cms.PSet( 00046 outputCommands = cms.untracked.vstring( 00047 ### MC matching infos 00048 'keep *_genParticles_*_*', 00049 'keep *_allDimuonsMCMatch_*_*', 00050 'keep *_allDimuonsOneTrackMCMatch_*_*' 00051 ) 00052 )