CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Types | Private Attributes
PhysicsTools::MVATrainerContainer Class Reference

#include <MVATrainerContainer.h>

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

Public Types

typedef
MVATrainerLooper::TrainObject 
Value_t
 
- Public Types inherited from PhysicsTools::Calibration::MVAComputerContainer
typedef unsigned int CacheId
 
typedef std::pair< std::string,
MVAComputer
Entry
 

Public Member Functions

void addTrainer (const std::string &label, const Value_t &calibration)
 
virtual const
Calibration::MVAComputer
find (const std::string &label) const
 
- Public Member Functions inherited from PhysicsTools::Calibration::MVAComputerContainer
MVAComputeradd (const std::string &label)
 
bool changed (CacheId old) const
 
CacheId getCacheId () const
 
 MVAComputerContainer ()
 
virtual ~MVAComputerContainer ()
 

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.

31  { trainCalibs[label] = calibration; }
virtual const Calibration::MVAComputer& PhysicsTools::MVATrainerContainer::find ( const std::string &  label) const
inlinevirtual

Reimplemented from PhysicsTools::Calibration::MVAComputerContainer.

Definition at line 21 of file MVATrainerContainer.h.

References PhysicsTools::Calibration::MVAComputerContainer::find(), pos, and trainCalibs.

Referenced by BeautifulSoup.Tag::_invert(), and BeautifulSoup.PageElement::insert().

22  {
23  Map_t::const_iterator pos = trainCalibs.find(label);
24  if (pos != trainCalibs.end())
25  return *pos->second.get();
26 
28  }
virtual const MVAComputer & find(const std::string &label) const
Definition: MVAComputer.cc:190

Member Data Documentation

Map_t PhysicsTools::MVATrainerContainer::trainCalibs
private

Definition at line 36 of file MVATrainerContainer.h.

Referenced by addTrainer(), and find().