#include <TreeTrainer.h>
Public Member Functions | |
void | addReader (const TreeReader &reader) |
void | addTree (TTree *tree, int target=-1, double weight=-1.0) |
bool | iteration (MVATrainer *trainer) |
void | reset () |
Calibration::MVAComputer * | train (const std::string &trainDescription, double crossValidation=0.0, bool useXSLT=false) |
void | train (MVATrainer *trainer) |
TreeTrainer () | |
TreeTrainer (TTree *tree, double weight=-1.0) | |
TreeTrainer (TTree *signal, TTree *background, double weight=-1.0) | |
~TreeTrainer () | |
Private Attributes | |
std::vector< TreeReader > | readers |
std::vector< double * > | weights |
Definition at line 18 of file TreeTrainer.h.
PhysicsTools::TreeTrainer::TreeTrainer | ( | ) |
Definition at line 19 of file TreeTrainer.cc.
PhysicsTools::TreeTrainer::TreeTrainer | ( | TTree * | tree, |
double | weight = -1.0 |
||
) |
Definition at line 23 of file TreeTrainer.cc.
References addTree().
PhysicsTools::TreeTrainer::TreeTrainer | ( | TTree * | signal, |
TTree * | background, | ||
double | weight = -1.0 |
||
) |
Definition at line 28 of file TreeTrainer.cc.
References addTree().
PhysicsTools::TreeTrainer::~TreeTrainer | ( | ) |
Definition at line 34 of file TreeTrainer.cc.
References reset().
void PhysicsTools::TreeTrainer::addReader | ( | const TreeReader & | reader | ) |
void PhysicsTools::TreeTrainer::addTree | ( | TTree * | tree, |
int | target = -1 , |
||
double | weight = -1.0 |
||
) |
Definition at line 58 of file TreeTrainer.cc.
References addReader(), PhysicsTools::TreeReader::addSingle(), PhysicsTools::MVATrainer::kTargetId, PhysicsTools::MVATrainer::kWeightId, matplotRender::reader, dqmd_manager::targets, and weights.
Referenced by TreeTrainer().
bool PhysicsTools::TreeTrainer::iteration | ( | MVATrainer * | trainer | ) |
Definition at line 87 of file TreeTrainer.cc.
References calib, PhysicsTools::MVATrainer::getTrainCalibration(), PhysicsTools::TreeReader::loop(), and readers.
Referenced by train().
void PhysicsTools::TreeTrainer::reset | ( | void | ) |
Definition at line 50 of file TreeTrainer.cc.
References readers, and weights.
Referenced by ~TreeTrainer().
Calibration::MVAComputer * PhysicsTools::TreeTrainer::train | ( | const std::string & | trainDescription, |
double | crossValidation = 0.0 , |
||
bool | useXSLT = false |
||
) |
Definition at line 39 of file TreeTrainer.cc.
References PhysicsTools::MVATrainer::getCalibration(), PhysicsTools::MVATrainer::setCrossValidation(), and PhysicsTools::MVATrainer::setMonitoring().
void PhysicsTools::TreeTrainer::train | ( | MVATrainer * | trainer | ) |
Definition at line 102 of file TreeTrainer.cc.
References iteration().
|
private |
Definition at line 40 of file TreeTrainer.h.
Referenced by addReader(), iteration(), and reset().
|
private |
Definition at line 42 of file TreeTrainer.h.