 |
Belle II Software
release-05-01-25
|
26 template <
class TItem,
class TEstimator >
27 class BestMatchContainer {
42 bool add(TItem
const& item, TEstimator est,
44 = [](TEstimator currentBest, TEstimator newEst) {
return newEst < currentBest;}
TEstimator m_bestEstimator
Stores the estimator value of the best match.
TItem const & getBestMatch() const
std::optional< TItem > m_bestMatch
Stores the best matched item.
Abstract base class for different kinds of events.
void setBestMatch(TItem const &item, TEstimator est)
Set a new item as the best match.
bool add(TItem const &item, TEstimator est, EstimatorComparison estComparison=[](TEstimator currentBest, TEstimator newEst) {return newEst< currentBest;})
Add a new item with an estimator value.
std::function< bool(TEstimator, TEstimator)> EstimatorComparison
Lambda typedef for the function comparing estimators.