CMS 3D CMS Logo

CastorCoderFactory.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorCoderFactory_h
2 #define CastorSim_CastorCoderFactory_h
3 
6 #include <memory>
7 
9 public:
10  enum CoderType { DB, NOMINAL };
11 
12  CastorCoderFactory(CoderType coderType);
13 
14  void setDbService(const CastorDbService *service) { theDbService = service; }
15 
17  std::unique_ptr<CastorCoder> coder(const DetId &detId) const;
18 
19 private:
22 };
23 
24 #endif
std::unique_ptr< CastorCoder > coder(const DetId &detId) const
user gets control of the pointer
const CastorDbService * theDbService
Definition: DetId.h:18
CastorCoderFactory(CoderType coderType)
void setDbService(const CastorDbService *service)