CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/TopQuarkAnalysis/Configuration/python/patRefSel_goodVertex_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 pvSelection = cms.PSet(
00004   minNdof = cms.double( 4. )
00005 , maxZ    = cms.double( 24. )
00006 , maxRho  = cms.double( 2. )
00007 )
00008 
00009 goodOfflinePrimaryVertices = cms.EDFilter(
00010   "PrimaryVertexObjectFilter" # checks for fake PVs automatically
00011 , filterParams = pvSelection
00012 , filter       = cms.bool( False ) # use only as producer
00013 , src          = cms.InputTag( 'offlinePrimaryVertices' )
00014 )
00015 
00016 goodOfflinePrimaryVertexFilter = cms.EDFilter(
00017 #   "VertexSelector"
00018 # , src    = pvSrc
00019 # , cut    = cms.string( '!isFake && ndof > 4 && abs(z) <= 24. && abs(position.rho) <= 2.' )
00020 # , filter = cms.bool( True )
00021   "PrimaryVertexFilter" # checks for fake PVs automatically
00022 , pvSelection
00023 , NPV   = cms.int32( 1 )
00024 , pvSrc = cms.InputTag( 'goodOfflinePrimaryVertices' )
00025 )