File indexing completed on 2024-04-06 12:29:31
0001 #ifndef HcalSimAlgos_HcalCoderFactory_h
0002 #define HcalSimAlgos_HcalCoderFactory_h
0003
0004 #include <memory>
0005 #include "CalibFormats/HcalObjects/interface/HcalDbService.h"
0006 #include "CalibFormats/HcalObjects/interface/HcalCoder.h"
0007
0008 class HcalCoderFactory {
0009 public:
0010 enum CoderType { DB, NOMINAL };
0011
0012 HcalCoderFactory(CoderType coderType);
0013
0014 void setDbService(const HcalDbService* service) { theDbService = service; }
0015
0016
0017 std::unique_ptr<HcalCoder> coder(const DetId& detId) const;
0018
0019 private:
0020 CoderType theCoderType;
0021 const HcalDbService* theDbService;
0022 };
0023
0024 #endif