27 FDEBUG(1) <<
"Factory: module_type = " << modtype << std::endl;
28 MakerMap::iterator it =
makers_.find(modtype);
33 if (wm.get() ==
nullptr)
36 <<
" was not registered.\n" 37 <<
"Perhaps your module type is misspelled or is not a " 38 <<
"framework plugin.\n" 39 <<
"Try running EdmPluginDump to obtain a list of " 40 <<
"available Plugins.";
42 FDEBUG(1) <<
"Factory: created worker of type " << modtype << std::endl;
44 std::pair<MakerMap::iterator, bool> ret =
makers_.insert(std::pair<std::string, Maker*>(modtype, wm.get()));
60 auto mod(maker->makeModule(p, pre, post));
66 MakerMap::iterator it =
makers_.find(modtype);
68 return it->second->makeReplacementModule(p);
70 return std::shared_ptr<maker::ModuleHolder>{};
T getParameter(std::string const &) const
#define EDM_REGISTER_PLUGINFACTORY(_factory_, _category_)
def create(alignables, pedeDump, additionalData, outputFile, config)
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()
T mod(const T &a, const T &b)
T get(const Candidate &c)
std::shared_ptr< ProcessConfiguration const > processConfiguration_