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)
def setForAllTtFullHadHypotheses
set a specific attribute for all hypotheses to a given value -> this works for "jets", "maxNJets", "jetCorrectionLevel"
const uint16_t range(const Frame &aFrame)
std sequence to produce the ttFullHadEventHypotheses
def addTtFullHadHypotheses
helper functions (examples of usage can be found in the ttFullHadEvtBuilder_cfg.py) ...
configure ttFullHadEventBuilder
def removeTtFullHadHypGenMatch
remove genMatch hypothesis from the process