1 import FWCore.ParameterSet.Config
as cms
3 from RecoVertex.PrimaryVertexProducer.TkClusParameters_cff
import DA_vectParameters
5 offlinePrimaryVertices = cms.EDProducer(
6 "PrimaryVertexProducer",
8 verbose = cms.untracked.bool(
False),
9 TrackLabel = cms.InputTag(
"generalTracks"),
10 beamSpotLabel = cms.InputTag(
"offlineBeamSpot"),
12 TkFilterParameters = cms.PSet(
13 algorithm=cms.string(
'filter'),
14 maxNormalizedChi2 = cms.double(10.0),
15 minPixelLayersWithHits=cms.int32(2),
16 minSiliconLayersWithHits = cms.int32(5),
17 maxD0Significance = cms.double(4.0),
18 maxD0Error = cms.double(1.0),
19 maxDzError = cms.double(1.0),
20 minPt = cms.double(0.0),
21 maxEta = cms.double(2.4),
22 trackQuality = cms.string(
"any")
25 TkClusParameters = DA_vectParameters,
27 vertexCollections = cms.VPSet(
28 [cms.PSet(label=cms.string(
""),
29 algorithm=cms.string(
"AdaptiveVertexFitter"),
30 chi2cutoff = cms.double(2.5),
31 minNdof=cms.double(0.0),
32 useBeamConstraint = cms.bool(
False),
33 maxDistanceToBeam = cms.double(1.0)
35 cms.PSet(label=cms.string(
"WithBS"),
36 algorithm = cms.string(
'AdaptiveVertexFitter'),
37 chi2cutoff = cms.double(2.5),
38 minNdof=cms.double(2.0),
39 useBeamConstraint = cms.bool(
True),
40 maxDistanceToBeam = cms.double(1.0),
45 isRecoveryIteration = cms.bool(
False),
46 recoveryVtxCollection = cms.InputTag(
"")
51 from Configuration.ProcessModifiers.weightedVertexing_cff
import weightedVertexing
52 weightedVertexing.toModify(offlinePrimaryVertices,
53 vertexCollections = cms.VPSet(
54 [cms.PSet(label=cms.string(
""),
55 algorithm=cms.string(
"WeightedMeanFitter"),
56 chi2cutoff = cms.double(2.5),
57 minNdof=cms.double(0.0),
58 useBeamConstraint = cms.bool(
False),
59 maxDistanceToBeam = cms.double(1.0)
61 cms.PSet(label=cms.string(
"WithBS"),
62 algorithm = cms.string(
'WeightedMeanFitter'),
63 minNdof=cms.double(0.0),
64 chi2cutoff = cms.double(2.5),
65 useBeamConstraint = cms.bool(
True),
66 maxDistanceToBeam = cms.double(1.0)
75 from Configuration.Eras.Modifier_trackingLowPU_cff
import trackingLowPU
76 trackingLowPU.toModify(offlinePrimaryVertices,
77 TkFilterParameters = dict(minPixelLayersWithHits = 0))
81 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
82 phase2_tracker.toModify(offlinePrimaryVertices,
83 TkFilterParameters = dict(maxEta = 4.0))
85 from Configuration.Eras.Modifier_pp_on_XeXe_2017_cff
import pp_on_XeXe_2017
86 from Configuration.ProcessModifiers.pp_on_AA_cff
import pp_on_AA
87 (pp_on_XeXe_2017 | pp_on_AA).toModify(offlinePrimaryVertices,
88 TkFilterParameters = dict(
89 algorithm=
"filterWithThreshold",
90 maxD0Significance = 2.0,
93 minPixelLayersWithHits=3,
95 trackQuality =
"highPurity",
96 numTracksThreshold = cms.int32(10),
97 maxNumTracksThreshold = cms.int32(1000),
98 minPtTight = cms.double(1.0)
100 TkClusParameters = cms.PSet(
101 algorithm = cms.string(
"gap"),
102 TkGapClusParameters = cms.PSet(
103 zSeparation = cms.double(1.0)
108 from Configuration.Eras.Modifier_highBetaStar_2018_cff
import highBetaStar_2018
109 highBetaStar_2018.toModify(offlinePrimaryVertices,
110 TkFilterParameters = dict(
111 maxNormalizedChi2 = 80.0,
112 minPixelLayersWithHits = 1,
113 minSiliconLayersWithHits = 3,
114 maxD0Significance = 7.0,
119 vertexCollections = {
120 0: dict(chi2cutoff = 4.0, minNdof = -1.1),
121 1: dict(chi2cutoff = 4.0, minNdof = -2.0),