CMS 3D CMS Logo

HcalTrigTowerGeometryESProducer.cc
Go to the documentation of this file.
5 #include <memory>
6 
8 {
9  setWhatProduced( this );
10 }
11 
13 {}
14 
15 std::shared_ptr<HcalTrigTowerGeometry>
17 {
18  edm::ESHandle<HcalTopology> hcalTopology;
19  iRecord.getRecord<HcalRecNumberingRecord>().get( hcalTopology );
20 
21  m_hcalTrigTowerGeom = std::make_shared<HcalTrigTowerGeometry>( &*hcalTopology);
22  return m_hcalTrigTowerGeom;
23 }
24 
27  descriptions.add("HcalTrigTowerGeometryESProducer", desc);
28 }
29 
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: config.py:1
std::shared_ptr< HcalTrigTowerGeometry > produce(const CaloGeometryRecord &)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
HcalTrigTowerGeometryESProducer(const edm::ParameterSet &conf)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::shared_ptr< HcalTrigTowerGeometry > m_hcalTrigTowerGeom