1 import FWCore.ParameterSet.Config
as cms
4 fastTrackerRecHits = cms.EDProducer(
"TrackingRecHitProducer",
5 simHits = cms.InputTag(
"famosSimHits",
"TrackerHits"),
9 fastTrackerRecHits.plugins.append(
11 name = cms.string(
"pixelBarrelSmearer"),
12 type=cms.string(
"PixelBarrelTemplateSmearerPlugin"),
13 BigPixelBarrelResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/NewPixelResolutionBarrel38T.root'),
14 EdgePixelBarrelResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/NewPixelResolutionBarrelEdge38T.root'),
15 RegularPixelBarrelResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/PixelBarrelResolution2014.root'),
16 BigPixelForwardResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/NewPixelResolutionForward38T.root'),
17 EdgePixelForwardResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/NewPixelResolutionForward38T.root'),
18 RegularPixelForwardResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/PixelForwardResolution2014.root'),
19 UseCMSSWPixelParametrization = cms.bool(
False),
20 MergeHitsOn = cms.bool(
False),
21 MergingProbabilityBarrelFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/bmergeprob.root'),
22 MergingProbabilityForwardFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/fmergeprob.root'),
23 MergedPixelBarrelResolutionXFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/bxsmear.root'),
24 MergedPixelForwardResolutionXFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/fxsmear.root'),
25 MergedPixelBarrelResolutionYFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/bysmear.root'),
26 MergedPixelForwardResolutionYFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/fysmear.root'),
27 templateId = cms.int32( 40 ),
28 select=cms.string(
"subdetId==BPX"),
32 fastTrackerRecHits.plugins.append(
34 name = cms.string(
"pixelForwardSmearer"),
35 type=cms.string(
"PixelForwardTemplateSmearerPlugin"),
36 BigPixelBarrelResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/NewPixelResolutionBarrel38T.root'),
37 EdgePixelBarrelResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/NewPixelResolutionBarrelEdge38T.root'),
38 RegularPixelBarrelResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/PixelBarrelResolution2014.root'),
39 BigPixelForwardResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/NewPixelResolutionForward38T.root'),
40 EdgePixelForwardResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/NewPixelResolutionForward38T.root'),
41 RegularPixelForwardResolutionFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/PixelForwardResolution2014.root'),
42 UseCMSSWPixelParametrization = cms.bool(
False),
43 MergeHitsOn = cms.bool(
False),
44 MergingProbabilityBarrelFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/bmergeprob.root'),
45 MergingProbabilityForwardFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/fmergeprob.root'),
46 MergedPixelBarrelResolutionXFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/bxsmear.root'),
47 MergedPixelForwardResolutionXFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/fxsmear.root'),
48 MergedPixelBarrelResolutionYFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/bysmear.root'),
49 MergedPixelForwardResolutionYFile = cms.string(
'FastSimulation/TrackingRecHitProducer/data/fysmear.root'),
50 templateId = cms.int32( 41 ),
51 select=cms.string(
"subdetId==FPX"),
55 trackerStripGaussianResolutions={
57 1: cms.double(0.00195),
58 2: cms.double(0.00191),
59 3: cms.double(0.00325),
60 4: cms.double(0.00323)
63 1: cms.double(0.00262),
64 2: cms.double(0.00354),
65 3: cms.double(0.00391)
68 1: cms.double(0.00461),
69 2: cms.double(0.00458),
70 3: cms.double(0.00488),
71 4: cms.double(0.00491),
72 5: cms.double(0.00293),
73 6: cms.double(0.00299)
76 1: cms.double(0.00262),
77 2: cms.double(0.00354),
78 3: cms.double(0.00391),
79 4: cms.double(0.00346),
80 5: cms.double(0.00378),
81 6: cms.double(0.00508),
82 7: cms.double(0.00422),
83 8: cms.double(0.00434),
84 9: cms.double(0.00432),
88 for subdetId,trackerLayers
in trackerStripGaussianResolutions.iteritems():
89 for trackerLayer, resolutionX
in trackerLayers.iteritems():
90 pluginConfig = cms.PSet(
91 name = cms.string(subdetId+str(trackerLayer)),
92 type=cms.string(
"TrackingRecHitStripGSPlugin"),
93 resolutionX=resolutionX,
94 select=cms.string(
"(subdetId=="+subdetId+
") && (layer=="+str(trackerLayer)+
")"),
96 fastTrackerRecHits.plugins.append(pluginConfig)