1 #ifndef RecoBTau_BTauComputer_GenericMVAComputer_h 2 #define RecoBTau_BTauComputer_GenericMVAComputer_h 16 template <
typename Iter_t>
23 template <
typename Iter_t>
29 template <
typename Iter_t>
35 template <
typename Container_t>
37 typedef typename Container_t::const_iterator Iter_t;
38 return this->
template eval<Iter_t>(
values.begin(),
values.end());
52 template <
typename Iter_t>
53 class TaggingVariableIterator {
61 inline double getValue()
const {
return iter->second; }
138 #endif // RecoBTau_BTauComputer_GenericMVAComputer_h
TaggingVariableIterator operator++(int dummy)
bool operator<(const TaggingVariableIterator &other) const
AtomicId getAtomicId(TaggingName taggingName) const
const Value * operator->() const
TaggingVariableIterator & operator++()
PhysicsTools::AtomicId AtomicId
TaggingVariableIterator< Iter_t > iterator(Iter_t iter) const
reco::TaggingVariableName TaggingName
double eval(Iter_t first, Iter_t last) const
TaggingVariableIterator(TaggingVariableMapping const *mapping, const Iter_t &iter)
std::forward_iterator_tag iterator_category
TaggingVariableMapping const * mapping
reco::JetExtendedAssociation::JetExtendedData Value
def template(fileName, svg, replaceme="REPLACEME")
static const TaggingVariableMapping mapping
~TaggingVariableIterator()
friend class GenericMVAComputer
std::iterator_traits< Iter_t >::difference_type difference_type
const Value & operator*() const
TString getName(TString structure, int layer, TString geometry)
bool operator==(const TaggingVariableIterator &other) const
bool operator!=(const TaggingVariableIterator &other) const
friend class TaggingVariableIterator
double eval(const Container_t &values) const
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
PhysicsTools::AtomicId getName() const
GenericMVAComputer(const PhysicsTools::Calibration::MVAComputer *calib)
Value(TaggingVariableMapping const *mapping, const Iter_t &iter)
~TaggingVariableMapping()
std::vector< AtomicId > taggingVarToAtomicId