Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-13 01:43:36

0001 #include "FWCore/Framework/interface/ComponentMaker.h"
0002 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0003 
0004 #include <string>
0005 #include <atomic>
0006 
0007 namespace edm {
0008   namespace eventsetup {
0009 
0010     ComponentDescription ComponentMakerBaseHelper::createComponentDescription(ParameterSet const& iConfiguration) const {
0011       ComponentDescription description;
0012       description.type_ = iConfiguration.getParameter<std::string>("@module_type");
0013       description.label_ = iConfiguration.getParameter<std::string>("@module_label");
0014 
0015       description.pid_ = iConfiguration.id();
0016       static std::atomic<unsigned int> s_id{0};
0017       description.id_ = s_id++;
0018 
0019       return description;
0020     }
0021 
0022   }  // namespace eventsetup
0023 }  // namespace edm