106 auto modtype = iConfiguration.getParameter<
std::string>(
"@module_type");
111 fillDetails::fillIfExists<TComponent>(descriptions);
112 fillDetails::prevalidateIfExists<TComponent>(descriptions);
113 descriptions.validate(iConfiguration,
moduleLabel);
114 iConfiguration.registerIt();
118 "Validating configuration of {} of type {} with label: '{}'", T::baseType(), modtype,
moduleLabel));
123 if (!replaceExisting) {
124 std::shared_ptr<typename T::base_type> alreadyMadeComponent =
125 T::getComponentAndRegisterProcess(esController, iConfiguration);
127 if (alreadyMadeComponent) {
132 std::shared_ptr<TComponent> component(
133 std::static_pointer_cast<TComponent, typename T::base_type>(alreadyMadeComponent));
134 T::addTo(iProvider, component, iConfiguration,
true);
139 std::shared_ptr<TComponent> component = std::make_shared<TComponent>(iConfiguration);
146 if (replaceExisting) {
155 T::replaceExisting(iProvider, component);
161 T::addTo(iProvider, component, iConfiguration,
false);
162 T::putComponent(esController, iConfiguration, component);
ComponentDescription createComponentDescription(ParameterSet const &iConfiguration) const
void setDescription(ESProductResolverProvider *iProv, const ComponentDescription &iDesc) const
void setPostConstruction(ESProductResolverProvider *iProv, const edm::ParameterSet &iPSet) const
void addContext(std::string const &context)
void setDescriptionForFinder(EventSetupRecordIntervalFinder *iFinder, const ComponentDescription &iDesc) const
auto wrap(F iFunc) -> decltype(iFunc())