17 if (
auto numDigis = config[
"minDigis"]) {
18 for (YAML::const_iterator it = numDigis.begin(); it != numDigis.end(); it++) {
20 auto value = it->second.as<
size_t>();
24 L_(warning) <<
"DigiEventSelectorConfig: Ignoring minimum 0 for digis in " <<
::ToString(det);
27 if (
auto numLayers = config[
"minLayers"]) {
28 for (YAML::const_iterator it = numLayers.begin(); it != numLayers.end(); it++) {
30 auto value = it->second.as<
size_t>();
34 L_(warning) <<
"DigiEventSelectorConfig: Ignoring minimum 0 for layers in " <<
::ToString(det);
47 result[
"minDigis"][det] = entry.second;
51 result[
"minLayers"][det] = entry.second;
ECbmModuleId ToCbmModuleIdCaseInsensitive(std::string modIdStr)
std::map< ECbmModuleId, size_t > fMinNumLayers
Key: detector, value: Minimal number of layers.
YAML::Node ToYaml() const
Save to YAML.
std::map< ECbmModuleId, size_t > fMinNumDigis
Key: detector, value: minimal number of digis.
DigiEventSelectorConfig(YAML::Node config)
Constructor from YAML.
std::string_view ToString(T t)