CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
replaceOfflinePrimaryVerticesWithBS Namespace Reference

Functions

def massReplaceOfflinePrimaryVerticesToUseBeamSpot
 
def swapOfflinePrimaryVerticesToUseBeamSpot
 

Function Documentation

def replaceOfflinePrimaryVerticesWithBS.massReplaceOfflinePrimaryVerticesToUseBeamSpot (   process)

Definition at line 7 of file replaceOfflinePrimaryVerticesWithBS.py.

7 
9  # swap all occurrences
10  process = MassReplaceInputTag(process,"offlinePrimaryVertices","offlinePrimaryVerticesWithBS")
11 
12  # excepted of course for the primary source...
13  if hasattr(process,'offlinePrimaryVerticesWithBS'):
14  process.offlinePrimaryVerticesWithBS.src = cms.InputTag("offlinePrimaryVertices","WithBS")
15 
16  return process
17 
18 #
19 # makes OfflinePrimaryVertices equivalent to OfflinePrimaryVerticesWithBS
20 # by changing the input vertices collection of the sorted PV
21 # see file https://github.com/cms-sw/cmssw/blob/master/RecoVertex/Configuration/python/RecoVertex_cff.py
#
def replaceOfflinePrimaryVerticesWithBS.swapOfflinePrimaryVerticesToUseBeamSpot (   process)

Definition at line 22 of file replaceOfflinePrimaryVerticesWithBS.py.

22 
24  if hasattr(process,'offlinePrimaryVertices'):
25  process.offlinePrimaryVertices.vertices="unsortedOfflinePrimaryVertices:WithBS"
26 
27  return process