CMS 3D CMS Logo

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

Classes

class  RemoveMCMatching
 
class  RunOnData
 

Functions

def _removeMCMatchingForPATObject
 

Function Documentation

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

Definition at line 204 of file coreTools.py.

Referenced by coreTools.RemoveMCMatching.toolCode().

205 def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix=""):
206  if hasattr(process, matcherName+postfix):
207  objectMatcher = getattr(process, matcherName+postfix)
208  if hasattr(process, producerName+postfix):
209  objectProducer = getattr(process, producerName+postfix)
210  objectProducer.addGenMatch = False
211  objectProducer.embedGenMatch = False
212  attr = objectProducer.genParticleMatch.getModuleLabel()
213  objectProducer.genParticleMatch = ''
214  if hasattr(process,attr): delattr(process,attr)
215 
def _removeMCMatchingForPATObject
Definition: coreTools.py:204