CMS 3D CMS Logo

muonAssociatorByHitsNoSimHitsHelper_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 ## muonAssociatorByHits using only digiSimLinks (and TrackingParticles),
4 ## not accessing the PSimHits directly. Useful if you run on RECOSIM without RAWSIM
5 
6 from SimMuon.MCTruth.MuonAssociatorByHits_cfi import muonAssociatorByHitsCommonParameters
7 muonAssociatorByHitsNoSimHitsHelper = cms.EDProducer("MuonToTrackingParticleAssociatorEDProducer",
8  muonAssociatorByHitsCommonParameters
9 )
10 # don't read simhits, they're not there
11 muonAssociatorByHitsNoSimHitsHelper.CSCsimHitsTag = ""
12 muonAssociatorByHitsNoSimHitsHelper.RPCsimhitsTag = ""
13 muonAssociatorByHitsNoSimHitsHelper.GEMsimhitsTag = ""
14 muonAssociatorByHitsNoSimHitsHelper.DTsimhitsTag = ""
15 
16 ### The following was used when running only on RECO
17 # don't normalize on the total number of hits (which is unknown, if I don't have simHits)
18 #muonAssociatorByHitsNoSimHitsHelper.AbsoluteNumberOfHits_muon = True
19 #muonAssociatorByHitsNoSimHitsHelper.AbsoluteNumberOfHits_track = True
20 #
21 ### currently this is dealt with in the code itself (MuonAssociatorByHitsHelper.cc)
22 ### to allow ranking the simToReco matches according to the number of shared hits:
23 ### this is relevant for the definition of duplicates
24 
25 # use only muon system
26 muonAssociatorByHitsNoSimHitsHelper.UseTracker = False
27 
28 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
29 run3_GEM.toModify( muonAssociatorByHitsNoSimHitsHelper, useGEMs = cms.bool(True) )
30 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
31 phase2_tracker.toModify( muonAssociatorByHitsNoSimHitsHelper, usePhase2Tracker = cms.bool(True) )
32 phase2_tracker.toModify( muonAssociatorByHitsNoSimHitsHelper, pixelSimLinkSrc = "simSiPixelDigis:Pixel" )