Main Page
Namespaces
Classes
Package Documentation
src
PhysicsTools
MVATrainer
interface
TreeTrainer.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_MVATrainer_TreeTrainer_h
2
#define PhysicsTools_MVATrainer_TreeTrainer_h
3
4
#include <string>
5
#include <vector>
6
#include <map>
7
8
#include <TTree.h>
9
10
#include "
PhysicsTools/MVAComputer/interface/Calibration.h
"
11
#include "
PhysicsTools/MVAComputer/interface/MVAComputer.h
"
12
#include "
PhysicsTools/MVAComputer/interface/TreeReader.h
"
13
14
#include "
PhysicsTools/MVATrainer/interface/MVATrainer.h
"
15
16
namespace
PhysicsTools
{
17
18
class
TreeTrainer
{
19
public
:
20
TreeTrainer
();
21
TreeTrainer
(TTree *
tree
,
double
weight
= -1.0);
22
TreeTrainer
(TTree *signal, TTree *background,
double
weight
= -1.0);
23
~TreeTrainer
();
24
25
Calibration::MVAComputer
*
train
(
const
std::string
&
trainDescription
,
26
double
crossValidation = 0.0,
27
bool
useXSLT
=
false
);
28
29
// more precise control
30
31
void
reset
();
32
33
void
addTree
(TTree *tree,
int
target
= -1,
double
weight
= -1.0);
34
void
addReader
(
const
TreeReader
&
reader
);
35
36
bool
iteration
(
MVATrainer
*trainer);
37
void
train
(
MVATrainer
*trainer);
38
39
private
:
40
std::vector<TreeReader>
readers
;
41
42
std::vector<double*>
weights
;
43
};
44
45
}
// namespace PhysicsTools
46
47
#endif // PhysicsTools_MVATrainer_TreeTrainer_h
PhysicsTools::TreeTrainer::reset
void reset()
Definition:
TreeTrainer.cc:50
MVATrainer.h
MVAComputer.h
PhysicsTools::TreeTrainer::train
Calibration::MVAComputer * train(const std::string &trainDescription, double crossValidation=0.0, bool useXSLT=false)
Definition:
TreeTrainer.cc:39
PhysicsTools::TreeTrainer::iteration
bool iteration(MVATrainer *trainer)
Definition:
TreeTrainer.cc:87
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edmPickEvents.target
target
Definition:
edmPickEvents.py:310
PhysicsTools::TreeTrainer::~TreeTrainer
~TreeTrainer()
Definition:
TreeTrainer.cc:34
weight
Definition:
weight.py:1
TtFullHadSignalSelMVATrainTreeSaver_cff.trainDescription
trainDescription
Definition:
TtFullHadSignalSelMVATrainTreeSaver_cff.py:24
PhysicsTools::TreeTrainer::readers
std::vector< TreeReader > readers
Definition:
TreeTrainer.h:40
PhysicsTools::Calibration::MVAComputer
Definition:
MVAComputer.h:218
PhysicsTools::TreeReader
Definition:
TreeReader.h:19
PhysicsTools::MVATrainer
Definition:
MVATrainer.h:27
PhysicsTools
Definition:
Histogram.h:13
PhysicsTools::TreeTrainer::addTree
void addTree(TTree *tree, int target=-1, double weight=-1.0)
Definition:
TreeTrainer.cc:58
PhysicsTools::TreeTrainer::weights
std::vector< double * > weights
Definition:
TreeTrainer.h:42
PhysicsTools::TreeTrainer::addReader
void addReader(const TreeReader &reader)
Definition:
TreeTrainer.cc:82
Calibration.h
TtFullHadSignalSelMVATrainTreeSaver_cff.useXSLT
useXSLT
Definition:
TtFullHadSignalSelMVATrainTreeSaver_cff.py:26
TreeReader.h
matplotRender.reader
reader
Definition:
matplotRender.py:816
tree
Definition:
tree.py:1
PhysicsTools::TreeTrainer::TreeTrainer
TreeTrainer()
Definition:
TreeTrainer.cc:19
PhysicsTools::TreeTrainer
Definition:
TreeTrainer.h:18
Generated for CMSSW Reference Manual by
1.8.11