3 #include "cetlib_except/exception.h"
4 #include "messagefacility/MessageLogger/MessageLogger.h"
11 throw cet::exception(
"MVAPID") <<
"Failed to add entry: " << pdg <<
" to MVA PID score map as it already exists" << std::endl;
16 auto iter = std::max_element(mvaScoreMap.begin(), mvaScoreMap.end(), [](
auto const& lhs,
auto const& rhs) {
return lhs.second < rhs.second; });
18 if (iter == mvaScoreMap.end()) {
19 mf::LogError(
"MVAPID") <<
"Failed to find max element in map" << std::endl;
20 return {-1, std::numeric_limits<float>::lowest()};
BEGIN_PROLOG or score(default)}sbnd_crttrackmatchingalg_crID
void AddScore(int pdg, float score)
std::pair< int, float > BestIter() const
std::map< int, float > mvaScoreMap