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>
55 class TaggingVariableIterator {
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
Value(TaggingVariableMapping *mapping, const Iter_t &iter)
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 &)
bool operator==(const CaloTower &t1, const CaloTower &t2)
reco::TaggingVariableName TaggingName
TaggingVariableIterator(TaggingVariableMapping *mapping, const Iter_t &iter)
std::forward_iterator_tag iterator_category
MVATrainerComputer * calib
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
TaggingVariableMapping * mapping
reco::JetExtendedAssociation::JetExtendedData Value
static TaggingVariableMapping mapping
AtomicId getAtomicId(TaggingName taggingName) const
~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
~TaggingVariableMapping()
std::vector< AtomicId > taggingVarToAtomicId