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

Referenced by coreTools.RemoveMCMatching.toolCode().

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