CMS 3D CMS Logo

ttFullLepEvtBuilder_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 
4 
7 
8 
10 
11 
13 
14 
15 makeTtFullLepEventTask = cms.Task(
16  makeTtFullLepHypothesesTask,
17  ttFullLepEvent
18 )
19 #makeTtFullLepEvent = cms.Sequence(makeTtFullLepEventTask)
20 
21 
25 
26 
28  #process.makeTtFullLepHypotheses.remove(process.makeHypothesis_genMatch)
29  process.ttFullLepEvent.hypotheses.remove("ttFullLepHypGenMatch")
30  process.ttFullLepEvent.genEvent = ''
31 
32 
33 
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 
configure ttFullLepEventBuilder
def setForAllTtFullLepHypotheses(process, attribute, value)
set a specific attribute for all hypotheses to a given value -> this works for "jets", "leps", "mets", "maxNJets"
produce ttFullLepEvent structure with all necessary ingredients
def removeTtFullLepHypGenMatch(process)
helper functions (examples of usage can be found in the ttFullLepEvtBuilder_cfg.py) ...