test
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 
13 #include <boost/shared_ptr.hpp>
14 
15 
17 public:
20 
21  typedef boost::shared_ptr<HcalParameters> ReturnType;
22 
24 
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 &)
ReturnType produce(const HcalParametersRcd &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
static void fillDescriptions(edm::ConfigurationDescriptions &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
boost::shared_ptr< HcalParameters > ReturnType
HcalParametersESModule(const edm::ParameterSet &)