16 const std::map<std::string, std::string>& configmap)
18 auto confFile_itr = configmap.find(input);
19 if (confFile_itr == configmap.end()) {
21 msg.msg(MSG::WARNING) <<
"Key " << input
22 <<
" not found in map, no config file returned"
26 return confFile_itr->second;
31 const std::map<std::string, unsigned int>& maskmap)
33 auto mask_itr = maskmap.find(input);
34 if (mask_itr == maskmap.end()) {
38 <<
" not found in map, egammaPID::EgPidUndefined mask returned"
43 return static_cast<unsigned int>(mask_itr->second);
51 std::string
tmp = input;
52 std::string::size_type
first(0);
53 std::string::size_type last(0);
54 first = (input.find(
'#'));
57 if (
first == std::string::npos) {
63 last = (input.find(
'#',
first + 1));
65 if (last == std::string::npos) {
67 msg.msg(MSG::WARNING) <<
" Improper comment format , inline comment "
68 "should be enclosed between two # "
85 std::vector<T> CutVector;
86 std::string env_input(
env.GetValue(input.c_str(),
""));
87 if (!env_input.empty()) {
88 std::string::size_type
end;
90 end = env_input.find(
';');
93 CutVector.push_back(myValue);
95 if (
end != std::string::npos) {
96 env_input = env_input.substr(
end + 1);
98 }
while (
end != std::string::npos);
108 return AsgConfigHelper::Helper<double>(
input,
env);
113 return AsgConfigHelper::Helper<float>(
input,
env);
118 return AsgConfigHelper::Helper<int>(
input,
env);
122 std::vector<std::string>
125 return AsgConfigHelper::Helper<std::string>(
input,
env);