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

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

Referenced by coreTools.RemoveMCMatching.toolCode().

coreTools._removeMCMatchingForPATObject
def _removeMCMatchingForPATObject(process, matcherName, producerName, postfix="")
Definition: coreTools.py:202