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