CMS 3D CMS Logo

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 
23 
26 
28 
29 public:
31 
32  using ReturnType = std::unique_ptr<HcalDDDSimConstants>;
33 
35 
37 
38 private:
40 };
41 
44 
47  descriptions.add( "hcalDDDSimConstants", desc );
48 }
49 
50 // ------------ method called to produce the data ------------
52  const auto& par = iRecord.get(parToken_);
53  return std::make_unique<HcalDDDSimConstants>(&par);
54 }
55 
56 //define this as a plug-in
static void fillDescriptions(edm::ConfigurationDescriptions &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
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