CMS 3D CMS Logo

StringResolutionProviderESProducer.cc
Go to the documentation of this file.
3 
6 
8 public:
11 
12  std::unique_ptr<KinematicResolutionProvider> produce(const KinematicResolutionRcd &rcd);
13 
14 private:
16 };
17 
19  : cfg_(iConfig) {
20  std::string myName = iConfig.getParameter<std::string>("@module_label");
21  setWhatProduced(this, myName);
22 }
23 
24 std::unique_ptr<KinematicResolutionProvider> StringResolutionProviderESProducer::produce(
25  const KinematicResolutionRcd &rcd) {
26  return std::make_unique<StringResolutionProvider>(cfg_);
27 }
28 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:166
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< KinematicResolutionProvider > produce(const KinematicResolutionRcd &rcd)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61