CMS 3D CMS Logo

OfflinePrimaryVertices_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoVertex.PrimaryVertexProducer.TkClusParameters_cff import DA_vectParameters
4 
5 offlinePrimaryVertices = cms.EDProducer(
6  "PrimaryVertexProducer",
7 
8  verbose = cms.untracked.bool(False),
9  TrackLabel = cms.InputTag("generalTracks"),
10  beamSpotLabel = cms.InputTag("offlineBeamSpot"),
11 
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")
21  ),
22 
23  TkClusParameters = DA_vectParameters,
24 
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)
32  ),
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)
39  )
40  ]
41  )
42 
43 
44 
45 )
46 
47 # This customization is needed in the trackingLowPU era to be able to
48 # produce vertices also in the cases in which the pixel detector is
49 # not included in data-taking, like it was the case for "Quiet Beam"
50 # collisions on 2016 with run 269207.
51 
52 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
53 trackingLowPU.toModify(offlinePrimaryVertices,
54  TkFilterParameters = dict(minPixelLayersWithHits = 0))
55 
56 
57 # higher eta cut for the phase 2 tracker
58 from Configuration.Eras.Modifier_phase2_tracker_cff import phase2_tracker
59 phase2_tracker.toModify(offlinePrimaryVertices,
60  TkFilterParameters = dict(maxEta = 4.0))