CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
primaryVertexAssociation_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from CommonTools.RecoAlgos.sortedPFPrimaryVertices_cfi import sortedPFPrimaryVertices
3 
4 primaryVertexAssociation = sortedPFPrimaryVertices.clone(
5  qualityForPrimary = 2,
6  produceSortedVertices = False,
7  producePileUpCollection = False,
8  produceNoPileUpCollection = False
9 )
10 
11 primaryVertexWithBSAssociation = primaryVertexAssociation.clone(
12  vertices = "offlinePrimaryVerticesWithBS"
13 )
14 
15 from Configuration.ProcessModifiers.run2_miniAOD_pp_on_AA_103X_cff import run2_miniAOD_pp_on_AA_103X
16 run2_miniAOD_pp_on_AA_103X.toModify(primaryVertexAssociation,particles = "cleanedParticleFlow")
17 primaryVertexAssociationCleaned = primaryVertexAssociation.clone(particles = "cleanedParticleFlow:removed")
18 
19 run2_miniAOD_pp_on_AA_103X.toModify(primaryVertexWithBSAssociation,particles = "cleanedParticleFlow")
20 primaryVertexWithBSAssociationCleaned = primaryVertexWithBSAssociation.clone(particles = "cleanedParticleFlow:removed")