CMS 3D CMS Logo

ttFullHadEvtBuilder_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # produce ttFullHadEvent structure with all necessary ingredients,
5 # needs ttGenEvent as input
6 #
7 
8 
10 
11 
13 
14 
15 makeTtFullHadEventTask = cms.Task(
16  makeTtFullHadHypothesesTask,
17  ttFullHadEvent
18 )
19 #makeTtFullHadEvent = cms.Sequence(makeTtFullHadEventTask)
20 
21 
25 
26 
27 def addTtFullHadHypotheses(process,
28  names
29  ):
30 
31 
32  labels = getattr(process.ttFullHadEvent, "hypotheses")
33  for obj in range(len(names)):
34 
36  label = "ttFullHadHyp" + names[obj][1:]
37 
38  labels.append(label)
39  process.ttFullHadEvent.hypotheses = labels
40 
41 
52 
53 
54 
56  #process.makeTtFullHadHypotheses.remove(process.makeHypothesis_genMatch)
57  process.ttFullHadEvent.hypotheses.remove("ttFullHadHypGenMatch")
58 
59 
60 
62 def setForAllTtFullHadHypotheses(process, attribute, value):
63  modules = ["ttFullHadJetPartonMatch",
64  "ttFullHadHypGenMatch",
65  "kinFitTtFullHadEventHypothesis",
66  "ttFullHadHypKinFit"]
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) ...