4 import FWCore.ParameterSet.Config
as cms
11 from FastSimulation.TrackingRecHitProducer.PixelPluginsPhase0_cfi
import pixelPluginsPhase0
12 from FastSimulation.TrackingRecHitProducer.PixelPluginsPhase1_cfi
import pixelPluginsPhase1
13 from FastSimulation.TrackingRecHitProducer.PixelPluginsPhase2_cfi
import pixelPluginsPhase2
17 fastTrackerRecHits = cms.EDProducer(
"TrackingRecHitProducer",
18 simHits = cms.InputTag(
"fastSimProducer",
"TrackerHits"),
19 plugins = pixelPluginsPhase0
23 from Configuration.Eras.Modifier_phase1Pixel_cff
import phase1Pixel
24 phase1Pixel.toModify(fastTrackerRecHits, plugins = pixelPluginsPhase1)
27 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
28 phase2_tracker.toModify(fastTrackerRecHits, plugins = pixelPluginsPhase2)
31 trackerStripGaussianResolutions={
33 1: cms.double(0.00195),
34 2: cms.double(0.00191),
35 3: cms.double(0.00325),
36 4: cms.double(0.00323)
39 1: cms.double(0.00262),
40 2: cms.double(0.00354),
41 3: cms.double(0.00391)
44 1: cms.double(0.00461),
45 2: cms.double(0.00458),
46 3: cms.double(0.00488),
47 4: cms.double(0.00491),
48 5: cms.double(0.00293),
49 6: cms.double(0.00299)
52 1: cms.double(0.00262),
53 2: cms.double(0.00354),
54 3: cms.double(0.00391),
55 4: cms.double(0.00346),
56 5: cms.double(0.00378),
57 6: cms.double(0.00508),
58 7: cms.double(0.00422),
59 8: cms.double(0.00434),
60 9: cms.double(0.00432),
64 for subdetId,trackerLayers
in six.iteritems(trackerStripGaussianResolutions):
65 for trackerLayer, resolutionX
in six.iteritems(trackerLayers):
66 pluginConfig = cms.PSet(
67 name = cms.string(subdetId+
str(trackerLayer)),
68 type=cms.string(
"TrackingRecHitStripGSPlugin"),
69 resolutionX=resolutionX,
70 select=cms.string(
"(subdetId=="+subdetId+
") && (layer=="+
str(trackerLayer)+
")"),
72 fastTrackerRecHits.plugins.append(pluginConfig)