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 minPt = cms.double(0.0),
19 maxEta = cms.double(2.4),
20 trackQuality = cms.string(
"any")
23 TkClusParameters = DA_vectParameters,
25 vertexCollections = cms.VPSet(
26 [cms.PSet(label=cms.string(
""),
27 algorithm=cms.string(
"AdaptiveVertexFitter"),
28 chi2cutoff = cms.double(2.5),
29 minNdof=cms.double(0.0),
30 useBeamConstraint = cms.bool(
False),
31 maxDistanceToBeam = cms.double(1.0)
33 cms.PSet(label=cms.string(
"WithBS"),
34 algorithm = cms.string(
'AdaptiveVertexFitter'),
35 chi2cutoff = cms.double(2.5),
36 minNdof=cms.double(2.0),
37 useBeamConstraint = cms.bool(
True),
38 maxDistanceToBeam = cms.double(1.0)
52 from Configuration.Eras.Modifier_trackingLowPU_cff
import trackingLowPU
53 trackingLowPU.toModify(offlinePrimaryVertices,
54 TkFilterParameters =
dict(minPixelLayersWithHits = 0))
58 from Configuration.Eras.Modifier_phase2_tracker_cff
import phase2_tracker
59 phase2_tracker.toModify(offlinePrimaryVertices,
60 TkFilterParameters =
dict(maxEta = 4.0))