File indexing completed on 2024-04-06 12:14:49
0001 #ifndef GEOMETRY_HCALEVENTSETUP_CaloTowerTopologyEP_H
0002 #define GEOMETRY_HCALEVENTSETUP_CaloTowerTopologyEP_H 1
0003
0004
0005 #include <memory>
0006
0007
0008 #include "FWCore/Framework/interface/ModuleFactory.h"
0009 #include "FWCore/Framework/interface/ESProducer.h"
0010
0011 #include "Geometry/CaloTopology/interface/HcalTopology.h"
0012 #include "Geometry/CaloTopology/interface/CaloTowerTopology.h"
0013 #include "Geometry/Records/interface/HcalRecNumberingRecord.h"
0014 #include "Geometry/Records/interface/IdealGeometryRecord.h"
0015
0016 namespace edm {
0017 class ConfigurationDescriptions;
0018 }
0019
0020
0021
0022
0023
0024 class CaloTowerTopologyEP : public edm::ESProducer {
0025 public:
0026 CaloTowerTopologyEP(const edm::ParameterSet&);
0027 ~CaloTowerTopologyEP() override;
0028
0029 using ReturnType = std::unique_ptr<CaloTowerTopology>;
0030
0031 static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0032
0033 ReturnType produce(const HcalRecNumberingRecord&);
0034
0035 private:
0036
0037 edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> topoToken_;
0038 };
0039 #endif