1 import FWCore.ParameterSet.Config
as cms
15 makeTtFullHadEventTask = cms.Task(
16 makeTtFullHadHypothesesTask,
32 labels = getattr(process.ttFullHadEvent,
"hypotheses")
33 for obj
in range(len(names)):
36 label =
"ttFullHadHyp" + names[obj][1:]
39 process.ttFullHadEvent.hypotheses = labels
57 process.ttFullHadEvent.hypotheses.remove(
"ttFullHadHypGenMatch")
63 modules = [
"ttFullHadJetPartonMatch",
64 "ttFullHadHypGenMatch",
65 "kinFitTtFullHadEventHypothesis",
67 for obj
in range(len(modules)):
68 object = getattr(process, modules[obj])
69 if hasattr(object, attribute):
70 setattr(object, attribute, value)