35 std::ostringstream ost;
36 ost <<
"Validating configuration of module: class=" << moduleName
37 <<
" label='" << moduleLabel <<
"'";
45 std::ostringstream ost;
54 if (edmType != expected) {
56 <<
"The base type in the python configuration is " << expected <<
", but the base type\n"
57 <<
"for the module's C++ class is " << edmType <<
". "
58 <<
"Please fix the configuration.\n"
59 <<
"It must use the same base type as the C++ class.\n";
63 std::shared_ptr<maker::ModuleHolder>
87 std::shared_ptr<maker::ModuleHolder>
module;
88 bool postCalled =
false;
93 module->setModuleDescription(md);
95 module->registerProductsAndCallbacks(p.
reg_);
121 std::unique_ptr<Worker>
123 maker::ModuleHolder
const*
mod)
const {
T getParameter(std::string const &) const
boost::shared_ptr< ProcessConfiguration const > processConfiguration_
void throwConfigurationException(ModuleDescription const &md, cms::Exception &iException) const
ParameterSetID id() const
std::string const & moduleName() const
virtual const std::string & baseType() const =0
std::string const & moduleLabel() const
static unsigned int getUniqueID()
Returns a unique id each time called. Intended to be passed to ModuleDescription's constructor's modI...
std::unique_ptr< Worker > makeWorker(ExceptionToActionTable const *, maker::ModuleHolder const *) const
std::string moduleName(Provenance const &provenance)
void stdToEDM(std::exception const &e)
virtual void fillDescriptions(ConfigurationDescriptions &iDesc) const =0
void validateEDMType(std::string const &edmType, MakeModuleParams const &p) const
void charPtrToEDM(char const *c)
void stringToEDM(std::string &s)
void addContext(std::string const &context)
std::shared_ptr< maker::ModuleHolder > makeModule(MakeModuleParams const &, signalslot::Signal< void(ModuleDescription const &)> &iPre, signalslot::Signal< void(ModuleDescription const &)> &iPost) const
ModuleDescription createModuleDescription(MakeModuleParams const &p) const
void validate(ParameterSet &pset, std::string const &moduleLabel) const
PreallocationConfiguration const * preallocate_
T mod(const T &a, const T &b)
ParameterSet const & registerIt()
void throwValidationException(MakeModuleParams const &p, cms::Exception &iException) const