test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorCoderFactory.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorCoderFactory_h
2 #define CastorSim_CastorCoderFactory_h
3 
4 #include <memory>
7 
9 {
10 public:
11  enum CoderType {DB, NOMINAL};
12 
13  CastorCoderFactory(CoderType coderType);
14 
15  void setDbService(const CastorDbService * service) {theDbService = service;}
16 
18  std::auto_ptr<CastorCoder> coder(const DetId & detId) const;
19 
20 private:
21 
24 };
25 
26 #endif
27 
std::auto_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)