CMS 3D CMS Logo

pvRecoSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 
7 #from RecoVertex.PrimaryVertexProducer.OfflinePrimaryVertices_cfi import *
8 
9 # 2010-like PV reconstruction
10 
11 offlinePrimaryVerticesGAP = cms.EDProducer("PrimaryVertexProducer",
12  verbose = cms.untracked.bool(False),
13  beamSpotLabel = cms.InputTag("offlineBeamSpot"),
14  TrackLabel = cms.InputTag("generalTracks"), # label of tracks to be used
15  TkFilterParameters = cms.PSet(
16  algorithm=cms.string('filter'),
17  maxNormalizedChi2 = cms.double(20.0), #
18  minSiliconLayersWithHits = cms.int32(5), # >= 5
19  minPixelLayersWithHits = cms.int32(2), # >= 2
20  maxD0Significance = cms.double(100.0), # keep most primary tracks
21  minPt = cms.double(0.0), # better for softish events
22  maxEta = cms.double(5.0),
23  trackQuality = cms.string("any")
24  ),
25  # clustering
26  TkClusParameters = cms.PSet(
27  algorithm = cms.string('gap'),
28  TkGapClusParameters = cms.PSet(
29  zSeparation = cms.double(0.2)
30  )
31  ),
32  vertexCollections = cms.VPSet(
33  [cms.PSet(label=cms.string(""),
34  chi2cutoff = cms.double(3.0),
35  algorithm = cms.string('AdaptiveVertexFitter'),
36  minNdof=cms.double(0.0),
37  useBeamConstraint = cms.bool(False),
38  maxDistanceToBeam = cms.double(2.0)
39  )]
40  )
41 )
42 
43 
44 
45 offlinePrimaryVerticesD0s5 = offlinePrimaryVerticesGAP.clone()
46 offlinePrimaryVerticesD0s5.TkFilterParameters.maxD0Significance = cms.double(5)
47 
48 offlinePrimaryVerticesD0s51mm = offlinePrimaryVerticesGAP.clone()
49 offlinePrimaryVerticesD0s51mm.TkFilterParameters.maxD0Significance = cms.double(5)
50 offlinePrimaryVerticesD0s51mm.TkClusParameters.TkGapClusParameters.zSeparation = cms.double(0.1)
51 
52 
53 offlinePrimaryVerticesDA100um = cms.EDProducer("PrimaryVertexProducer",
54 
55  verbose = cms.untracked.bool(False),
56  TrackLabel = cms.InputTag("generalTracks"),
57  beamSpotLabel = cms.InputTag("offlineBeamSpot"),
58 
59  TkFilterParameters = cms.PSet(
60  algorithm=cms.string('filter'),
61  maxNormalizedChi2 = cms.double(20.0),
62  minPixelLayersWithHits=cms.int32(2),
63  minSiliconLayersWithHits = cms.int32(5),
64  maxD0Significance = cms.double(5.0),
65  minPt = cms.double(0.0),
66  maxEta = cms.double(5.0),
67  trackQuality = cms.string("any")
68  ),
69 
70  TkClusParameters = cms.PSet(
71  algorithm = cms.string("DA"),
72  TkDAClusParameters = cms.PSet(
73  coolingFactor = cms.double(0.6), # moderate annealing speed
74  Tmin = cms.double(4.0), # end of annealing
75  vertexSize = cms.double(0.01), #
76  d0CutOff = cms.double(3.), # downweight high IP tracks
77  dzCutOff = cms.double(4.), # outlier rejection after freeze-out (T<Tmin)
78  )
79  ),
80 
81  vertexCollections = cms.VPSet(
82  [cms.PSet(label=cms.string(""),
83  chi2cutoff = cms.double(3.0),
84  algorithm=cms.string("AdaptiveVertexFitter"),
85  minNdof=cms.double(0.0),
86  useBeamConstraint = cms.bool(False),
87  maxDistanceToBeam = cms.double(1.0)
88  )
89  ]
90  )
91 
92 
93 
94 )
95 
96 offlinePrimaryVerticesDA100umV7 = offlinePrimaryVerticesDA100um.clone()
97 offlinePrimaryVerticesDA100umV7.vertexCollections[0].maxDistanceToBeam = cms.double(2.0)
98 offlinePrimaryVerticesDA100umV7.TkFilterParameters.maxNormalizedChi2 = cms.double(5.0)
99 offlinePrimaryVerticesDA100umV7.TkClusParameters.TkDAClusParameters.coolingFactor = cms.double(0.8)
100 offlinePrimaryVerticesDA100umV7.TkClusParameters.TkDAClusParameters.Tmin = cms.double(9.)
101 
102 offlinePrimaryVerticesDA100umV8 = offlinePrimaryVerticesDA100um.clone()
103 offlinePrimaryVerticesDA100umV8.vertexCollections[0].maxDistanceToBeam = cms.double(1.0)
104 offlinePrimaryVerticesDA100umV8.TkFilterParameters.maxNormalizedChi2 = cms.double(5.0)
105 offlinePrimaryVerticesDA100umV8.TkClusParameters.TkDAClusParameters.coolingFactor = cms.double(0.6)
106 offlinePrimaryVerticesDA100umV8.TkClusParameters.TkDAClusParameters.Tmin = cms.double(4.)
107 
108 
109 seqPVReco = cms.Sequence(offlinePrimaryVerticesGAP + offlinePrimaryVerticesD0s5 + offlinePrimaryVerticesD0s51mm +
110  offlinePrimaryVerticesDA100um + offlinePrimaryVerticesDA100umV7 + offlinePrimaryVerticesDA100umV8 )
GeometryRecoDB_cff
MagneticField_AutoFromDBCurrent_cff
Reconstruction_cff