CMS 3D CMS Logo

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, MVAComputerEntry
 

Public Member Functions

void addTrainer (const std::string &label, const Value_t &calibration)
 
bool contains (const std::string &label) const override
 
const Calibration::MVAComputerfind (const std::string &label) const override
 
- 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_tMap_t
 

Private Attributes

Map_t trainCalibs
 

Detailed Description

Definition at line 14 of file MVATrainerContainer.h.

Member Typedef Documentation

typedef std::map<std::string, Value_t> PhysicsTools::MVATrainerContainer::Map_t
private

Definition at line 40 of file MVATrainerContainer.h.

Definition at line 16 of file MVATrainerContainer.h.

Member Function Documentation

void PhysicsTools::MVATrainerContainer::addTrainer ( const std::string &  label,
const Value_t calibration 
)
inline

Definition at line 36 of file MVATrainerContainer.h.

References label, and trainCalibs.

37  { trainCalibs[label] = calibration; }
char const * label
bool PhysicsTools::MVATrainerContainer::contains ( const std::string &  label) const
inlineoverridevirtual

Reimplemented from PhysicsTools::Calibration::MVAComputerContainer.

Definition at line 29 of file MVATrainerContainer.h.

References PhysicsTools::Calibration::MVAComputerContainer::contains(), and trainCalibs.

30  {
31  Map_t::const_iterator pos = trainCalibs.find(label);
32  if (pos != trainCalibs.end()) return true;
34  }
char const * label
virtual bool contains(const std::string &label) const
Definition: MVAComputer.cc:221
const Calibration::MVAComputer& PhysicsTools::MVATrainerContainer::find ( const std::string &  label) const
inlineoverridevirtual

Reimplemented from PhysicsTools::Calibration::MVAComputerContainer.

Definition at line 19 of file MVATrainerContainer.h.

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

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

Member Data Documentation

Map_t PhysicsTools::MVATrainerContainer::trainCalibs
private

Definition at line 42 of file MVATrainerContainer.h.

Referenced by addTrainer(), contains(), and find().