16 TLOG() <<
"FACILITY = " << facility;
18 const std::string hook =
"://";
19 auto sep = facility.find(hook);
21 if (sep == std::string::npos) {
24 scheme = facility.substr(0, sep);
28 std::string plugin_name = scheme +
"OpMonFacility";
29 static cet::BasicPluginFactory bpf(
"duneOpMonFacility",
"make");
30 std::shared_ptr<OpMonFacility> os_ptr;
33 os_ptr = bpf.makePlugin<std::shared_ptr<OpMonFacility>>(plugin_name, facility, o);
35 throw OpMonFacilityCreationFailed(
ERS_HERE, plugin_name, iexpt);
36 }
catch (
const cet::exception& cexpt) {
37 throw OpMonFacilityCreationFailedWithCause(
ERS_HERE, plugin_name, cexpt.what());
39 throw OpMonFacilityCreationFailed(
ERS_HERE, plugin_name);