CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
10  enum CoderType { DB, NOMINAL };
11 
12  HcalCoderFactory(CoderType coderType);
13 
14  void setDbService(const HcalDbService* service) { theDbService = service; }
15 
17  std::unique_ptr<HcalCoder> coder(const DetId& detId) const;
18 
19 private:
22 };
23 
24 #endif
const HcalDbService * theDbService
HcalCoderFactory(CoderType coderType)
Definition: DetId.h:17
void setDbService(const HcalDbService *service)
CoderType theCoderType
std::unique_ptr< HcalCoder > coder(const DetId &detId) const
user gets control of the pointer