Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:15

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #
0004 # produce mvaComputer with all necessary ingredients
0005 #
0006 
0007 ## import MVA trainer cfi
0008 from TopQuarkAnalysis.TopEventSelection.TtFullHadSignalSelMVATrainer_cfi import *
0009 
0010 ## ------------------------------------------------------------------------------------------
0011 ## configuration of event looper for mva taining; take care to make the 
0012 ## looper known to the process. The way to do that is to add the following
0013 ## lines to your cfg.py
0014 ##
0015 ## from TopQuarkAnalysis.TopEventSelection.TraintreeSaver_cff import looper
0016 ## process.looper = looper
0017 ## ------------------------------------------------------------------------------------------ 
0018 looper = cms.Looper("TtFullHadSignalSelMVATrainerLooper",
0019     trainers = cms.VPSet(cms.PSet(
0020         monitoring = cms.untracked.bool(False),
0021         loadState  = cms.untracked.bool(False),
0022         saveState  = cms.untracked.bool(True),
0023         calibrationRecord = cms.string('traintreeSaver'),
0024         trainDescription = cms.untracked.FileInPath(
0025             'TopQuarkAnalysis/TopEventSelection/data/TtFullHadSignalSelMVATrainTreeSaver.xml'),
0026         useXSLT = cms.untracked.bool(True)
0027         )
0028     )
0029 )
0030 
0031 ## provide a sequence for the training
0032 ## remark: do not use this sequence if you want to call your trainer after an event filter
0033 ##         since the SaveFile module should be called in an unfiltered path!
0034 saveTrainTree = cms.Sequence(buildTraintree)