1 import FWCore.ParameterSet.Config
as cms
4 muonAssociatorByHitsCommonParameters = cms.PSet(
5 dumpInputCollections = cms.untracked.bool(
False),
10 includeZeroHitMuons = cms.bool(
True),
13 acceptOneStubMatchings = cms.bool(
True),
16 UseTracker = cms.bool(
True),
17 UseMuon = cms.bool(
True),
20 AbsoluteNumberOfHits_muon = cms.bool(
False),
21 NHitCut_muon = cms.uint32(0),
22 EfficiencyCut_muon = cms.double(0.),
23 PurityCut_muon = cms.double(0.),
26 AbsoluteNumberOfHits_track = cms.bool(
False),
27 NHitCut_track = cms.uint32(0),
28 EfficiencyCut_track = cms.double(0.),
29 PurityCut_track = cms.double(0.),
32 UsePixels = cms.bool(
True),
33 UseGrouped = cms.bool(
True),
34 UseSplitting = cms.bool(
True),
35 ThreeHitTracksAreSpecial = cms.bool(
False),
38 crossingframe = cms.bool(
False),
39 simtracksTag = cms.InputTag(
"g4SimHits"),
40 simtracksXFTag = cms.InputTag(
"mix",
"g4SimHits"),
42 DTsimhitsTag = cms.InputTag(
"g4SimHits",
"MuonDTHits"),
43 DTsimhitsXFTag = cms.InputTag(
"mix",
"g4SimHitsMuonDTHits"),
44 DTdigiTag = cms.InputTag(
"simMuonDTDigis"),
45 DTdigisimlinkTag = cms.InputTag(
"simMuonDTDigis"),
46 DTrechitTag = cms.InputTag(
"dt1DRecHits"),
48 dumpDT = cms.bool(
False),
49 links_exist = cms.bool(
True),
50 associatorByWire = cms.bool(
False),
53 CSCsimHitsTag = cms.InputTag(
"g4SimHits",
"MuonCSCHits"),
54 CSCsimHitsXFTag = cms.InputTag(
"mix",
"g4SimHitsMuonCSCHits"),
55 CSClinksTag = cms.InputTag(
"simMuonCSCDigis",
"MuonCSCStripDigiSimLinks"),
56 CSCwireLinksTag = cms.InputTag(
"simMuonCSCDigis",
"MuonCSCWireDigiSimLinks"),
59 RPCsimhitsTag = cms.InputTag(
"g4SimHits",
"MuonRPCHits"),
60 RPCsimhitsXFTag = cms.InputTag(
"mix",
"g4SimHitsMuonRPCHits"),
61 RPCdigisimlinkTag = cms.InputTag(
"simMuonRPCDigis",
"RPCDigiSimLink"),
64 useGEMs = cms.bool(
False),
65 GEMsimhitsTag = cms.InputTag(
"g4SimHits",
"MuonGEMHits"),
66 GEMsimhitsXFTag = cms.InputTag(
"mix",
"g4SimHitsMuonGEMHits"),
67 GEMdigisimlinkTag = cms.InputTag(
"simMuonGEMDigis",
"GEM"),
71 associatePixel = cms.bool(
True),
72 associateStrip = cms.bool(
True),
73 usePhase2Tracker = cms.bool(
False),
74 pixelSimLinkSrc = cms.InputTag(
"simSiPixelDigis"),
75 stripSimLinkSrc = cms.InputTag(
"simSiStripDigis"),
76 phase2TrackerSimLinkSrc = cms.InputTag(
"simSiPixelDigis",
"Tracker"),
77 associateRecoTracks = cms.bool(
True),
79 ROUList = cms.vstring(
'TrackerHitsTIBLowTof',
80 'TrackerHitsTIBHighTof',
81 'TrackerHitsTIDLowTof',
82 'TrackerHitsTIDHighTof',
83 'TrackerHitsTOBLowTof',
84 'TrackerHitsTOBHighTof',
85 'TrackerHitsTECLowTof',
86 'TrackerHitsTECHighTof',
87 'TrackerHitsPixelBarrelLowTof',
88 'TrackerHitsPixelBarrelHighTof',
89 'TrackerHitsPixelEndcapLowTof',
90 'TrackerHitsPixelEndcapHighTof'),
93 inputDTRecSegment4DCollection = cms.InputTag(
"dt4DSegments"),
94 inputCSCSegmentCollection = cms.InputTag(
"cscSegments"),
98 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
99 if fastSim.isChosen():
101 obj = muonAssociatorByHitsCommonParameters
102 obj.simtracksTag =
"famosSimHits" 103 obj.DTsimhitsTag =
"MuonSimHits:MuonDTHits" 104 obj.CSCsimHitsTag =
"MuonSimHits:MuonCSCHits" 105 obj.RPCsimhitsTag =
"MuonSimHits:MuonRPCHits" 106 obj.simtracksXFTag =
"mix:famosSimHits" 107 obj.DTsimhitsXFTag =
"mix:MuonSimHitsMuonDTHits" 108 obj.CSCsimHitsXFTag =
"mix:MuonSimHitsMuonCSCHits" 109 obj.RPCsimhitsXFTag =
"mix:MuonSimHitsMuonRPCHits" 110 obj.ROUList = [
'famosSimHitsTrackerHits']
113 muonAssociatorByHits = cms.EDProducer(
"MuonAssociatorEDProducer",
115 muonAssociatorByHitsCommonParameters,
126 tracksTag = cms.InputTag(
"globalMuons"),
140 tpTag = cms.InputTag(
"mix",
"MergedTrackTruth"),
141 ignoreMissingTrackCollection = cms.untracked.bool(
False),
144 from Configuration.Eras.Modifier_run3_GEM_cff
import run3_GEM
145 run3_GEM.toModify( muonAssociatorByHits, useGEMs = cms.bool(
True) )
146 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
147 phase2_tracker.toModify( muonAssociatorByHits, usePhase2Tracker = cms.bool(
True) )
148 phase2_tracker.toModify( muonAssociatorByHits, pixelSimLinkSrc =
"simSiPixelDigis:Pixel" )