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

Referenced by coreTools.RemoveMCMatching.toolCode().

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