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 bool contains (const std::string &label) const
 
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 42 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 38 of file MVATrainerContainer.h.

References diffTwoXMLs::label, and trainCalibs.

39  { trainCalibs[label] = calibration; }
virtual bool PhysicsTools::MVATrainerContainer::contains ( const std::string &  label) const
inlinevirtual

Reimplemented from PhysicsTools::Calibration::MVAComputerContainer.

Definition at line 31 of file MVATrainerContainer.h.

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

32  {
33  Map_t::const_iterator pos = trainCalibs.find(label);
34  if (pos != trainCalibs.end()) return true;
36  }
virtual bool contains(const std::string &label) const
Definition: MVAComputer.cc:236
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(), and trainCalibs.

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:222

Member Data Documentation

Map_t PhysicsTools::MVATrainerContainer::trainCalibs
private

Definition at line 44 of file MVATrainerContainer.h.

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