CMS 3D CMS Logo

HcalParametersESModule.cc
Go to the documentation of this file.
12 
13 #include <memory>
14 
15 
17 public:
19  ~HcalParametersESModule( void ) override;
20 
21  typedef std::shared_ptr<HcalParameters> ReturnType;
22 
24 
25  ReturnType produce( const HcalParametersRcd & );
26 };
27 
29  edm::LogInfo("HCAL") << "HcalParametersESModule::HcalParametersESModule";
30 
31  setWhatProduced(this);
32 }
33 
35 
38  descriptions.add( "hcalParameters", desc );
39 }
40 
43  edm::LogInfo("HcalESModule")
44  << "HcalParametersESModule::produce(const HcalParametersRcd& iRecord)";
46  iRecord.getRecord<IdealGeometryRecord>().get( cpv );
47 
48  HcalParameters* ptp = new HcalParameters();
49  HcalParametersFromDD builder;
50  builder.build( &(*cpv), *ptp );
51 
52  return ReturnType( ptp ) ;
53 }
54 
bool build(const DDCompactView *, HcalParameters &)
~HcalParametersESModule(void) override
ReturnType produce(const HcalParametersRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
std::shared_ptr< HcalParameters > ReturnType
static void fillDescriptions(edm::ConfigurationDescriptions &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
HcalParametersESModule(const edm::ParameterSet &)