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