CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
muonL1Match_cfi.py
Go to the documentation of this file.
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  sortBy = cms.string("pt"), # among compatible candidates, pick the highest pt one
16 
17  # Matching Criteria
18  maxDeltaR = cms.double(0.5),
19  maxDeltaPhi = cms.double(6),
20  maxDeltaEta = cms.double(99),
21  l1PhiOffset = cms.double(1.25 * pi/180.), ## Offset to add to L1 phi before matching (according to L1 experts)
22 )
23 
24 ### For L1 Singlets you
25 
26 muonL1Match = cms.EDProducer("L1MuonMatcher",
27  muonL1MatcherParameters,
28 
29  # Reconstructed muons
30  src = cms.InputTag("muons"),
31 
32  # L1 Muon collection, and preselection on that collection
33  matched = cms.InputTag("l1extraParticles"),
34  preselection = cms.string("bx == 0"),
35 
36  # Fake filter labels for output
37  setL1Label = cms.string("l1"),
38  setPropLabel = cms.string("propagated"),
39 
40  # Write extra ValueMaps
41  writeExtraInfo = cms.bool(True),
42 )