test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 ( const PhysicsTools::Calibration::MVAComputer calib)
inline

Definition at line 19 of file GenericMVAComputer.h.

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

Member Function Documentation

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

Definition at line 29 of file GenericMVAComputer.h.

References first, and svgfig::template().

Referenced by GenericMVAJetTagComputer::discriminator().

30  {
31  typedef TaggingVariableIterator<Iter_t> Wrapped_t;
32  return PhysicsTools::MVAComputer::template eval<Wrapped_t>(
33  iterator<Iter_t>(first), iterator<Iter_t>(last));
34  }
bool first
Definition: L1TdeRCT.cc:75
def template
Definition: svgfig.py:520
template<typename Container_t >
double GenericMVAComputer::eval ( const Container_t &  values) const
inline

Definition at line 37 of file GenericMVAComputer.h.

38  {
39  typedef typename Container_t::const_iterator Iter_t;
40  return this->template eval<Iter_t>(values.begin(), values.end());
41  }
template<typename Iter_t >
TaggingVariableIterator<Iter_t> GenericMVAComputer::iterator ( Iter_t  iter) const
inline

Definition at line 24 of file GenericMVAComputer.h.

References getDQMSummary::iter, and mapping.

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

Member Data Documentation

const GenericMVAComputer::TaggingVariableMapping GenericMVAComputer::mapping
staticprivate