CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TtFullHadSignalSelMVATrainer_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("TtFullHadSignalSelMVATrainer",
7  #input tags used in the example
8  jets = cms.InputTag("selectedPatJets"),
9 
10  #three possibilities:
11  # whatData=-1: in your training-file both, signal and background events are available
12  # whatData=1: your training-file contains only signal events
13  # whatData=0: your training-file contains only background events
14  whatData = cms.int32(1),
15 
16  #maximum number of training events to be used
17  # maxEv = -1: all events are used
18  # for example maxEv = 5000: writes only the first 5000 events to the training tree
19  maxEv = cms.int32(-1),
20  #event weight to be put here:
21  # standard is set to 1, so no weight is applied
22  # for example if different samples with different integrated luminosities have to be combined
23  weight = cms.double(1.0)
24 )