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()
def setForAllTtSemiLepHypotheses
set a specific attribute for all hypotheses to a given value -> this works for "jets", "leps", "mets", "maxNJets"
def addTtSemiLepHypotheses
helper functions (examples of usage can be found in the ttSemiLepEvtBuilder_cfg.py) ...
const uint16_t range(const Frame &aFrame)
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