CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TtFullHadSignalSelMVATrainTreeSaver_cff.py
Go to the documentation of this file.
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("TtFullHadSignalSelMVATrainerLooper",
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/TtFullHadSignalSelMVATrainTreeSaver.xml'),
26  useXSLT = cms.untracked.bool(True)
27  )
28  )
29 )
30 
31 ## provide a sequence for the training
32 ## remark: do not use this sequence if you want to call your trainer after an event filter
33 ## since the SaveFile module should be called in an unfiltered path!
34 saveTrainTree = cms.Sequence(buildTraintree)
import MVA trainer cfi