10 std::string
const&
label,
11 std::string
const& configPath)
13 , configPath_(configPath)
14 , moduleType_(calcConfigType_())
15 , modPS_(procPS.get<
fhicl::ParameterSet>(configPath_ +
'.' + label_))
16 , libSpec_(modPS_.get<
std::string>(
"module_type"))
19 std::vector<std::string>
const&
22 static const std::vector<std::string> s_allModulePathRoots = {
23 "physics.analyzers",
"physics.filters",
"outputs",
"physics.producers"};
24 return s_allModulePathRoots;
33 switch (std::find(paths.cbegin(), paths.cend(),
configPath_) -
45 <<
"Unrecognized module path " <<
configPath_ <<
".\n";
ModuleConfigInfo(fhicl::ParameterSet const &procPS, std::string const &label, std::string const &configPath)
static std::vector< std::string > const & allModulePathRoots()
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
ModuleType calcConfigType_() const
std::string const configPath_