Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:33:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # one PV
0004 
0005 goodVertices = cms.EDFilter("VertexSelector",
0006    src = cms.InputTag("offlinePrimaryVertices"),
0007 #   cut = cms.string("!isFake && ndof >= 5 && abs(z) <= 15 && position.Rho <= 2"),  # old cut
0008 #   cut = cms.string("!isFake && ndof >= 5 && abs(z) <= 24 && position.Rho <= 2"),  
0009    cut = cms.string("!isFake && ndof > 4 && abs(z) <= 30 && position.Rho <= 2"),  
0010    filter = cms.bool(False),   # otherwise it won't filter the events, just produce an empty vertex collection.
0011 )
0012 
0013 noFakeVertices = goodVertices.clone(cut=cms.string("!isFake"))
0014 
0015 goodVerticesD0s5 = goodVertices.clone(src = "offlinePrimaryVerticesD0s5")
0016 goodVerticesD0s51mm = goodVertices.clone(src = "offlinePrimaryVerticesD0s51mm")
0017 goodVerticesDA100um = goodVertices.clone(src = "offlinePrimaryVerticesDA100um")
0018 goodVerticesDA100umV7 = goodVertices.clone(src = "offlinePrimaryVerticesDA100umV7")
0019 goodVerticesDA100umV8 = goodVertices.clone(src = "offlinePrimaryVerticesDA100umV8")
0020 
0021 
0022 seqPVSelection = cms.Sequence(goodVertices + noFakeVertices + goodVerticesD0s5 + goodVerticesD0s51mm +
0023                               goodVerticesDA100um + goodVerticesDA100umV7 + goodVerticesDA100umV8  )
0024 seqSimplePVSelection = cms.Sequence(goodVertices + noFakeVertices)
0025