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 offlinePrimaryVertices = cms.EDProducer("PrimaryVertexProducer",
4 
5  verbose = cms.untracked.bool(False),
6  TrackLabel = cms.InputTag("generalTracks"),
7  beamSpotLabel = cms.InputTag("offlineBeamSpot"),
8 
9  TkFilterParameters = cms.PSet(
10  algorithm=cms.string('filter'),
11  maxNormalizedChi2 = cms.double(20.0),
12  minPixelLayersWithHits=cms.int32(2),
13  minSiliconLayersWithHits = cms.int32(5),
14  maxD0Significance = cms.double(5.0),
15  minPt = cms.double(0.0),
16  trackQuality = cms.string("any")
17  ),
18 
19  TkClusParameters = cms.PSet(
20  algorithm = cms.string("DA_vect"),
21  TkDAClusParameters = cms.PSet(
22  coolingFactor = cms.double(0.6), # moderate annealing speed
23  Tmin = cms.double(4.), # end of annealing
24  vertexSize = cms.double(0.01), # ~ resolution / sqrt(Tmin)
25  d0CutOff = cms.double(3.), # downweight high IP tracks
26  dzCutOff = cms.double(4.) # outlier rejection after freeze-out (T<Tmin)
27  )
28  ),
29 
30  vertexCollections = cms.VPSet(
31  [cms.PSet(label=cms.string(""),
32  algorithm=cms.string("AdaptiveVertexFitter"),
33  minNdof=cms.double(0.0),
34  useBeamConstraint = cms.bool(False),
35  maxDistanceToBeam = cms.double(1.0)
36  ),
37  cms.PSet(label=cms.string("WithBS"),
38  algorithm = cms.string('AdaptiveVertexFitter'),
39  minNdof=cms.double(2.0),
40  useBeamConstraint = cms.bool(True),
41  maxDistanceToBeam = cms.double(1.0)
42  )
43  ]
44  )
45 
46 
47 
48 )
49 
50 # This customization is needed in the trackingLowPU era to be able to
51 # produce vertices also in the cases in which the pixel detector is
52 # not included in data-taking, like it was the case for "Quiet Beam"
53 # collisions on 2016 with run 269207.
54 
55 from Configuration.StandardSequences.Eras import eras
56 eras.trackingLowPU.toModify(offlinePrimaryVertices,
57  TkFilterParameters = dict(minPixelLayersWithHits = 0))