![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
19 std::map<std::string, std::string>&
remap,
20 std::set<std::string>& usedRemap);
24 const std::string& context);
27 T
match_first(
const std::vector<std::pair<std::regex, T> >& regexes,
29 const std::string& context) {
30 for (
const auto& pair: regexes) {
31 if (std::regex_match(
var_name, pair.first)) {
35 throw std::logic_error(
36 "no regex match found for input variable '" +
var_name +
"' in "
42 #endif // STRINGUTILS_H
This file contains "getter" functions used for accessing tagger inputs from the EDM.
std::string sub_first(const StringRegexes &res, const std::string &var_name, const std::string &context)
std::vector< std::pair< std::regex, std::string > > StringRegexes
std::pair< std::vector< unsigned int >, bool > res
const std::string remapName(const std::string &name, std::map< std::string, std::string > &remap, std::set< std::string > &usedRemap)
T match_first(const std::vector< std::pair< std::regex, T > > ®exes, const std::string &var_name, const std::string &context)
std::map< std::string, std::string > remap
list of directories to be explicitly remapped