CMS 3D CMS Logo

Functions | Variables
ttFullHadEvtBuilder_cff Namespace Reference

Functions

def addTtFullHadHypotheses (process, names)
 helper functions (examples of usage can be found in the ttFullHadEvtBuilder_cfg.py) More...
 
def removeTtFullHadHypGenMatch (process)
 remove genMatch hypothesis from the process More...
 
def setForAllTtFullHadHypotheses (process, attribute, value)
 set a specific attribute for all hypotheses to a given value -> this works for "jets", "maxNJets", "jetCorrectionLevel" More...
 

Variables

 makeTtFullHadEventTask
 make ttFullHadEvent More...
 

Function Documentation

◆ addTtFullHadHypotheses()

def ttFullHadEvtBuilder_cff.addTtFullHadHypotheses (   process,
  names 
)

helper functions (examples of usage can be found in the ttFullHadEvtBuilder_cfg.py)

add hypotheses to the process

Definition at line 29 of file ttFullHadEvtBuilder_cff.py.

References FastTimerService_cff.range.

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 

◆ removeTtFullHadHypGenMatch()

def ttFullHadEvtBuilder_cff.removeTtFullHadHypGenMatch (   process)

remove genMatch hypothesis from the process

Definition at line 55 of file ttFullHadEvtBuilder_cff.py.

55 def removeTtFullHadHypGenMatch(process):
56  #process.makeTtFullHadHypotheses.remove(process.makeHypothesis_genMatch)
57  process.ttFullHadEvent.hypotheses.remove("ttFullHadHypGenMatch")
58 
59 
def removeTtFullHadHypGenMatch(process)
remove genMatch hypothesis from the process

◆ setForAllTtFullHadHypotheses()

def ttFullHadEvtBuilder_cff.setForAllTtFullHadHypotheses (   process,
  attribute,
  value 
)

set a specific attribute for all hypotheses to a given value -> this works for "jets", "maxNJets", "jetCorrectionLevel"

Definition at line 62 of file ttFullHadEvtBuilder_cff.py.

References FastTimerService_cff.range.

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)
71 
def setForAllTtFullHadHypotheses(process, attribute, value)
set a specific attribute for all hypotheses to a given value -> this works for "jets", "maxNJets", "jetCorrectionLevel"

Variable Documentation

◆ makeTtFullHadEventTask

ttFullHadEvtBuilder_cff.makeTtFullHadEventTask

make ttFullHadEvent

Definition at line 15 of file ttFullHadEvtBuilder_cff.py.