1 import FWCore.ParameterSet.Config
as cms
15 makeTtSemiLepEventTask = cms.Task(
16 makeTtSemiLepHypothesesTask,
32 labels = getattr(process.ttSemiLepEvent,
"hypotheses")
33 for obj
in range(len(names)):
36 label =
"ttSemiLepHyp" + names[obj][1:]
39 process.ttSemiLepEvent.hypotheses = labels
57 process.ttSemiLepEvent.hypotheses.remove(
"ttSemiLepHypGenMatch")
58 process.ttSemiLepEvent.genEvent =
''
64 modules = [
"findTtSemiLepJetCombGeom",
65 "findTtSemiLepJetCombMaxSumPtWMass",
66 "findTtSemiLepJetCombMVA",
67 "findTtSemiLepJetCombWMassDeltaTopMass",
68 "findTtSemiLepJetCombWMassMaxSumPt",
69 "hitFitTtSemiLepEventHypothesis",
70 "kinFitTtSemiLepEventHypothesis",
71 "ttSemiLepJetPartonMatch",
72 "ttSemiLepHypGenMatch",
76 "ttSemiLepHypMaxSumPtWMass",
77 "ttSemiLepHypMVADisc",
78 "ttSemiLepHypWMassDeltaTopMass",
79 "ttSemiLepHypWMassMaxSumPt"
81 for obj
in range(len(modules)):
82 object = getattr(process, modules[obj])
83 if hasattr(object, attribute):
84 setattr(object, attribute, value)
89 import TopQuarkAnalysis.TopKinFitter.TtSemiLepKinFitProducer_Electrons_cfi
90 process.kinFitTtSemiLepEventHypothesis = TopQuarkAnalysis.TopKinFitter.TtSemiLepKinFitProducer_Electrons_cfi.kinFitTtSemiLepEvent.clone()
91 import TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Electrons_cfi
92 process.hitFitTtSemiLepEventHypothesis = TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Electrons_cfi.hitFitTtSemiLepEvent.clone()