CMS 3D CMS Logo

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

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 from TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi import *
00004 from TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi import *
00005 from TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi import *
00006 from RecoMuon.DetLayers.muonDetLayerGeometry_cfi import *
00007 from math import pi
00008 
00009 muonL1MatcherParameters = cms.PSet(
00010     # Choice of matching algorithm
00011     useTrack = cms.string("tracker"),  # 'none' to use Candidate P4; or 'tracker', 'muon', 'global'
00012     useState = cms.string("atVertex"), # 'innermost' and 'outermost' require the TrackExtra
00013     useSimpleGeometry = cms.bool(True), # just use a cylinder plus two disks.
00014     fallbackToME1 = cms.bool(False),    # If propagation to ME2 fails, propagate to ME1
00015     sortBy = cms.string("pt"),          # among compatible candidates, pick the highest pt one
00016 
00017     # Matching Criteria
00018     maxDeltaR   = cms.double(0.5),
00019     maxDeltaPhi = cms.double(6),
00020     maxDeltaEta = cms.double(99),
00021     l1PhiOffset = cms.double(1.25 * pi/180.), ## Offset to add to L1 phi before matching (according to L1 experts)
00022 )
00023 
00024 ### For L1 Singlets you 
00025 
00026 muonL1Match = cms.EDProducer("L1MuonMatcher",
00027     muonL1MatcherParameters,
00028 
00029     # Reconstructed muons
00030     src = cms.InputTag("muons"),
00031 
00032     # L1 Muon collection, and preselection on that collection
00033     matched      = cms.InputTag("l1extraParticles"),
00034     preselection = cms.string("bx == 0"),
00035 
00036     # Fake filter labels for output
00037     setL1Label = cms.string("l1"),
00038     setPropLabel = cms.string("propagated"),
00039 
00040     # Write extra ValueMaps
00041     writeExtraInfo = cms.bool(True),
00042 )