CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Private Attributes
GenericMVAComputer Class Reference

#include <GenericMVAComputer.h>

Inheritance diagram for GenericMVAComputer:
PhysicsTools::MVAComputer

Classes

class  TaggingVariableIterator
 
class  TaggingVariableMapping
 

Public Member Functions

template<typename Iter_t >
double eval (Iter_t first, Iter_t last) const
 
template<typename Container_t >
double eval (const Container_t &values) const
 
 GenericMVAComputer (const PhysicsTools::Calibration::MVAComputer *calib)
 
template<typename Iter_t >
TaggingVariableIterator< Iter_t > iterator (Iter_t iter) const
 
- Public Member Functions inherited from PhysicsTools::MVAComputer
template<typename Iterator_t >
double deriv (Iterator_t first, Iterator_t last) const
 
template<typename Container_t >
double deriv (Container_t &values) const
 
template<typename Iterator_t >
double eval (Iterator_t first, Iterator_t last) const
 evaluate variables given by a range of iterators given by first and last More...
 
template<typename Container_t >
double eval (const Container_t &values) const
 evaluate variables in iterable container values More...
 
 MVAComputer (const Calibration::MVAComputer *calib)
 construct a discriminator computer from a const calibation object More...
 
 MVAComputer (Calibration::MVAComputer *calib, bool owned=false)
 construct a discriminator computer from a calibation object More...
 
 MVAComputer (const char *filename)
 construct a discriminator computer from a calibration file More...
 
 MVAComputer (std::istream &is)
 construct a discriminator computer from C++ input stream More...
 
 ~MVAComputer ()
 

Static Private Attributes

static const TaggingVariableMapping mapping
 

Additional Inherited Members

- Static Public Member Functions inherited from PhysicsTools::MVAComputer
static Calibration::MVAComputerreadCalibration (const char *filename)
 read calibration object from plain file More...
 
static Calibration::MVAComputerreadCalibration (std::istream &is)
 read calibration object from plain C++ input stream More...
 
static void writeCalibration (const char *filename, const Calibration::MVAComputer *calib)
 write calibration object to file More...
 
static void writeCalibration (std::ostream &os, const Calibration::MVAComputer *calib)
 write calibration object to pain C++ output stream More...
 

Detailed Description

Definition at line 13 of file GenericMVAComputer.h.

Constructor & Destructor Documentation

◆ GenericMVAComputer()

GenericMVAComputer::GenericMVAComputer ( const PhysicsTools::Calibration::MVAComputer calib)
inline

Definition at line 20 of file GenericMVAComputer.h.

Main interface class to the generic discriminator computer framework.
Definition: MVAComputer.h:39

Member Function Documentation

◆ eval() [1/2]

template<typename Iter_t >
double GenericMVAComputer::eval ( Iter_t  first,
Iter_t  last 
) const
inline

Definition at line 30 of file GenericMVAComputer.h.

References dqmdumpme::first, dqmdumpme::last, and svgfig::template().

30  {
31  typedef TaggingVariableIterator<Iter_t> Wrapped_t;
32  return PhysicsTools::MVAComputer::template eval<Wrapped_t>(iterator<Iter_t>(first), iterator<Iter_t>(last));
33  }
def template(fileName, svg, replaceme="REPLACEME")
Definition: svgfig.py:521

◆ eval() [2/2]

template<typename Container_t >
double GenericMVAComputer::eval ( const Container_t &  values) const
inline

Definition at line 36 of file GenericMVAComputer.h.

References contentValuesCheck::values.

36  {
37  typedef typename Container_t::const_iterator Iter_t;
38  return this->template eval<Iter_t>(values.begin(), values.end());
39  }

◆ iterator()

template<typename Iter_t >
TaggingVariableIterator<Iter_t> GenericMVAComputer::iterator ( Iter_t  iter) const
inline

Definition at line 24 of file GenericMVAComputer.h.

References mapping.

24  {
25  return TaggingVariableIterator<Iter_t>(&mapping, iter);
26  }
static const TaggingVariableMapping mapping

Member Data Documentation

◆ mapping

const GenericMVAComputer::TaggingVariableMapping GenericMVAComputer::mapping
staticprivate