CMS 3D CMS Logo

muonL1MatchExtended_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
4 from math import pi
5 
6 muonL1MatchExtended = cms.EDProducer("L1MatcherExtended",
7  muons = cms.InputTag("muons"),
8  l1extra = cms.InputTag("l1extraParticles"),
9  segmentArbitration = cms.string("SegmentAndTrackArbitration"),
10  csctfDigis = cms.InputTag("csctfDigis"),
11  csctfLcts = cms.InputTag("csctfDigis"),
12  matcherGeom = cms.PSet(
13  preselection = cms.string("gmtMuonCand.quality > 1"), # FIXME: maybe exclude CSC-only region?
14  useTrack = cms.string("tracker"),
15  useState = cms.string("atVertex"),
16  maxDeltaR = cms.double(1.5),
17  maxDeltaEta = cms.double(0.3),
18  l1PhiOffset = cms.double(1.25 * pi/180.),
19  useSimpleGeometry = cms.bool(True),
20  fallbackToME1 = cms.bool(True),
21  )
22 )
23 
24 def addUserData(patMuonProducer, matcherLabel='muonL1MatchExtended', addExtraInfo=False):
25  patMuonProducer.userData.userInts.src += [ cms.InputTag(matcherLabel) ]
26  if addExtraInfo:
27  for L in ("cscMode", "canPropagate", "l1q"):
28  patMuonProducer.userData.userInts.src += [ cms.InputTag(matcherLabel,L) ]
29  for L in ("deltaR", "deltaEta", "deltaPhi", "l1pt"):
30  patMuonProducer.userData.userFloats.src += [ cms.InputTag(matcherLabel,L) ]
31 
muonL1MatchExtended_cfi.addUserData
def addUserData(patMuonProducer, matcherLabel='muonL1MatchExtended', addExtraInfo=False)
Definition: muonL1MatchExtended_cfi.py:24
muonL1Match_cfi