CMS 3D CMS Logo

quickTrackAssociatorByHits_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 quickTrackAssociatorByHits = cms.EDProducer("QuickTrackAssociatorByHitsProducer",
4  AbsoluteNumberOfHits = cms.bool(False),
5  Cut_RecoToSim = cms.double(0.75),
6  SimToRecoDenominator = cms.string('reco'), # either "sim" or "reco"
7  Quality_SimToReco = cms.double(0.5),
8  Purity_SimToReco = cms.double(0.75),
9  ThreeHitTracksAreSpecial = cms.bool(True),
10  PixelHitWeight = cms.double(1.0),
11  useClusterTPAssociation = cms.bool(True),
12  cluster2TPSrc = cms.InputTag("tpClusterProducer")
13 )
14 
15 quickTrackAssociatorByHitsTrackerHitAssociator = quickTrackAssociatorByHits.clone(
16  useClusterTPAssociation = False,
17  associateStrip = cms.bool(True),
18  associatePixel = cms.bool(True),
19  pixelSimLinkSrc = cms.InputTag("simSiPixelDigis"),
20  stripSimLinkSrc = cms.InputTag("simSiStripDigis"),
21 )
22 
23 from Configuration.Eras.Modifier_fastSim_cff import fastSim
24 fastSim.toReplaceWith(quickTrackAssociatorByHits, quickTrackAssociatorByHitsTrackerHitAssociator.clone(
25  associateStrip = False,
26  associatePixel = False,
27 ))
28 
29 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
30 (fastSim & premix_stage2).toModify(quickTrackAssociatorByHits,
31  pixelSimLinkSrc = "mixData:PixelDigiSimLink",
32  stripSimLinkSrc = "mixData:StripDigiSimLink",
33 )