1 import FWCore.ParameterSet.Config
as cms
31 labels = getattr(process.ttSemiLepEvent,
"hypotheses")
32 for obj
in range(len(names)):
35 label =
"ttSemiLepHyp" + names[obj][1:]
38 process.ttSemiLepEvent.hypotheses = labels
56 process.ttSemiLepEvent.hypotheses.remove(
"ttSemiLepHypGenMatch")
57 process.ttSemiLepEvent.genEvent =
''
63 modules = [
"findTtSemiLepJetCombGeom",
64 "findTtSemiLepJetCombMaxSumPtWMass",
65 "findTtSemiLepJetCombMVA",
66 "findTtSemiLepJetCombWMassDeltaTopMass",
67 "findTtSemiLepJetCombWMassMaxSumPt",
68 "hitFitTtSemiLepEventHypothesis",
69 "kinFitTtSemiLepEventHypothesis",
70 "ttSemiLepJetPartonMatch",
71 "ttSemiLepHypGenMatch",
75 "ttSemiLepHypMaxSumPtWMass",
76 "ttSemiLepHypMVADisc",
77 "ttSemiLepHypWMassDeltaTopMass",
78 "ttSemiLepHypWMassMaxSumPt"
80 for obj
in range(len(modules)):
81 object = getattr(process, modules[obj])
82 if hasattr(object, attribute):
83 setattr(object, attribute, value)
88 import TopQuarkAnalysis.TopKinFitter.TtSemiLepKinFitProducer_Electrons_cfi
89 process.kinFitTtSemiLepEventHypothesis = TopQuarkAnalysis.TopKinFitter.TtSemiLepKinFitProducer_Electrons_cfi.kinFitTtSemiLepEvent.clone()
90 import TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Electrons_cfi
91 process.hitFitTtSemiLepEventHypothesis = TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Electrons_cfi.hitFitTtSemiLepEvent.clone()
def setForAllTtSemiLepHypotheses
set a specific attribute for all hypotheses to a given value -> this works for "jets", "leps", "mets", "maxNJets"
def addTtSemiLepHypotheses
make ttSemiLepEvent makeTtSemiLepEvent = cms.Sequence(makeTtSemiLepHypotheses * ttSemiLepEvent ) ...
def useElectronsForAllTtSemiLepHypotheses
use electrons instead of muons for the hypotheses
produce ttSemiLepEvent structure with all necessary ingredients
def removeTtSemiLepHypGenMatch
remove genMatch hypothesis from the process
configure ttSemiLepEventBuilder