CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/FWCore/Framework/src/ComponentMaker.cc

Go to the documentation of this file.
00001 #include "FWCore/Framework/interface/ComponentMaker.h"
00002 #include "FWCore/MessageLogger/interface/MessageLogger.h"
00003 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00004 
00005 #include <string>
00006 
00007 namespace edm {
00008   namespace eventsetup {
00009 
00010 ComponentDescription 
00011 ComponentMakerBaseHelper::createComponentDescription(ParameterSet const& iConfiguration) const
00012 {
00013   ComponentDescription description;
00014   description.type_  = iConfiguration.getParameter<std::string>("@module_type");
00015   description.label_ = iConfiguration.getParameter<std::string>("@module_label");
00016 
00017   description.pid_            = iConfiguration.id();
00018   return description;
00019 }
00020 
00021 
00022 void
00023 ComponentMakerBaseHelper::logInfoWhenSharing(ParameterSet const& iConfiguration) const {
00024 
00025    std::string edmtype = iConfiguration.getParameter<std::string>("@module_edm_type");
00026    std::string modtype = iConfiguration.getParameter<std::string>("@module_type");
00027    std::string label = iConfiguration.getParameter<std::string>("@module_label");
00028    edm::LogInfo("EventSetupSharing") << "Sharing " << edmtype << ": class=" << modtype << " label='" << label << "'";
00029 }
00030 
00031 } // namespace eventsetup
00032 } // namespace edm