1 import FWCore.ParameterSet.Config
as cms
9 oniaPATMuonsWithoutTrigger = PhysicsTools.PatAlgos.producersLayer1.muonProducer_cfi.patMuons.clone(
13 embedCombinedMuon =
True,
14 embedStandAloneMuon =
True,
15 embedPFCandidate =
False,
16 embedCaloMETMuonCorrs = cms.bool(
False),
17 embedTcMETMuonCorrs = cms.bool(
False),
18 embedPfEcalEnergy = cms.bool(
False),
20 embedPickyMuon =
False,
21 embedTpfmsMuon =
False,
22 userIsolation = cms.PSet(),
23 isoDeposits = cms.PSet(),
27 oniaPATMuonsWithoutTrigger.userData.userInts.src = []
28 oniaPATMuonsWithoutTrigger.userData.userFloats.src = []
29 oniaPATMuonsWithoutTrigger.userData.userCands.src = []
30 oniaPATMuonsWithoutTrigger.userData.userClasses.src = []
34 oniaPATTriggerTMP.onlyStandAlone =
True 35 oniaPATTrigger = cms.EDProducer(
"TriggerObjectFilterByCollection",
36 src = cms.InputTag(
"oniaPATTriggerTMP"),
37 collections = cms.vstring(
"hltL2MuonCandidates",
"hltL3MuonCandidates",
"hltHighPtTkMuonCands",
"hltGlbTrkMuonCands")
41 PATmuonTriggerMatchHLT = cms.EDProducer(
"PATTriggerMatcherDRDPtLessByR",
42 src = cms.InputTag(
"oniaPATMuonsWithoutTrigger" ),
43 matched = cms.InputTag(
"oniaPATTrigger" ),
44 matchedCuts = cms.string(
""),
45 maxDPtRel = cms.double( 0.5 ),
46 maxDeltaR = cms.double( 0.5 ),
47 resolveAmbiguities = cms.bool(
True ),
48 resolveByMatchQuality = cms.bool(
True )
51 PATmuonMatchHLTL2 = PATmuonTriggerMatchHLT.clone(matchedCuts = cms.string(
'coll("hltL2MuonCandidates")'),
52 maxDeltaR = 0.3, maxDPtRel = 10.0)
53 PATmuonMatchHLTL3 = PATmuonTriggerMatchHLT.clone(matchedCuts = cms.string(
'coll("hltL3MuonCandidates")'),
54 maxDeltaR = 0.1, maxDPtRel = 10.0)
55 PATmuonMatchHLTL3T = PATmuonTriggerMatchHLT.clone(matchedCuts = cms.string(
'coll("hltGlbTrkMuonCands")'),
56 maxDeltaR = 0.1, maxDPtRel = 10.0)
57 PATmuonMatchHLTTkMu = PATmuonTriggerMatchHLT.clone(matchedCuts = cms.string(
'coll("hltHighPtTkMuonCands")'),
58 maxDeltaR = 0.1, maxDPtRel = 10.0)
60 oniaPATTriggerMatchers1Mu = cms.Sequence(
67 oniaPATTriggerMatchers1MuInputTags = [
68 cms.InputTag(
'PATmuonMatchHLTL2'),
69 cms.InputTag(
'PATmuonMatchHLTL3'),
70 cms.InputTag(
'PATmuonMatchHLTL3T'),
71 cms.InputTag(
'PATmuonMatchHLTTkMu'),
75 oniaPATMuonsWithTrigger = cms.EDProducer(
"PATTriggerMatchMuonEmbedder",
76 src = cms.InputTag(
"oniaPATMuonsWithoutTrigger" ),
77 matches = cms.VInputTag()
79 oniaPATMuonsWithTrigger.matches += oniaPATTriggerMatchers1MuInputTags
82 oniaPATTriggerMatching = cms.Sequence(
83 oniaPATTriggerTMP * oniaPATTrigger *
84 oniaPATTriggerMatchers1Mu *
85 oniaPATMuonsWithTrigger
88 oniaPATMuonsWithTriggerSequence = cms.Sequence(
89 oniaPATMuonsWithoutTrigger *
90 oniaPATTriggerMatching