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

Referenced by coreTools.RemoveMCMatching.toolCode().

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