3 #include <boost/algorithm/string.hpp>
13 if (boost::iequals(pair.first, name))
21 static std::map<PIDDetector, std::string> reverse_map;
23 if (reverse_map.size() == 0)
29 reverse_map[pair.second] = pair.first;
33 if (reverse_map.find(det) == reverse_map.end())
35 std::cout << __PRETTY_FUNCTION__
36 <<
" WARNING: asking for det = " << det
37 <<
", which is not defined in EICPIDDefs::PIDDetectorNameMap" << std::endl;
40 return reverse_map[det];