Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:50

0001 #include "HcalTrigTowerGeometryESProducer.h"
0002 #include "FWCore/Framework/interface/ModuleFactory.h"
0003 #include "Geometry/Records/interface/HcalRecNumberingRecord.h"
0004 #include <memory>
0005 
0006 HcalTrigTowerGeometryESProducer::HcalTrigTowerGeometryESProducer(const edm::ParameterSet& config)
0007     : topologyToken_{setWhatProduced(this).consumesFrom<HcalTopology, HcalRecNumberingRecord>(edm::ESInputTag{})} {}
0008 
0009 HcalTrigTowerGeometryESProducer::~HcalTrigTowerGeometryESProducer(void) {}
0010 
0011 std::unique_ptr<HcalTrigTowerGeometry> HcalTrigTowerGeometryESProducer::produce(const CaloGeometryRecord& iRecord) {
0012   const auto& hcalTopology = iRecord.get(topologyToken_);
0013   return std::make_unique<HcalTrigTowerGeometry>(&hcalTopology);
0014 }
0015 
0016 void HcalTrigTowerGeometryESProducer::fillDescriptions(edm::ConfigurationDescriptions& descriptions) {
0017   edm::ParameterSetDescription desc;
0018   descriptions.add("HcalTrigTowerGeometryESProducer", desc);
0019 }
0020 
0021 DEFINE_FWK_EVENTSETUP_MODULE(HcalTrigTowerGeometryESProducer);