Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:12

0001 #ifndef GEOMETRY_HCALEVENTSETUP_CaloTowerTopologyEP_H
0002 #define GEOMETRY_HCALEVENTSETUP_CaloTowerTopologyEP_H 1
0003 
0004 // system include files
0005 #include <memory>
0006 
0007 // user include files
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 // class declaration
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   // ----------member data ---------------------------
0037   edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> topoToken_;
0038 };
0039 #endif