CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalParametersESModule.cc
Go to the documentation of this file.
12 
14 {
15  edm::LogInfo("HCAL") << "HcalParametersESModule::HcalParametersESModule";
16 
17  setWhatProduced(this);
18 }
19 
21 {}
22 
23 void
25 {
27  descriptions.add( "hcalParameters", desc );
28 }
29 
32 {
33  //edm::LogInfo("HcalParametersESModule")
34  std::cout << "HcalParametersESModule::produce(const PHcalParametersRcd& iRecord)" << std::endl;
36  iRecord.getRecord<IdealGeometryRecord>().get( cpv );
37 
38  PHcalParameters* ptp = new PHcalParameters();
39  HcalParametersFromDD builder;
40  builder.build( &(*cpv), *ptp );
41 
42  return ReturnType( ptp ) ;
43 }
44 
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
bool build(const DDCompactView *, PHcalParameters &)
boost::shared_ptr< PHcalParameters > ReturnType
ReturnType produce(const PHcalParametersRcd &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
tuple cout
Definition: gather_cfg.py:121
HcalParametersESModule(const edm::ParameterSet &)