CMS 3D CMS Logo

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