CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/TopQuarkAnalysis/TopJetCombination/python/TtSemiLepJetCombMVATrainTreeSaver_cff.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 ## import MVA trainer cfi
00004 from TopQuarkAnalysis.TopJetCombination.TtSemiLepJetCombMVATrainer_cfi import *
00005 
00006 ## ------------------------------------------------------------------------------------------
00007 ## configuration of event looper for MVA taining
00008 ##
00009 ## take care to make the looper known to the process!
00010 ## the way to do that is to add the following lines to your cfg.py:
00011 ##
00012 ## from TopQuarkAnalysis.TopJetCombination.TtSemiLepJetCombMVATrainTreeSaver_cff import looper
00013 ## process.looper = looper
00014 ## ------------------------------------------------------------------------------------------ 
00015 looper = cms.Looper("TtSemiLepJetCombMVATrainerLooper",
00016     trainers = cms.VPSet(cms.PSet(
00017         monitoring = cms.untracked.bool(False),
00018         loadState  = cms.untracked.bool(False),
00019         saveState  = cms.untracked.bool(True),
00020         calibrationRecord = cms.string('ttSemiLepJetCombMVA'),
00021         trainDescription = cms.untracked.FileInPath(
00022             'TopQuarkAnalysis/TopJetCombination/data/TtSemiLepJetCombMVATrainTreeSaver.xml'),
00023         useXSLT = cms.untracked.bool(True)
00024     ))
00025 )
00026 
00027 ## provide a sequence to save a tree for the training
00028 saveTtSemiLepJetCombMVATrainTree = cms.Sequence(trainTtSemiLepJetCombMVA)