CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ComponentMaker.cc
Go to the documentation of this file.
4 
5 #include <string>
6 
7 namespace edm {
8  namespace eventsetup {
9 
10 ComponentDescription
12 {
14  description.type_ = iConfiguration.getParameter<std::string>("@module_type");
15  description.label_ = iConfiguration.getParameter<std::string>("@module_label");
16 
17  description.pid_ = iConfiguration.id();
18  return description;
19 }
20 
21 
22 void
24 
25  std::string edmtype = iConfiguration.getParameter<std::string>("@module_edm_type");
26  std::string modtype = iConfiguration.getParameter<std::string>("@module_type");
27  std::string label = iConfiguration.getParameter<std::string>("@module_label");
28  edm::LogInfo("EventSetupSharing") << "Sharing " << edmtype << ": class=" << modtype << " label='" << label << "'";
29 }
30 
31 } // namespace eventsetup
32 } // namespace edm
T getParameter(std::string const &) const
ParameterSetID id() const
tuple description
Definition: idDealer.py:66
void logInfoWhenSharing(ParameterSet const &iConfiguration) const
ComponentDescription createComponentDescription(ParameterSet const &iConfiguration) const