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