CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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