CMS 3D CMS Logo

Public Types | Public Member Functions | Private Types | Private Attributes

PhysicsTools::MVATrainerContainer Class Reference

#include <MVATrainerContainer.h>

Inheritance diagram for PhysicsTools::MVATrainerContainer:
PhysicsTools::Calibration::MVAComputerContainer

List of all members.

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

Detailed Description

Definition at line 16 of file MVATrainerContainer.h.


Member Typedef Documentation

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.


Member Function Documentation

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);
        }

Member Data Documentation

Definition at line 36 of file MVATrainerContainer.h.

Referenced by addTrainer(), and find().