CMS 3D CMS Logo

muonL1Match_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
7 from math import pi
8 
9 muonL1MatcherParameters = cms.PSet(
10  # Choice of matching algorithm
11  useTrack = cms.string("tracker"), # 'none' to use Candidate P4; or 'tracker', 'muon', 'global'
12  useState = cms.string("atVertex"), # 'innermost' and 'outermost' require the TrackExtra
13  useSimpleGeometry = cms.bool(True), # just use a cylinder plus two disks.
14  fallbackToME1 = cms.bool(False), # If propagation to ME2 fails, propagate to ME1
15 
16  useMB2InOverlap = cms.bool(False), # propagate to MB2 in overlap region (according to L1 experts OMTF uses MB2 as RF in all its coverage)
17  useStage2L1 = cms.bool(False), # Use stage2 L1 instead of legacy one
18 
19  sortBy = cms.string("pt"), # among compatible candidates, pick the highest pt one
20 
21  # Matching Criteria
22  maxDeltaR = cms.double(0.5),
23  maxDeltaPhi = cms.double(6),
24  maxDeltaEta = cms.double(99),
25  l1PhiOffset = cms.double(1.25 * pi/180.),
26 )
27 
28 
29 
30 muonL1Match = cms.EDProducer("L1MuonMatcher",
31  muonL1MatcherParameters,
32 
33  # Reconstructed muons
34  src = cms.InputTag("muons"),
35 
36  # L1 Muon collection, and preselection on that collection
37  matched = cms.InputTag("l1extraParticles"),
38  preselection = cms.string("bx == 0"),
39 
40  # Fake filter labels for output
41  setL1Label = cms.string("l1"),
42  setPropLabel = cms.string("propagated"),
43 
44  # Write extra ValueMaps
45  writeExtraInfo = cms.bool(True),
46 
47  # Min and Max BXs from l1t::BxVector (applies to stage 2 only)
48  firstBX = cms.int32(0),
49  lastBX = cms.int32(0),
50 
51 )