CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/MuonAnalysis/MuonAssociators/python/muonL1MatchExtended_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from MuonAnalysis.MuonAssociators.muonL1Match_cfi import *
00004 from math import pi
00005 
00006 muonL1MatchExtended = cms.EDProducer("L1MatcherExtended",
00007     muons   = cms.InputTag("muons"),
00008     l1extra = cms.InputTag("l1extraParticles"),
00009     segmentArbitration = cms.string("SegmentAndTrackArbitration"),
00010     csctfDigis = cms.InputTag("csctfDigis"),
00011     csctfLcts  = cms.InputTag("csctfDigis"),
00012     matcherGeom = cms.PSet(
00013         preselection = cms.string("gmtMuonCand.quality > 1"), # FIXME: maybe exclude CSC-only region?
00014         useTrack  = cms.string("tracker"),
00015         useState  = cms.string("atVertex"),
00016         maxDeltaR   = cms.double(1.5),             ## FIXME: to be tuned
00017         maxDeltaEta = cms.double(0.3),             ## FIXME: to be tuned
00018         l1PhiOffset = cms.double(1.25 * pi/180.),  
00019         useSimpleGeometry = cms.bool(True),
00020         fallbackToME1     = cms.bool(True),
00021     ) 
00022 )
00023 
00024 def addUserData(patMuonProducer, matcherLabel='muonL1MatchExtended', addExtraInfo=False):
00025     patMuonProducer.userData.userInts.src += [  cms.InputTag(matcherLabel) ]
00026     if addExtraInfo:
00027         for L in ("cscMode", "canPropagate", "l1q"):
00028              patMuonProducer.userData.userInts.src += [  cms.InputTag(matcherLabel,L) ]
00029         for L in ("deltaR", "deltaEta", "deltaPhi", "l1pt"):
00030              patMuonProducer.userData.userFloats.src += [  cms.InputTag(matcherLabel,L) ]
00031