Geometry.
41 config:
"ConfigurationClass object with complete job configuration",
42 registry:
"ServiceRegistryClass object with the configuration of all services",
43 ) ->
"configuration of channel mapping algorithm as a FHiCL parameter set":
51 serviceName =
'Geometry'
53 serviceConfig = config.service(serviceName)
if config
else registry.config(serviceName)
54 except Exception: serviceConfig =
None
55 if serviceConfig
and serviceConfig.has_key(
'ChannelMapping'):
58 serviceName =
'ExptGeoHelperInterface'
59 serviceConfig = config.service(serviceName)
if config
else registry.config(serviceName)
60 if serviceConfig
is None:
61 raise RuntimeError(
"Failed to retrieve the configuration for %s service" % serviceName)
62 if serviceConfig.get(str)(
'service_provider') !=
'IcarusGeometryHelper':
64 "{} in configuration is '{}', not IcarusGeometryHelper"
65 .
format(serviceName, serviceConfig[
'service_provider'])
73 plugin_type = mapperConfig.get(str)(
'tool_type')
76 "{} service configuration of channel mapping is missing the tool_type:\n{}"
77 .
format(serviceName, mapperConfig.to_indented_string(
" "))
80 else: plugin_type = DefaultChannelMapping
static std::string format(PyObject *obj, unsigned int pos, unsigned int indent, unsigned int maxlen, unsigned int depth)