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>
61 inline double getValue()
const {
return iter->second; }
128 inline AtomicId
getAtomicId(TaggingName taggingName)
const {
return taggingVarToAtomicId[taggingName]; }
138 #endif // RecoBTau_BTauComputer_GenericMVAComputer_h
const Value * operator->() const
TaggingVariableIterator operator++(int dummy)
TaggingVariableIterator & operator++()
TaggingVariableIterator< Iter_t > iterator(Iter_t iter) const
double eval(Iter_t first, Iter_t last) const
PhysicsTools::AtomicId AtomicId
reco::TaggingVariableName TaggingName
TaggingVariableIterator(TaggingVariableMapping const *mapping, const Iter_t &iter)
std::forward_iterator_tag iterator_category
bool operator==(const TaggingVariableIterator &other) const
TaggingVariableMapping const * mapping
bool operator!=(const TaggingVariableIterator &other) const
reco::JetExtendedAssociation::JetExtendedData Value
def template(fileName, svg, replaceme="REPLACEME")
bool operator<(const TaggingVariableIterator &other) const
AtomicId getAtomicId(TaggingName taggingName) const
static const TaggingVariableMapping mapping
~TaggingVariableIterator()
friend class GenericMVAComputer
std::iterator_traits< Iter_t >::difference_type difference_type
TString getName(TString structure, int layer, TString geometry)
friend class TaggingVariableIterator
const Value & operator*() const
PhysicsTools::AtomicId getName() const
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
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