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 
24 
27 
29 
30 public:
32 
33  using ReturnType = std::unique_ptr<HcalDDDSimConstants>;
34 
36 
38 };
39 
41  setWhatProduced(this);
42 }
43 
46  descriptions.add( "hcalDDDSimConstants", desc );
47 }
48 
49 // ------------ method called to produce the data ------------
52 
53  const HcalParametersRcd& parRecord = iRecord.getRecord<HcalParametersRcd>();
55  parRecord.get(parHandle);
56 
57  return std::make_unique<HcalDDDSimConstants>(parHandle.product());
58 }
59 
60 //define this as a plug-in
static void fillDescriptions(edm::ConfigurationDescriptions &)
ReturnType produce(const HcalSimNumberingRecord &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
void get(HolderT &iHolder) 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