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

Referenced by coreTools.RemoveMCMatching.toolCode().

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