test
CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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(20.0),
15  minPixelLayersWithHits=cms.int32(2),
16  minSiliconLayersWithHits = cms.int32(5),
17  maxD0Significance = cms.double(5.0),
18  minPt = cms.double(0.0),
19  trackQuality = cms.string("any")
20  ),
21 
22  TkClusParameters = DA_vectParameters,
23 
24  vertexCollections = cms.VPSet(
25  [cms.PSet(label=cms.string(""),
26  algorithm=cms.string("AdaptiveVertexFitter"),
27  minNdof=cms.double(0.0),
28  useBeamConstraint = cms.bool(False),
29  maxDistanceToBeam = cms.double(1.0)
30  ),
31  cms.PSet(label=cms.string("WithBS"),
32  algorithm = cms.string('AdaptiveVertexFitter'),
33  minNdof=cms.double(2.0),
34  useBeamConstraint = cms.bool(True),
35  maxDistanceToBeam = cms.double(1.0)
36  )
37  ]
38  )
39 
40 
41 
42 )
43 
44 # This customization is needed in the trackingLowPU era to be able to
45 # produce vertices also in the cases in which the pixel detector is
46 # not included in data-taking, like it was the case for "Quiet Beam"
47 # collisions on 2016 with run 269207.
48 
49 from Configuration.Eras.Modifier_trackingLowPU_cff import trackingLowPU
50 trackingLowPU.toModify(offlinePrimaryVertices,
51  TkFilterParameters = dict(minPixelLayersWithHits = 0))