CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
pvSelectionSequence_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # one PV
4 
5 goodVertices = cms.EDFilter("VertexSelector",
6  src = cms.InputTag("offlinePrimaryVertices"),
7 # cut = cms.string("!isFake && ndof >= 5 && abs(z) <= 15 && position.Rho <= 2"), # old cut
8 # cut = cms.string("!isFake && ndof >= 5 && abs(z) <= 24 && position.Rho <= 2"),
9  cut = cms.string("!isFake && ndof > 4 && abs(z) <= 30 && position.Rho <= 2"),
10  filter = cms.bool(False), # otherwise it won't filter the events, just produce an empty vertex collection.
11 )
12 
13 noFakeVertices = goodVertices.clone(cut=cms.string("!isFake"))
14 
15 goodVerticesD0s5 = goodVertices.clone(src = cms.InputTag("offlinePrimaryVerticesD0s5"))
16 goodVerticesD0s51mm = goodVertices.clone(src = cms.InputTag("offlinePrimaryVerticesD0s51mm"))
17 goodVerticesDA100um = goodVertices.clone(src = cms.InputTag("offlinePrimaryVerticesDA100um"))
18 goodVerticesDA100umV7 = goodVertices.clone(src = cms.InputTag("offlinePrimaryVerticesDA100umV7"))
19 goodVerticesDA100umV8 = goodVertices.clone(src = cms.InputTag("offlinePrimaryVerticesDA100umV8"))
20 
21 
22 seqPVSelection = cms.Sequence(goodVertices + noFakeVertices + goodVerticesD0s5 + goodVerticesD0s51mm +
23  goodVerticesDA100um + goodVerticesDA100umV7 + goodVerticesDA100umV8 )
24 seqSimplePVSelection = cms.Sequence(goodVertices + noFakeVertices)
25