28 FDEBUG(1) <<
"Factory: module_type = " << modtype << std::endl;
29 MakerMap::iterator it =
makers_.find(modtype);
34 if (wm.get() ==
nullptr)
37 <<
" was not registered.\n"
38 <<
"Perhaps your module type is misspelled or is not a "
39 <<
"framework plugin.\n"
40 <<
"Try running EdmPluginDump to obtain a list of "
41 <<
"available Plugins.";
43 FDEBUG(1) <<
"Factory: created worker of type " << modtype << std::endl;
45 std::pair<MakerMap::iterator, bool>
ret =
makers_.insert(std::pair<std::string, Maker*>(modtype, wm.get()));
61 auto mod(maker->makeModule(p, pre, post));
67 MakerMap::iterator it =
makers_.find(modtype);
69 return it->second->makeReplacementModule(p);
71 return std::shared_ptr<maker::ModuleHolder>{};
tuple ret
prodAgent to be discontinued
static void cleanup(const Factory::MakerMap::value_type &v)
std::shared_ptr< maker::ModuleHolder > makeReplacementModule(const edm::ParameterSet &) const
Maker * findMaker(const MakeModuleParams &p) const
std::shared_ptr< maker::ModuleHolder > makeModule(const MakeModuleParams &, signalslot::Signal< void(const ModuleDescription &)> &pre, signalslot::Signal< void(const ModuleDescription &)> &post) const
Func for_all(ForwardSequence &s, Func f)
wrapper for std::for_each
Container::value_type value_type
static Factory const singleInstance_
static Factory const * get()
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
T getParameter(std::string const &) const
T mod(const T &a, const T &b)
std::shared_ptr< ProcessConfiguration const > processConfiguration_