File indexing completed on 2024-04-06 12:12:08
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 }
0023 }