CMS 3D CMS Logo

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

Classes

class  RemoveMCMatching
 
class  RunOnData
 

Functions

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

Function Documentation

◆ _removeMCMatchingForPATObject()

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

Definition at line 204 of file coreTools.py.

Referenced by coreTools.RemoveMCMatching.toolCode().

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