Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003
00004
00005
00006
00007
00008
00009 from TopQuarkAnalysis.TopEventProducers.sequences.ttFullLepEvtHypotheses_cff import *
00010
00011
00012 from TopQuarkAnalysis.TopEventProducers.producers.TtFullLepEvtBuilder_cfi import *
00013
00014
00015 makeTtFullLepEvent = cms.Sequence(makeTtFullLepHypotheses *
00016 ttFullLepEvent
00017 )
00018
00019
00020
00021
00022
00023
00024
00025
00026 def removeTtFullLepHypGenMatch(process):
00027 process.makeTtFullLepHypotheses.remove(process.makeHypothesis_genMatch)
00028 process.ttFullLepEvent.hypotheses.remove("ttFullLepHypGenMatch")
00029
00030
00031
00032
00033 def setForAllTtFullLepHypotheses(process, attribute, value):
00034 modules = ["ttFullLepHypGenMatch",
00035 "ttFullLepHypKinSolution",
00036 "kinSolutionTtFullLepEventHypothesis"]
00037 for obj in range(len(modules)):
00038 object = getattr(process, modules[obj])
00039 if hasattr(object, attribute):
00040 setattr(object, attribute, value)
00041
00042
00043