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 27 of file ttFullHadEvtBuilder_cff.py.

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 

References FastTimerService_cff.range.

◆ 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 

◆ 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.

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)

References FastTimerService_cff.range.

Variable Documentation

◆ makeTtFullHadEventTask

ttFullHadEvtBuilder_cff.makeTtFullHadEventTask

make ttFullHadEvent

Definition at line 15 of file ttFullHadEvtBuilder_cff.py.

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
ttFullHadEvtBuilder_cff.addTtFullHadHypotheses
def addTtFullHadHypotheses(process, names)
helper functions (examples of usage can be found in the ttFullHadEvtBuilder_cfg.py)
Definition: ttFullHadEvtBuilder_cff.py:27
ttFullHadEvtBuilder_cff.setForAllTtFullHadHypotheses
def setForAllTtFullHadHypotheses(process, attribute, value)
set a specific attribute for all hypotheses to a given value -> this works for "jets",...
Definition: ttFullHadEvtBuilder_cff.py:62
ttFullHadEvtBuilder_cff.removeTtFullHadHypGenMatch
def removeTtFullHadHypGenMatch(process)
remove genMatch hypothesis from the process
Definition: ttFullHadEvtBuilder_cff.py:55