CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/TopQuarkAnalysis/TopEventSelection/python/TtSemiLepSignalSelMVATrainTreeSaver_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.TtSemiLepSignalSelMVATrainer_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("TtSemiLepSignalSelMVATrainerLooper",
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/TtSemiLepSignalSelMVATrainTreeSaver.xml')
00026     ))
00027 )
00028 
00029 ## provide a sequence for the training
00030 ## remark: do not use this sequence if you want to call your trainer after an event filter
00031 ##         since the SaveFile module should be called in an unfiltered path!
00032 saveTrainTree = cms.Sequence(buildTraintree)