Namespaces | |
details | |
Functions | |
template<typename ChannelMapClass , typename... Args> | |
std::unique_ptr <::geo::GeometryCore > | SetupICARUSGeometry (fhicl::ParameterSet const &pset, Args &&...args) |
Initialization of geometry with ICARUS specific conventions. More... | |
std::unique_ptr <::geo::GeometryCore > | LoadStandardICARUSgeometry (std::string const &configPath) |
Returns an instance of geo::GeometryCore with ICARUS geometry loaded. More... | |
|
inline |
Returns an instance of geo::GeometryCore
with ICARUS geometry loaded.
configPath | path to a FHiCL configuration file including geometry |
geo::GeometryCore
objectThe geometry is initialized with the configuration found in the FHiCL file pointed by configPath
. Within that file, the geometry service provider configuration table is expected to be found as services.Geometry
or, as fallback as Geometry
. If neither is present, the whole configuration will be used.
ICARUS geometry configuration has special conventions, which include:
ChannelMapping
configuration in the Geometry
configuration block, equivalent to the one passed to ExptGeoHelperInterface
service;tool_type
name.The ChannelMapping
table must be present in the configuration, and the tool_type
configuration atom must match ICARUSsplitInductionChannelMapSetupTool
. These parameters confirm that the standard ICARUS geometry is intended.
If a configuration table service.message
or message
is found, message facility is initialised with it, unless it is already running.
This utility is as simple to use as:
It has been tested in Cling interpreter provided with ROOT 6.22/08.
Note that it is considered an error not to use the return value of this function.
Definition at line 88 of file LoadStandardICARUSgeometry.h.
std::unique_ptr<::geo::GeometryCore> icarus::geo::SetupICARUSGeometry | ( | fhicl::ParameterSet const & | pset, |
Args &&... | args | ||
) |
Initialization of geometry with ICARUS specific conventions.
ChannelMapClass | type of channel mapping to be used |
pset | configuration of the geometry service |
geo::GeometryCore
service providerThe conventions that are specific to ICARUS are:
Geometry
service configuration table, as ChannelMapping
table; because of the unusual requirement, this item is mandatory (even if it may well be empty);ChannelMapClass::Config
object as configuration, which can be wrapped in a FHiCL table;tool_type
entry which is ignored. Definition at line 69 of file ICARUSstandaloneGeometrySetup.h.