CMS 3D CMS Logo

TtSemiLepSignalSelMVATrainer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #
4 # module to make mvaTraining for jet parton associations
5 #
6 buildTraintree = cms.EDAnalyzer("TtSemiLepSignalSelMVATrainer",
7  #input tags used in the example
8  muons = cms.InputTag("selectedPatMuons"),
9  elecs = cms.InputTag("selectedPatElectrons"),
10  jets = cms.InputTag("cleanPatJets"),
11  mets = cms.InputTag("patMETs"),
12 
13  # ------------------------------------------------
14  # select semileptonic signal channel
15  # (all others are taken as background for training)
16  # 1: electron, 2: muon, 3: tau
17  # ------------------------------------------------
18  lepChannel = cms.int32(2),
19 
20  #three possibilities:
21  # whatData=-1: in your training-file both, signal and background events are available
22  # whatData=1: your training-file contains only signal events
23  # whatData=0: your training-file contains only background events
24  whatData = cms.int32(1),
25 
26  #maximum number of training events to be used
27  # maxEv = -1: all events are used
28  # for example maxEv = 5000: writes only the first 5000 events to the training tree
29  maxEv = cms.int32(-1),
30 )