CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
ttFullLepEvtBuilder_cff Namespace Reference

Functions

def removeTtFullLepHypGenMatch
 make ttFullLepEvent makeTtFullLepEvent = cms.Sequence(makeTtFullLepHypotheses * ttFullLepEvent ) More...
 
def setForAllTtFullLepHypotheses
 set a specific attribute for all hypotheses to a given value -> this works for "jets", "leps", "mets", "maxNJets" More...
 

Function Documentation

def ttFullLepEvtBuilder_cff.removeTtFullLepHypGenMatch (   process)

make ttFullLepEvent makeTtFullLepEvent = cms.Sequence(makeTtFullLepHypotheses * ttFullLepEvent )

helper functions (examples of usage can be found in the ttFullLepEvtBuilder_cfg.py) remove genMatch hypothesis from the process

Definition at line 26 of file ttFullLepEvtBuilder_cff.py.

26 
27 def removeTtFullLepHypGenMatch(process):
28  #process.makeTtFullLepHypotheses.remove(process.makeHypothesis_genMatch)
29  process.ttFullLepEvent.hypotheses.remove("ttFullLepHypGenMatch")
30  process.ttFullLepEvent.genEvent = ''
31 
def removeTtFullLepHypGenMatch
make ttFullLepEvent makeTtFullLepEvent = cms.Sequence(makeTtFullLepHypotheses * ttFullLepEvent ) ...
def ttFullLepEvtBuilder_cff.setForAllTtFullLepHypotheses (   process,
  attribute,
  value 
)

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

Definition at line 34 of file ttFullLepEvtBuilder_cff.py.

34 
35 def setForAllTtFullLepHypotheses(process, attribute, value):
36  modules = ["ttFullLepJetPartonMatch",
37  "ttFullLepHypGenMatch",
38  "ttFullLepHypKinSolution",
39  "kinSolutionTtFullLepEventHypothesis"]
40  for obj in range(len(modules)):
41  object = getattr(process, modules[obj])
42  if hasattr(object, attribute):
43  setattr(object, attribute, value)
44 
45 
46 
def setForAllTtFullLepHypotheses
set a specific attribute for all hypotheses to a given value -> this works for "jets", "leps", "mets", "maxNJets"