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::unique_ptr<HcalTrigTowerGeometry>
17 {
18  edm::ESHandle<HcalTopology> hcalTopology;
19  iRecord.getRecord<HcalRecNumberingRecord>().get( hcalTopology );
20 
21  return std::make_unique<HcalTrigTowerGeometry>(&*hcalTopology);
22 }
23 
26  descriptions.add("HcalTrigTowerGeometryESProducer", desc);
27 }
28 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:124
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: config.py:1
HcalTrigTowerGeometryESProducer(const edm::ParameterSet &conf)
std::unique_ptr< HcalTrigTowerGeometry > produce(const CaloGeometryRecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)