#include <MVATrainerContainer.h>
Public Types | |
typedef MVATrainerLooper::TrainObject | Value_t |
Public Member Functions | |
void | addTrainer (const std::string &label, const Value_t &calibration) |
virtual const Calibration::MVAComputer & | find (const std::string &label) const |
Private Types | |
typedef std::map< std::string, Value_t > | Map_t |
Private Attributes | |
Map_t | trainCalibs |
Definition at line 16 of file MVATrainerContainer.h.
typedef std::map<std::string, Value_t> PhysicsTools::MVATrainerContainer::Map_t [private] |
Definition at line 34 of file MVATrainerContainer.h.
Definition at line 18 of file MVATrainerContainer.h.
void PhysicsTools::MVATrainerContainer::addTrainer | ( | const std::string & | label, |
const Value_t & | calibration | ||
) | [inline] |
Definition at line 30 of file MVATrainerContainer.h.
References diffTwoXMLs::label, and trainCalibs.
{ trainCalibs[label] = calibration; }
virtual const Calibration::MVAComputer& PhysicsTools::MVATrainerContainer::find | ( | const std::string & | label | ) | const [inline, virtual] |
Reimplemented from PhysicsTools::Calibration::MVAComputerContainer.
Definition at line 21 of file MVATrainerContainer.h.
References pos, and trainCalibs.
{ Map_t::const_iterator pos = trainCalibs.find(label); if (pos != trainCalibs.end()) return *pos->second.get(); return Calibration::MVAComputerContainer::find(label); }
Definition at line 36 of file MVATrainerContainer.h.
Referenced by addTrainer(), and find().