15 makeTtFullHadEvent = cms.Sequence(makeTtFullHadHypotheses *
31 labels = getattr(process.ttFullHadEvent,
"hypotheses")
32 for obj
in range(len(names)):
35 label =
"ttFullHadHyp" + names[obj][1:]
38 process.ttFullHadEvent.hypotheses = labels
41 sequence = getattr(process,
"makeTtFullHadHypotheses")
42 for obj
in range(len(names)):
45 if names[obj][1:4] ==
"MVA":
46 label =
"makeHypothesis_" + names[obj][1:4].lower() + names[obj][4:]
48 label =
"makeHypothesis_" + names[obj][1:2].lower() + names[obj][2:]
50 sequence += getattr(process, label)
55 process.makeTtFullHadHypotheses.remove(process.makeHypothesis_genMatch)
56 process.ttFullHadEvent.hypotheses.remove(
"ttFullHadHypGenMatch")
62 modules = [
"ttFullHadJetPartonMatch",
63 "ttFullHadHypGenMatch",
64 "kinFitTtFullHadEventHypothesis",
66 for obj
in range(len(modules)):
67 object = getattr(process, modules[obj])
68 if hasattr(object, attribute):
69 setattr(object, attribute, value)
def setForAllTtFullHadHypotheses
set a specific attribute for all hypotheses to a given value -> this works for "jets", "maxNJets", "jetCorrectionLevel"
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