Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ## import MVA trainer cfi
0004 from TopQuarkAnalysis.TopJetCombination.TtSemiLepJetCombMVATrainer_cfi import *
0005 
0006 ## ------------------------------------------------------------------------------------------
0007 ## configuration of event looper for MVA taining
0008 ##
0009 ## take care to make the looper known to the process!
0010 ## the way to do that is to add the following lines to your cfg.py:
0011 ##
0012 ## from TopQuarkAnalysis.TopJetCombination.TtSemiLepJetCombMVATrainTreeSaver_cff import looper
0013 ## process.looper = looper
0014 ## ------------------------------------------------------------------------------------------ 
0015 looper = cms.Looper("TtSemiLepJetCombMVATrainerLooper",
0016     trainers = cms.VPSet(cms.PSet(
0017         monitoring = cms.untracked.bool(False),
0018         loadState  = cms.untracked.bool(False),
0019         saveState  = cms.untracked.bool(True),
0020         calibrationRecord = cms.string('ttSemiLepJetCombMVA'),
0021         trainDescription = cms.untracked.FileInPath(
0022             'TopQuarkAnalysis/TopJetCombination/data/TtSemiLepJetCombMVATrainTreeSaver.xml'),
0023         useXSLT = cms.untracked.bool(True)
0024     ))
0025 )
0026 
0027 ## provide a sequence to save a tree for the training
0028 saveTtSemiLepJetCombMVATrainTree = cms.Sequence(trainTtSemiLepJetCombMVA)