00001 import FWCore.ParameterSet.Config as cms
00002
00003 from SimGeneral.HepPDTESSource.pythiapdt_cfi import *
00004
00005
00006
00007
00008
00009 from ElectroWeakAnalysis.Skimming.patAODTrackCandSequence_cff import *
00010 patAODTrackCands.cut = 'pt > 10.'
00011
00012
00013
00014 from ElectroWeakAnalysis.Skimming.trackMuMatch_cfi import *
00015 trackMuMatch.maxDeltaR = 0.15
00016 trackMuMatch.maxDPtRel = 1.0
00017 trackMuMatch.resolveAmbiguities = True
00018 trackMuMatch.resolveByMatchQuality = True
00019
00020
00021 from PhysicsTools.PatAlgos.producersLayer1.genericParticleProducer_cfi import patGenericParticles
00022
00023 allPatTracks = patGenericParticles.clone(
00024 src = cms.InputTag("patAODTrackCands"),
00025
00026 userIsolation = cms.PSet(
00027 tracker = cms.PSet(
00028 veto = cms.double(0.015),
00029 src = cms.InputTag("patAODTrackIsoDepositCtfTk"),
00030 deltaR = cms.double(0.3),
00031 threshold = cms.double(1.5)
00032 ),
00033 ecal = cms.PSet(
00034 src = cms.InputTag("patAODTrackIsoDepositCalByAssociatorTowers","ecal"),
00035 deltaR = cms.double(0.3)
00036 ),
00037 hcal = cms.PSet(
00038 src = cms.InputTag("patAODTrackIsoDepositCalByAssociatorTowers","hcal"),
00039 deltaR = cms.double(0.3)
00040 ),
00041 ),
00042 isoDeposits = cms.PSet(
00043 tracker = cms.InputTag("patAODTrackIsoDepositCtfTk"),
00044 ecal = cms.InputTag("patAODTrackIsoDepositCalByAssociatorTowers","ecal"),
00045 hcal = cms.InputTag("patAODTrackIsoDepositCalByAssociatorTowers","hcal")
00046 ),
00047 addGenMatch = cms.bool(True),
00048 genParticleMatch = cms.InputTag("trackMuMatch")
00049 )
00050
00051 from PhysicsTools.PatAlgos.selectionLayer1.trackSelector_cfi import *
00052 selectedPatTracks.cut = 'pt > 10.'
00053
00054
00055
00056
00057 from PhysicsTools.PatAlgos.mcMatchLayer0.muonMatch_cfi import *
00058 muonMatch.maxDeltaR = 0.15
00059 muonMatch.maxDPtRel = 1.0
00060 muonMatch.resolveAmbiguities = True
00061 muonMatch.resolveByMatchQuality = True
00062
00063
00064
00065 from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import *
00066
00067 from PhysicsTools.PatAlgos.producersLayer1.muonProducer_cfi import *
00068 patMuons.isoDeposits = cms.PSet(
00069 tracker = cms.InputTag("muIsoDepositTk"),
00070 ecal = cms.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
00071 hcal = cms.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
00072 )
00073 patMuons.userIsolation = cms.PSet(
00074 hcal = cms.PSet(
00075 src = cms.InputTag("muIsoDepositCalByAssociatorTowers","hcal"),
00076 deltaR = cms.double(0.3)
00077 ),
00078 tracker = cms.PSet(
00079 veto = cms.double(0.015),
00080 src = cms.InputTag("muIsoDepositTk"),
00081 deltaR = cms.double(0.3),
00082 threshold = cms.double(1.5)
00083 ),
00084 ecal = cms.PSet(
00085 src = cms.InputTag("muIsoDepositCalByAssociatorTowers","ecal"),
00086 deltaR = cms.double(0.3)
00087 )
00088 )
00089
00090 from PhysicsTools.PatAlgos.selectionLayer1.muonSelector_cfi import *
00091 selectedPatMuons.cut = 'pt > 0. & abs(eta) < 100.0'
00092
00093
00094 from PhysicsTools.PatAlgos.triggerLayer1.triggerProducer_cfi import *
00095
00096
00097
00098
00099 patTrigger.triggerResults = cms.InputTag( "TriggerResults::HLT" )
00100 patTrigger.triggerEvent = cms.InputTag( "hltTriggerSummaryAOD::HLT" )
00101
00102 muonTriggerMatchHLTMuons = cms.EDFilter( "PATTriggerMatcherDRDPtLessByR",
00103 src = cms.InputTag( "selectedPatMuons" ),
00104 matched = cms.InputTag( "patTrigger" ),
00105 andOr = cms.bool( False ),
00106 filterIdsEnum = cms.vstring( 'TriggerMuon' ),
00107 filterIds = cms.vint32( 0 ),
00108 filterLabels = cms.vstring( '*' ),
00109 pathNames = cms.vstring( 'HLT_Mu9' ),
00110 collectionTags = cms.vstring( '*' ),
00111 maxDPtRel = cms.double( 1.0 ),
00112 maxDeltaR = cms.double( 0.2 ),
00113 resolveAmbiguities = cms.bool( True ),
00114 resolveByMatchQuality = cms.bool( True )
00115 )
00116
00117 from PhysicsTools.PatAlgos.triggerLayer1.triggerEventProducer_cfi import *
00118
00119 patTriggerEvent.patTriggerMatches = cms.VInputTag( "muonTriggerMatchHLTMuons" )
00120
00121
00122 patTriggerSequence = cms.Sequence(
00123 patTrigger *
00124 muonTriggerMatchHLTMuons *
00125
00126 patTriggerEvent
00127 )
00128
00129 selectedPatMuonsTriggerMatch = cms.EDProducer( "PATTriggerMatchMuonEmbedder",
00130 src = cms.InputTag( "selectedPatMuons" ),
00131 matches = cms.VInputTag( "muonTriggerMatchHLTMuons" )
00132 )
00133
00134 muonTriggerMatchEmbedder = cms.Sequence(
00135 selectedPatMuonsTriggerMatch
00136 )
00137
00138
00139
00140 beforePatTracks = cms.Sequence(
00141 patAODTrackCandSequence *
00142 trackMuMatch
00143 )
00144
00145 beforePatMuons = cms.Sequence(
00146 muonMatch
00147 )
00148
00149 beforePat = cms.Sequence(
00150 beforePatTracks +
00151 beforePatMuons
00152 )
00153
00154 patCandsSequence = cms.Sequence(
00155 patMuons *
00156 selectedPatMuons *
00157 allPatTracks *
00158 selectedPatTracks
00159 )
00160
00161 goodMuonRecoForDimuon = cms.Sequence(
00162 beforePat *
00163 patCandsSequence *
00164 patTriggerSequence *
00165 muonTriggerMatchEmbedder
00166 )
00167