File indexing completed on 2024-04-06 12:14:49
0001 #ifndef Geometry_HcalEventSetup_HcalHardcodeGeometryEP_H
0002 #define Geometry_HcalEventSetup_HcalHardcodeGeometryEP_H 1
0003
0004 #include <memory>
0005
0006 #include "FWCore/Framework/interface/ESProducer.h"
0007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0008 #include "FWCore/Utilities/interface/ESGetToken.h"
0009
0010 class CaloSubdetectorGeometry;
0011 class HcalRecNumberingRecord;
0012 class HcalGeometryRecord;
0013 class HcalDDDRecConstants;
0014 class HcalTopology;
0015
0016 class HcalHardcodeGeometryEP : public edm::ESProducer {
0017 public:
0018 HcalHardcodeGeometryEP(const edm::ParameterSet&);
0019
0020 using ReturnType = std::unique_ptr<CaloSubdetectorGeometry>;
0021
0022 ReturnType produceAligned(const HcalGeometryRecord&);
0023
0024 private:
0025 edm::ESGetToken<HcalDDDRecConstants, HcalRecNumberingRecord> consToken_;
0026 edm::ESGetToken<HcalTopology, HcalRecNumberingRecord> topologyToken_;
0027 bool useOld_;
0028 };
0029 #endif