CMS 3D CMS Logo

Classes | Functions
coreTools Namespace Reference

Classes

class  RemoveMCMatching
 
class  RunOnData
 

Functions

def _removeMCMatchingForPATObject (process, matcherName, producerName, postfix="")
 

Function Documentation

def coreTools._removeMCMatchingForPATObject (   process,
  matcherName,
  producerName,
  postfix = "" 
)
private

Definition at line 193 of file coreTools.py.

Referenced by coreTools.RemoveMCMatching.toolCode().

193 def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix=""):
194  if hasattr(process, matcherName+postfix):
195  objectMatcher = getattr(process, matcherName+postfix)
196  if hasattr(process, producerName+postfix):
197  objectProducer = getattr(process, producerName+postfix)
198  objectProducer.addGenMatch = False
199  objectProducer.embedGenMatch = False
200  attr = objectProducer.genParticleMatch.getModuleLabel()
201  objectProducer.genParticleMatch = ''
202  if hasattr(process,attr): delattr(process,attr)
203 
204 
def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix="")
Definition: coreTools.py:193