CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/TopQuarkAnalysis/TopEventSelection/python/TtFullHadSignalSelMVATrainTreeSaver_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 #
00004 # produce mvaComputer with all necessary ingredients
00005 #
00006 
00007 ## import MVA trainer cfi
00008 from TopQuarkAnalysis.TopEventSelection.TtFullHadSignalSelMVATrainer_cfi import *
00009 
00010 ## ------------------------------------------------------------------------------------------
00011 ## configuration of event looper for mva taining; take care to make the 
00012 ## looper known to the process. The way to do that is to add the following
00013 ## lines to your cfg.py
00014 ##
00015 ## from TopQuarkAnalysis.TopEventSelection.TraintreeSaver_cff import looper
00016 ## process.looper = looper
00017 ## ------------------------------------------------------------------------------------------ 
00018 looper = cms.Looper("TtFullHadSignalSelMVATrainerLooper",
00019     trainers = cms.VPSet(cms.PSet(
00020         monitoring = cms.untracked.bool(False),
00021         loadState  = cms.untracked.bool(False),
00022         saveState  = cms.untracked.bool(True),
00023         calibrationRecord = cms.string('traintreeSaver'),
00024         trainDescription = cms.untracked.FileInPath(
00025             'TopQuarkAnalysis/TopEventSelection/data/TtFullHadSignalSelMVATrainTreeSaver.xml'),
00026         useXSLT = cms.untracked.bool(True)
00027         )
00028     )
00029 )
00030 
00031 ## provide a sequence for the training
00032 ## remark: do not use this sequence if you want to call your trainer after an event filter
00033 ##         since the SaveFile module should be called in an unfiltered path!
00034 saveTrainTree = cms.Sequence(buildTraintree)