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)