1 #ifndef RecoBTau_BTauComputer_GenericMVAComputer_h 2 #define RecoBTau_BTauComputer_GenericMVAComputer_h 23 template<
typename Iter_t>
28 template<
typename Iter_t>
33 iterator<Iter_t>(
first), iterator<Iter_t>(last));
36 template<
typename Container_t>
39 typedef typename Container_t::const_iterator Iter_t;
40 return this->
template eval<Iter_t>(values.begin(), values.end());
54 template<
typename Iter_t>
65 {
return iter->second; }
78 mapping(mapping), iter(iter) {}
111 { ++
value.iter;
return *
this; }
119 const Iter_t &iter) :
120 value(mapping, iter) {}
139 {
return taggingVarToAtomicId[taggingName]; }
149 #endif // RecoBTau_BTauComputer_GenericMVAComputer_h
TaggingVariableIterator< Iter_t > iterator(Iter_t iter) const
double eval(Iter_t first, Iter_t last) const
PhysicsTools::AtomicId AtomicId
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
reco::TaggingVariableName TaggingName
TaggingVariableIterator(TaggingVariableMapping const *mapping, const Iter_t &iter)
std::forward_iterator_tag iterator_category
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
TaggingVariableMapping const * mapping
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
reco::JetExtendedAssociation::JetExtendedData Value
def template(fileName, svg, replaceme="REPLACEME")
AtomicId getAtomicId(TaggingName taggingName) const
static const TaggingVariableMapping mapping
~TaggingVariableIterator()
friend class GenericMVAComputer
std::iterator_traits< Iter_t >::difference_type difference_type
friend class TaggingVariableIterator
PhysicsTools::AtomicId getName() const
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
MatrixMeschach operator*(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
GenericMVAComputer(const PhysicsTools::Calibration::MVAComputer *calib)
double eval(const Container_t &values) const
Value(TaggingVariableMapping const *mapping, const Iter_t &iter)
~TaggingVariableMapping()
std::vector< AtomicId > taggingVarToAtomicId