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 TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAny_cfi import *
0004 from TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorAlong_cfi import *
0005 from TrackPropagation.SteppingHelixPropagator.SteppingHelixPropagatorOpposite_cfi import *
0006 from RecoMuon.DetLayers.muonDetLayerGeometry_cfi import *
0007 from math import pi
0008 
0009 muonL1MatcherParameters = cms.PSet(
0010     # Choice of matching algorithm
0011     useTrack = cms.string("tracker"),   # 'none' to use Candidate P4; or 'tracker', 'muon', 'global'
0012     useState = cms.string("atVertex"),  # 'innermost' and 'outermost' require the TrackExtra
0013     useSimpleGeometry = cms.bool(True),  # just use a cylinder plus two disks.
0014     fallbackToME1 = cms.bool(False),     # If propagation to ME2 fails, propagate to ME1
0015 
0016     useMB2InOverlap =  cms.bool(False),  # propagate to MB2 in overlap region (according to L1 experts OMTF uses MB2 as RF in all its coverage) 
0017     useStage2L1 = cms.bool(False),       # Use stage2 L1 instead of legacy one
0018 
0019     sortBy = cms.string("pt"),          # among compatible candidates, pick the highest pt one
0020 
0021     # Matching Criteria
0022     maxDeltaR   = cms.double(0.5),
0023     maxDeltaPhi = cms.double(6),
0024     maxDeltaEta = cms.double(99),
0025     l1PhiOffset = cms.double(1.25 * pi/180.), ## Offset to add to L1 phi before matching (according to L1 experts)
0026 )
0027 
0028 ### For L1 Singlets you 
0029 
0030 muonL1Match = cms.EDProducer("L1MuonMatcher",
0031     muonL1MatcherParameters,
0032 
0033     # Reconstructed muons
0034     src = cms.InputTag("muons"),
0035 
0036     # L1 Muon collection, and preselection on that collection
0037     matched      = cms.InputTag("l1extraParticles"),
0038     preselection = cms.string("bx == 0"),
0039 
0040     # Fake filter labels for output
0041     setL1Label = cms.string("l1"),
0042     setPropLabel = cms.string("propagated"),
0043 
0044     # Write extra ValueMaps
0045     writeExtraInfo = cms.bool(True),
0046 
0047     # Min and Max BXs from l1t::BxVector (applies to stage 2 only)
0048     firstBX = cms.int32(0),
0049     lastBX  = cms.int32(0),
0050 
0051 )