import FWCore.ParameterSet.Config as cms

## import MVA trainer cfi
from TopQuarkAnalysis.TopJetCombination.TtSemiLepJetCombMVATrainer_cfi import *

## ------------------------------------------------------------------------------------------
## configuration of event looper for MVA taining
##
## take care to make the looper known to the process!
## the way to do that is to add the following lines to your cfg.py:
##
## from TopQuarkAnalysis.TopJetCombination.TtSemiLepJetCombMVATrainTreeSaver_cff import looper
## process.looper = looper
## ------------------------------------------------------------------------------------------ 
looper = cms.Looper("TtSemiLepJetCombMVATrainerLooper",
    trainers = cms.VPSet(cms.PSet(
        monitoring = cms.untracked.bool(False),
        loadState  = cms.untracked.bool(False),
        saveState  = cms.untracked.bool(True),
        calibrationRecord = cms.string('ttSemiLepJetCombMVA'),
        trainDescription = cms.untracked.FileInPath(
            'TopQuarkAnalysis/TopJetCombination/data/TtSemiLepJetCombMVATrainTreeSaver.xml'),
        useXSLT = cms.untracked.bool(True)
    ))
)

## provide a sequence to save a tree for the training
saveTtSemiLepJetCombMVATrainTree = cms.Sequence(trainTtSemiLepJetCombMVA)
