CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalDDDSimConstantsESModule.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HcalDDDSimConstantsESModule
4 // Class: HcalDDDSimConstantsESModule
5 //
13 //
14 // Original Author: Sunanda Banerjee
15 // Created: Tue Dec 24 16:40:29 PDT 2013
16 //
17 //
18 
19 #include <memory>
20 
24 
27 
28 //#define EDM_ML_DEBUG
29 
31 public:
33 
34  using ReturnType = std::unique_ptr<HcalDDDSimConstants>;
35 
37 
39 
40 private:
42 };
43 
45 #ifdef EDM_ML_DEBUG
46  edm::LogVerbatim("HcalGeom") << "constructing HcalDDDSimConstantsESModule";
47 #endif
48  auto cc = setWhatProduced(this);
50 }
51 
54  descriptions.add("hcalDDDSimConstants", desc);
55 }
56 
57 // ------------ method called to produce the data ------------
59  const auto& par = iRecord.get(parToken_);
60  return std::make_unique<HcalDDDSimConstants>(&par);
61 }
62 
63 //define this as a plug-in
Log< level::Info, true > LogVerbatim
static void fillDescriptions(edm::ConfigurationDescriptions &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
edm::ESGetToken< HcalParameters, HcalParametersRcd > parToken_
ReturnType produce(const HcalSimNumberingRecord &)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
HcalDDDSimConstantsESModule(const edm::ParameterSet &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< HcalDDDSimConstants > ReturnType