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 is useful 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 # use only muon system
21 muonAssociatorByHitsNoSimHitsHelper.UseTracker = False
22 
23 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
24 phase2_tracker.toModify( muonAssociatorByHitsNoSimHitsHelper, pixelSimLinkSrc = "simSiPixelDigis:Pixel" )
25 phase2_tracker.toModify( muonAssociatorByHitsNoSimHitsHelper, stripSimLinkSrc = "simSiPixelDigis:Tracker" )