CMS 3D CMS Logo

HcalDDDRecConstantsESMoudle.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: HcalDDDRecConstantsESModule
4 // Class: HcalDDDRecConstantsESModule
5 //
13 //
14 // Original Author: Sunanda Banerjee
15 // Created: Tue Dec 24 16:40:29 PDT 2013
16 // $Id: HcalDDDRecConstantsESModule.cc,v 1.0 2013/12/24 12:47:41 sunanda Exp $
17 //
18 //
19 
20 
21 // system include files
22 #include <memory>
23 
24 // user include files
29 
34 
35 //#define EDM_ML_DEBUG
36 
38 
39 public:
42 
43  using ReturnType = std::unique_ptr<HcalDDDRecConstants>;
44 
46 
48 
49 };
50 
52 #ifdef EDM_ML_DEBUG
53  edm::LogVerbatim("HcalGeom") <<"constructing HcalDDDRecConstantsESModule";
54 #endif
55  setWhatProduced(this);
56 }
57 
59 
62  descriptions.add( "hcalDDDRecConstants", desc );
63 }
64 
65 // ------------ method called to produce the data ------------
68 #ifdef EDM_ML_DEBUG
69  edm::LogVerbatim("HcalGeom") << "in HcalDDDRecConstantsESModule::produce";
70 #endif
72  iRecord.getRecord<HcalParametersRcd>().get(parHandle);
74  iRecord.getRecord<HcalSimNumberingRecord>().get(hdc);
75 
76  return std::make_unique<HcalDDDRecConstants>(&(*parHandle), *hdc);
77 }
78 
79 //define this as a plug-in
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:116
std::unique_ptr< HcalDDDRecConstants > ReturnType
static void fillDescriptions(edm::ConfigurationDescriptions &)
ReturnType produce(const HcalRecNumberingRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HcalDDDRecConstantsESModule(const edm::ParameterSet &)