Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:48

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from MuonAnalysis.MuonAssociators.muonL1Match_cfi import *
0004 from math import pi
0005 
0006 muonL1MatchExtended = cms.EDProducer("L1MatcherExtended",
0007     muons   = cms.InputTag("muons"),
0008     l1extra = cms.InputTag("l1extraParticles"),
0009     segmentArbitration = cms.string("SegmentAndTrackArbitration"),
0010     csctfDigis = cms.InputTag("csctfDigis"),
0011     csctfLcts  = cms.InputTag("csctfDigis"),
0012     matcherGeom = cms.PSet(
0013         preselection = cms.string("gmtMuonCand.quality > 1"), # FIXME: maybe exclude CSC-only region?
0014         useTrack  = cms.string("tracker"),
0015         useState  = cms.string("atVertex"),
0016         maxDeltaR   = cms.double(1.5),             ## FIXME: to be tuned
0017         maxDeltaEta = cms.double(0.3),             ## FIXME: to be tuned
0018         l1PhiOffset = cms.double(1.25 * pi/180.),  
0019         useSimpleGeometry = cms.bool(True),
0020         fallbackToME1     = cms.bool(True),
0021     ) 
0022 )
0023 
0024 def addUserData(patMuonProducer, matcherLabel='muonL1MatchExtended', addExtraInfo=False):
0025     patMuonProducer.userData.userInts.src += [  cms.InputTag(matcherLabel) ]
0026     if addExtraInfo:
0027         for L in ("cscMode", "canPropagate", "l1q"):
0028              patMuonProducer.userData.userInts.src += [  cms.InputTag(matcherLabel,L) ]
0029         for L in ("deltaR", "deltaEta", "deltaPhi", "l1pt"):
0030              patMuonProducer.userData.userFloats.src += [  cms.InputTag(matcherLabel,L) ]
0031