CMS 3D CMS Logo

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

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

Referenced by coreTools.RemoveMCMatching.toolCode().

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