CMS 3D CMS Logo

Functions
replaceOfflinePrimaryVerticesWithBS Namespace Reference

Functions

def massReplaceOfflinePrimaryVerticesToUseBeamSpot (process)
 
def swapOfflinePrimaryVerticesToUseBeamSpot (process)
 

Function Documentation

◆ massReplaceOfflinePrimaryVerticesToUseBeamSpot()

def replaceOfflinePrimaryVerticesWithBS.massReplaceOfflinePrimaryVerticesToUseBeamSpot (   process)

Definition at line 7 of file replaceOfflinePrimaryVerticesWithBS.py.

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

◆ swapOfflinePrimaryVerticesToUseBeamSpot()

def replaceOfflinePrimaryVerticesWithBS.swapOfflinePrimaryVerticesToUseBeamSpot (   process)

Definition at line 22 of file replaceOfflinePrimaryVerticesWithBS.py.

23  if hasattr(process,'offlinePrimaryVertices'):
24  process.offlinePrimaryVertices.vertices="unsortedOfflinePrimaryVertices:WithBS"
25 
26  return process
replaceOfflinePrimaryVerticesWithBS.swapOfflinePrimaryVerticesToUseBeamSpot
def swapOfflinePrimaryVerticesToUseBeamSpot(process)
Definition: replaceOfflinePrimaryVerticesWithBS.py:22
replaceOfflinePrimaryVerticesWithBS.massReplaceOfflinePrimaryVerticesToUseBeamSpot
def massReplaceOfflinePrimaryVerticesToUseBeamSpot(process)
Definition: replaceOfflinePrimaryVerticesWithBS.py:7