CMS 3D CMS Logo

HcalCoderFactory.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalCoderFactory_h
2 #define HcalSimAlgos_HcalCoderFactory_h
3 
4 #include <memory>
7 
9 {
10 public:
11  enum CoderType {DB, NOMINAL};
12 
13  HcalCoderFactory(CoderType coderType);
14 
15  void setDbService(const HcalDbService * service) {theDbService = service;}
16 
18  std::unique_ptr<HcalCoder> coder(const DetId & detId) const;
19 
20 private:
21 
24 };
25 
26 #endif
27 
const HcalDbService * theDbService
HcalCoderFactory(CoderType coderType)
Definition: DetId.h:18
void setDbService(const HcalDbService *service)
CoderType theCoderType
std::unique_ptr< HcalCoder > coder(const DetId &detId) const
user gets control of the pointer