CMS 3D CMS Logo

Classes | Public Member Functions | Static Private Attributes

GenericMVAComputer Class Reference

#include <GenericMVAComputer.h>

Inheritance diagram for GenericMVAComputer:
PhysicsTools::MVAComputer

List of all members.

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
 evaluate variables in iterable container values
 GenericMVAComputer (const PhysicsTools::Calibration::MVAComputer *calib)
template<typename Iter_t >
TaggingVariableIterator< Iter_t > iterator (Iter_t iter) const

Static Private Attributes

static TaggingVariableMapping mapping

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.


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().

        {
                typedef TaggingVariableIterator<Iter_t> Wrapped_t;
                return PhysicsTools::MVAComputer::template eval<Wrapped_t>(
                        iterator<Iter_t>(first), iterator<Iter_t>(last));
        }
template<typename Container_t >
double GenericMVAComputer::eval ( const Container_t &  values) const [inline]

evaluate variables in iterable container values

Reimplemented from PhysicsTools::MVAComputer.

Definition at line 37 of file GenericMVAComputer.h.

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

Definition at line 24 of file GenericMVAComputer.h.

References mapping.

Referenced by JetTagMVAExtractor::analyze(), JetTagMVATreeTrainer::analyze(), and JetTagMVATrainer::analyze().

        { return TaggingVariableIterator<Iter_t>(&mapping, iter); }

Member Data Documentation