CMS 3D CMS Logo

Mapper.h
Go to the documentation of this file.
1 #ifndef Mapper_h
2 #define Mapper_h
3 
4 /*
5  * file: Mapper.h
6  * Author: Viktor Khristenko
7  *
8  * Description:
9  */
10 
14 
15 #include <string>
16 #include <vector>
17 #include <sstream>
18 
19 namespace hcaldqm
20 {
21  namespace mapper
22  {
23  class Mapper
24  {
25  public:
27  {}
28  virtual ~Mapper() {}
29 
30  virtual uint32_t getHash(HcalDetId const&) const{return 0;}
31  virtual uint32_t getHash(HcalElectronicsId const&) const {return 0;}
32  virtual uint32_t getHash(HcalTrigTowerDetId const&) const {return 0;}
33 
34  virtual std::string getName(HcalDetId const&) const {return "";}
35  virtual std::string getName(HcalElectronicsId const&) const
36  {return "";}
37  virtual std::string getName(HcalTrigTowerDetId const&) const
38  {return "";}
39 
40  protected:
41  };
42  }
43 }
44 
45 #endif
46 
47 
48 
49 
50 
virtual std::string getName(HcalDetId const &) const
Definition: Mapper.h:34
virtual std::string getName(HcalTrigTowerDetId const &) const
Definition: Mapper.h:37
virtual std::string getName(HcalElectronicsId const &) const
Definition: Mapper.h:35
virtual uint32_t getHash(HcalTrigTowerDetId const &) const
Definition: Mapper.h:32
virtual uint32_t getHash(HcalElectronicsId const &) const
Definition: Mapper.h:31
virtual uint32_t getHash(HcalDetId const &) const
Definition: Mapper.h:30
virtual ~Mapper()
Definition: Mapper.h:28
Readout chain identification for Hcal.