CMS 3D CMS Logo

muons1stStep_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # -*-SH-*-
9 muons1stStep = cms.EDProducer("MuonIdProducer",
10  # MuonCaloCompatibility
11  MuonCaloCompatibilityBlock,
12  # TrackDetectorAssociator
13  TrackAssociatorParameterBlock,
14  # MuonIsolation
15  MIdIsoExtractorPSetBlock,
16  # MuonTiming
17  TimingFillerBlock,
18  # Kink finder
19  TrackerKinkFinderParametersBlock,
20 
21  fillEnergy = cms.bool(True),
22  # OR
23  maxAbsPullX = cms.double(3.0),
24  maxAbsEta = cms.double(3.0),
25 
26  # Selection parameters
27  minPt = cms.double(0.5),
28  inputCollectionTypes = cms.vstring('inner tracks',
29  'links',
30  'outer tracks',
31  'tev firstHit',
32  'tev picky',
33  'tev dyt'),
34  addExtraSoftMuons = cms.bool(False),
35  fillGlobalTrackRefits = cms.bool(True),
36 
37  # internal
38  debugWithTruthMatching = cms.bool(False),
39  # input tracks
40  inputCollectionLabels = cms.VInputTag(cms.InputTag("generalTracks"), cms.InputTag("globalMuons"), cms.InputTag("standAloneMuons","UpdatedAtVtx"),
41  cms.InputTag("tevMuons","firstHit"),cms.InputTag("tevMuons","picky"),cms.InputTag("tevMuons","dyt")),
42  fillCaloCompatibility = cms.bool(True),
43  # OR
44  maxAbsPullY = cms.double(9999.0),
45  # AND
46  maxAbsDy = cms.double(9999.0),
47  minP = cms.double(2.5),
48  minPCaloMuon = cms.double(1e9),
49 
50  # Match parameters
51  maxAbsDx = cms.double(3.0),
52  fillIsolation = cms.bool(True),
53  writeIsoDeposits = cms.bool(True),
54  minNumberOfMatches = cms.int32(1),
55  fillMatching = cms.bool(True),
56 
57  # global fit for candidate p4 requirements
58  ptThresholdToFillCandidateP4WithGlobalFit = cms.double(200.0),
59  sigmaThresholdToFillCandidateP4WithGlobalFit = cms.double(2.0),
60 
61  # global quality
62  fillGlobalTrackQuality = cms.bool(False), #input depends on external module output --> set to True where the sequence is defined
63  globalTrackQualityInputTag = cms.InputTag('glbTrackQual'),
64 
65  # tracker kink finding
66  fillTrackerKink = cms.bool(True),
67 
68  # calo muons
69  minCaloCompatibility = cms.double(0.6),
70 
71  # arbitration cleaning
72  runArbitrationCleaner = cms.bool(True),
73  arbitrationCleanerOptions = cms.PSet( ME1a = cms.bool(True),
74  Overlap = cms.bool(True),
75  Clustering = cms.bool(True),
76  OverlapDPhi = cms.double(0.0786), # 4.5 degrees
77  OverlapDTheta = cms.double(0.02), # 1.14 degrees
78  ClusterDPhi = cms.double(0.6), # 34 degrees
79  ClusterDTheta = cms.double(0.02) # 1.14
80  ),
81 
82  # tracker muon arbitration
83  arbitrateTrackerMuons = cms.bool(True)
84 )
85 
86 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
87 run3_GEM.toModify( muons1stStep, TrackAssociatorParameters = dict(useGEM = cms.bool(True) ) )
88 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
89 phase2_muon.toModify( muons1stStep, TrackAssociatorParameters = dict(useME0 = cms.bool(True) ) )
90 
91 muonEcalDetIds = cms.EDProducer("InterestingEcalDetIdProducer",
92  inputCollection = cms.InputTag("muons1stStep")
93 )
94 
95