CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
patRefSel_goodVertex_cfi.py
Go to the documentation of this file.
2 
3 pvSelection = cms.PSet(
4  minNdof = cms.double( 4. )
5 , maxZ = cms.double( 24. )
6 , maxRho = cms.double( 2. )
7 )
8 
9 goodOfflinePrimaryVertices = cms.EDFilter(
10  "PrimaryVertexObjectFilter" # checks for fake PVs automatically
11 , filterParams = pvSelection
12 , filter = cms.bool( False ) # use only as producer
13 , src = cms.InputTag( 'offlinePrimaryVertices' )
14 )
15 
16 goodOfflinePrimaryVertexFilter = cms.EDFilter(
17 # "VertexSelector"
18 # , src = pvSrc
19 # , cut = cms.string( '!isFake && ndof > 4 && abs(z) <= 24. && abs(position.rho) <= 2.' )
20 # , filter = cms.bool( True )
21  "PrimaryVertexFilter" # checks for fake PVs automatically
22 , pvSelection
23 , NPV = cms.int32( 1 )
24 , pvSrc = cms.InputTag( 'goodOfflinePrimaryVertices' )
25 )