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 <sstream>
16 #include <string>
17 #include <vector>
18 
19 namespace hcaldqm {
20  namespace mapper {
21  class Mapper {
22  public:
23  Mapper() {}
24  virtual ~Mapper() {}
25 
26  virtual uint32_t getHash(HcalDetId const &) const { return 0; }
27  virtual uint32_t getHash(HcalElectronicsId const &) const { return 0; }
28  virtual uint32_t getHash(HcalTrigTowerDetId const &) const { return 0; }
29  virtual uint32_t getHash(HcalTrigTowerDetId const &, HcalElectronicsId const &) const { return 0; }
30 
31  virtual std::string getName(HcalDetId const &) const { return ""; }
32  virtual std::string getName(HcalElectronicsId const &) const { return ""; }
33  virtual std::string getName(HcalTrigTowerDetId const &) const { return ""; }
34  virtual std::string getName(HcalTrigTowerDetId const &, HcalElectronicsId const &) const { return ""; }
35 
36  protected:
37  };
38  } // namespace mapper
39 } // namespace hcaldqm
40 
41 #endif
virtual uint32_t getHash(HcalElectronicsId const &) const
Definition: Mapper.h:27
virtual std::string getName(HcalTrigTowerDetId const &) const
Definition: Mapper.h:33
virtual std::string getName(HcalTrigTowerDetId const &, HcalElectronicsId const &) const
Definition: Mapper.h:34
virtual std::string getName(HcalDetId const &) const
Definition: Mapper.h:31
virtual uint32_t getHash(HcalTrigTowerDetId const &, HcalElectronicsId const &) const
Definition: Mapper.h:29
virtual std::string getName(HcalElectronicsId const &) const
Definition: Mapper.h:32
virtual ~Mapper()
Definition: Mapper.h:24
Readout chain identification for Hcal.
virtual uint32_t getHash(HcalDetId const &) const
Definition: Mapper.h:26
virtual uint32_t getHash(HcalTrigTowerDetId const &) const
Definition: Mapper.h:28