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 188 of file coreTools.py.

Referenced by coreTools.RemoveMCMatching.toolCode().

188 def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix=""):
189  if hasattr(process, matcherName+postfix):
190  objectMatcher = getattr(process, matcherName+postfix)
191  if hasattr(process, producerName+postfix):
192  objectProducer = getattr(process, producerName+postfix)
193  objectProducer.addGenMatch = False
194  objectProducer.embedGenMatch = False
195  attr = objectProducer.genParticleMatch.getModuleLabel()
196  objectProducer.genParticleMatch = ''
197  if hasattr(process,attr): delattr(process,attr)
198 
199 
def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix="")
Definition: coreTools.py:188