15 const std::map<std::string, std::string>& configmap)
17 auto confFile_itr = configmap.find(
input);
18 if (confFile_itr == configmap.end()) {
20 msg.msg(MSG::WARNING) <<
"Key " <<
input
21 <<
" not found in map, no config file returned"
25 return confFile_itr->second;
30 const std::map<std::string, unsigned int>& maskmap)
32 auto mask_itr = maskmap.find(
input);
33 if (mask_itr == maskmap.end()) {
37 <<
" not found in map, egammaPID::EgPidUndefined mask returned"
42 return static_cast<unsigned int>(mask_itr->second);
51 std::string::size_type
first(0);
52 std::string::size_type last(0);
56 if (
first == std::string::npos) {
64 if (last == std::string::npos) {
66 msg.msg(MSG::WARNING) <<
" Improper comment format , inline comment "
67 "should be enclosed between two # "
84 std::vector<T> CutVector;
85 std::string env_input(
env.GetValue(
input.c_str(),
""));
86 if (!env_input.empty()) {
87 std::string::size_type
end;
89 end = env_input.find(
';');
92 CutVector.push_back(myValue);
94 if (
end != std::string::npos) {
95 env_input = env_input.substr(
end + 1);
97 }
while (
end != std::string::npos);
107 return AsgConfigHelper::Helper<double>(
input,
env);
112 return AsgConfigHelper::Helper<float>(
input,
env);
117 return AsgConfigHelper::Helper<int>(
input,
env);
121 std::vector<std::string>
124 return AsgConfigHelper::Helper<std::string>(
input,
env);