1 import FWCore.ParameterSet.Config
as cms
3 offlinePrimaryVertices = cms.EDProducer(
4 "PrimaryVertexProducer",
6 verbose = cms.untracked.bool(
False),
7 TrackLabel = cms.InputTag(
"generalTracks"),
8 beamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
10 TkFilterParameters = cms.PSet(
11 algorithm=cms.string(
'filter'),
12 maxNormalizedChi2 = cms.double(10.0),
13 minPixelLayersWithHits=cms.int32(2),
14 minSiliconLayersWithHits = cms.int32(5),
15 maxD0Significance = cms.double(4.0),
16 maxD0Error = cms.double(1.0),
17 maxDzError = cms.double(1.0),
18 minPt = cms.double(0.0),
19 maxEta = cms.double(2.4),
20 trackQuality = cms.string(
"any")
23 TkClusParameters = cms.PSet(
24 algorithm = cms.string(
"DA_vect"),
25 TkDAClusParameters = cms.PSet(
26 coolingFactor = cms.double(0.6),
27 zrange = cms.double(4.),
28 delta_highT = cms.double(1.e-2),
29 delta_lowT = cms.double(1.e-3),
30 convergence_mode = cms.int32(0),
31 Tmin = cms.double(2.0),
32 Tpurge = cms.double(2.0),
33 Tstop = cms.double(0.5),
34 vertexSize = cms.double(0.006),
35 d0CutOff = cms.double(3.),
36 dzCutOff = cms.double(3.),
37 zmerge = cms.double(1e-2),
38 uniquetrkweight = cms.double(0.8),
39 uniquetrkminp = cms.double(0.0),
40 runInBlocks = cms.bool(
False),
41 block_size = cms.uint32(10000),
42 overlap_frac = cms.double(0.0)
46 vertexCollections = cms.VPSet(
47 [cms.PSet(label=cms.string(
""),
48 algorithm=cms.string(
"AdaptiveVertexFitter"),
49 chi2cutoff = cms.double(2.5),
50 minNdof=cms.double(0.0),
51 useBeamConstraint = cms.bool(
False),
52 maxDistanceToBeam = cms.double(1.0)
54 cms.PSet(label=cms.string(
"WithBS"),
55 algorithm = cms.string(
'AdaptiveVertexFitter'),
56 chi2cutoff = cms.double(2.5),
57 minNdof=cms.double(2.0),
58 useBeamConstraint = cms.bool(
True),
59 maxDistanceToBeam = cms.double(1.0),
64 isRecoveryIteration = cms.bool(
False),
65 recoveryVtxCollection = cms.InputTag(
"")
70 from Configuration.ProcessModifiers.vertexInBlocks_cff
import vertexInBlocks
71 vertexInBlocks.toModify(offlinePrimaryVertices,
72 TkClusParameters = dict(
73 TkDAClusParameters = dict(
81 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
82 (phase2_tracker & vertexInBlocks).toModify(offlinePrimaryVertices,
83 TkClusParameters = dict(
84 TkDAClusParameters = dict(
90 from Configuration.Eras.Modifier_highBetaStar_2018_cff
import highBetaStar_2018
91 highBetaStar_2018.toModify(offlinePrimaryVertices,
92 TkClusParameters = dict(
93 TkDAClusParameters = dict(
101 uniquetrkweight = 0.9
106 DA_vectParameters = cms.PSet(offlinePrimaryVertices.TkClusParameters.clone())
108 from Configuration.ProcessModifiers.weightedVertexing_cff
import weightedVertexing
109 weightedVertexing.toModify(offlinePrimaryVertices,
110 vertexCollections = cms.VPSet(
111 [cms.PSet(label=cms.string(
""),
112 algorithm=cms.string(
"WeightedMeanFitter"),
113 chi2cutoff = cms.double(2.5),
114 minNdof=cms.double(0.0),
115 useBeamConstraint = cms.bool(
False),
116 maxDistanceToBeam = cms.double(1.0)
118 cms.PSet(label=cms.string(
"WithBS"),
119 algorithm = cms.string(
'WeightedMeanFitter'),
120 minNdof=cms.double(0.0),
121 chi2cutoff = cms.double(2.5),
122 useBeamConstraint = cms.bool(
True),
123 maxDistanceToBeam = cms.double(1.0)
132 from Configuration.Eras.Modifier_trackingLowPU_cff
import trackingLowPU
133 trackingLowPU.toModify(offlinePrimaryVertices,
134 TkFilterParameters = dict(minPixelLayersWithHits = 0))
138 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
139 phase2_tracker.toModify(offlinePrimaryVertices,
140 TkFilterParameters = dict(maxEta = 4.0))
142 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
143 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
144 (pp_on_XeXe_2017 | pp_on_AA).toModify(offlinePrimaryVertices,
145 TkFilterParameters = dict(
146 algorithm=
"filterWithThreshold",
147 maxD0Significance = 2.0,
150 minPixelLayersWithHits=3,
152 trackQuality =
"highPurity",
153 numTracksThreshold = cms.int32(10),
154 maxNumTracksThreshold = cms.int32(1000),
155 minPtTight = cms.double(1.0)
157 TkClusParameters = cms.PSet(
158 algorithm = cms.string(
"gap"),
159 TkGapClusParameters = cms.PSet(
160 zSeparation = cms.double(1.0)
165 from Configuration.Eras.Modifier_highBetaStar_2018_cff
import highBetaStar_2018
166 highBetaStar_2018.toModify(offlinePrimaryVertices,
167 TkFilterParameters = dict(
168 maxNormalizedChi2 = 80.0,
169 minPixelLayersWithHits = 1,
170 minSiliconLayersWithHits = 3,
171 maxD0Significance = 7.0,
176 vertexCollections = {
177 0: dict(chi2cutoff = 4.0, minNdof = -1.1),
178 1: dict(chi2cutoff = 4.0, minNdof = -2.0),