CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TtSemiLepSignalSelMVATrainTreeSaver_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # produce mvaComputer with all necessary ingredients
5 #
6 
7 ## import MVA trainer cfi
9 
10 ## ------------------------------------------------------------------------------------------
11 ## configuration of event looper for mva taining; take care to make the
12 ## looper known to the process. The way to do that is to add the following
13 ## lines to your cfg.py
14 ##
15 ## from TopQuarkAnalysis.TopEventSelection.TraintreeSaver_cff import looper
16 ## process.looper = looper
17 ## ------------------------------------------------------------------------------------------
18 looper = cms.Looper("TtSemiLepSignalSelMVATrainerLooper",
19  trainers = cms.VPSet(cms.PSet(
20  monitoring = cms.untracked.bool(False),
21  loadState = cms.untracked.bool(False),
22  saveState = cms.untracked.bool(True),
23  calibrationRecord = cms.string('traintreeSaver'),
24  trainDescription = cms.untracked.FileInPath(
25  'TopQuarkAnalysis/TopEventSelection/data/TtSemiLepSignalSelMVATrainTreeSaver.xml')
26  ))
27 )
28 
29 ## provide a sequence for the training
30 ## remark: do not use this sequence if you want to call your trainer after an event filter
31 ## since the SaveFile module should be called in an unfiltered path!
32 saveTrainTree = cms.Sequence(buildTraintree)
import MVA trainer cfi