CMS 3D CMS Logo

HashFunctions.h
Go to the documentation of this file.
1 #ifndef HashFunctions_h
2 #define HashFunctions_h
3 
14 
15 namespace hcaldqm {
16  namespace hashfunctions {
20  uint32_t hash_Subdet(HcalDetId const &);
21  uint32_t hash_Subdetiphi(HcalDetId const &);
22  uint32_t hash_Subdetieta(HcalDetId const &);
23  uint32_t hash_Subdetdepth(HcalDetId const &);
24  uint32_t hash_SubdetPM(HcalDetId const &);
25  uint32_t hash_SubdetPMiphi(HcalDetId const &);
26  uint32_t hash_iphi(HcalDetId const &);
27  uint32_t hash_ieta(HcalDetId const &);
28  uint32_t hash_depth(HcalDetId const &);
29  uint32_t hash_HFPMiphi(HcalDetId const &);
30  uint32_t hash_HBHEPartition(HcalDetId const &);
31  uint32_t hash_DChannel(HcalDetId const &);
32 
36  uint32_t hash_FED(HcalElectronicsId const &);
37  uint32_t hash_FEDSpigot(HcalElectronicsId const &);
38  uint32_t hash_FEDSlot(HcalElectronicsId const &);
39  uint32_t hash_Crate(HcalElectronicsId const &);
40  uint32_t hash_CrateSpigot(HcalElectronicsId const &);
41  uint32_t hash_CrateSlot(HcalElectronicsId const &);
42  uint32_t hash_Fiber(HcalElectronicsId const &);
43  uint32_t hash_FiberFiberCh(HcalElectronicsId const &);
44  uint32_t hash_FiberCh(HcalElectronicsId const &);
45  uint32_t hash_Electronics(HcalElectronicsId const &);
46  uint32_t hash_EChannel(HcalElectronicsId const &);
47 
51  uint32_t hash_TTSubdet(HcalTrigTowerDetId const &);
52  uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &);
53  uint32_t hash_TTSubdetPMiphi(HcalTrigTowerDetId const &);
54  uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &);
55  uint32_t hash_TTdepth(HcalTrigTowerDetId const &);
56  uint32_t hash_TChannel(HcalTrigTowerDetId const &);
57 
70 
71  uint32_t hash_Subdet(std::string const &);
72  uint32_t hash_Subdetiphi(std::string const &);
73  uint32_t hash_Subdetieta(std::string const &);
74  uint32_t hash_Subdetdepth(std::string const &);
75  uint32_t hash_SubdetPM(std::string const &);
76  uint32_t hash_SubdetPMiphi(std::string const &);
77  uint32_t hash_iphi(std::string const &);
78  uint32_t hash_ieta(std::string const &);
79  uint32_t hash_depth(std::string const &);
80  uint32_t hash_HFPMiphi(std::string const &);
81  uint32_t hash_HBHEPartition(std::string const &);
82  uint32_t hash_DChannel(std::string const &);
83 
95 
96  uint32_t hash_FED(std::string const &);
97  uint32_t hash_FEDSpigot(std::string const &);
98  uint32_t hash_FEDSlot(std::string const &);
99  uint32_t hash_Crate(std::string const &);
100  uint32_t hash_CrateSpigot(std::string const &);
101  uint32_t hash_CrateSlot(std::string const &);
102  uint32_t hash_Fiber(std::string const &);
103  uint32_t hash_FiberFiberCh(std::string const &);
104  uint32_t hash_FiberCh(std::string const &);
105  uint32_t hash_Electronics(std::string const &);
106  uint32_t hash_EChannel(std::string const &);
107 
114 
115  uint32_t hash_TTSubdet(std::string const &);
116  uint32_t hash_TTSubdetPM(std::string const &);
117  uint32_t hash_TTSubdetPMiphi(std::string const &);
118  uint32_t hash_TTSubdetieta(std::string const &);
119  uint32_t hash_TTdepth(std::string const &);
120  uint32_t hash_TChannel(std::string const &);
121 
122  enum HashType {
123  fSubdet = 0,
129  fiphi = 6,
130  fieta = 7,
131  fdepth = 8,
134  fDChannel = 11,
136  fFED = 13,
138  fFEDSlot = 15,
139  fCrate = 16,
142  fFiber = 19,
144  fFiberCh = 21,
146  fEChannel = 23,
148  fTTSubdet = 25,
152  fTTdepth = 29,
153  fTChannel = 30,
156  };
157  typedef uint32_t (*hash_function_did)(HcalDetId const &);
158  typedef uint32_t (*hash_function_eid)(HcalElectronicsId const &);
159  typedef uint32_t (*hash_function_tid)(HcalTrigTowerDetId const &);
169  hash_iphi,
170  hash_ieta,
171  hash_depth,
174  hash_DChannel};
177  hash_FEDSlot,
178  hash_Crate,
181  hash_Fiber,
183  hash_FiberCh,
185  hash_EChannel};
194  name_iphi,
195  name_ieta,
196  name_depth,
199  name_DChannel};
202  name_FEDSlot,
203  name_Crate,
206  name_Fiber,
208  name_FiberCh,
210  name_EChannel};
215  "Subdet", "Subdetiphi", "Subdetieta", "Subdetdepth", "SubdetPM", "SubdetPMiphi",
216  "iphi", "ieta", "depth", "HFPMiphi", "HBHEPartition", "DChannel",
217 
218  "FED", "FEDSpigot", "FEDSlot", "Crate", "CrateSpigot", "CrateSlot",
219  "Fiber", "FiberFiberCh", "FiberCh", "Electronics", "EChannel",
220 
221  "TTSubdet", "TTSubdetPM", "TTSubdetPMiphi", "TTSubdetieta", "TTdepth", "TChannel"};
222  } // namespace hashfunctions
223 } // namespace hcaldqm
224 
225 #endif
hcaldqm::hashfunctions::hash_Crate
uint32_t hash_Crate(HcalElectronicsId const &)
Definition: HashFunctions.cc:268
hcaldqm::hashfunctions::fHFPMiphi
Definition: HashFunctions.h:132
hcaldqm::hashfunctions::hash_TTSubdet
uint32_t hash_TTSubdet(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:469
hcaldqm::hashfunctions::fSubdetdepth
Definition: HashFunctions.h:126
hcaldqm::hashfunctions::hash_Electronics
uint32_t hash_Electronics(HcalElectronicsId const &)
Definition: HashFunctions.cc:301
hcaldqm::hashfunctions::name_TTdepth
std::string name_TTdepth(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:550
hcaldqm::hashfunctions::fieta
Definition: HashFunctions.h:130
hcaldqm::hashfunctions::fSubdetieta
Definition: HashFunctions.h:125
hcaldqm::hashfunctions::hash_DChannel
uint32_t hash_DChannel(HcalDetId const &)
Definition: HashFunctions.cc:60
hcaldqm::hashfunctions::nHashType_did
Definition: HashFunctions.h:135
hcaldqm::hashfunctions::hash_FiberFiberCh
uint32_t hash_FiberFiberCh(HcalElectronicsId const &)
Definition: HashFunctions.cc:297
hcaldqm::hashfunctions::fEChannel
Definition: HashFunctions.h:146
hcaldqm::hashfunctions::name_Electronics
std::string name_Electronics(HcalElectronicsId const &)
Definition: HashFunctions.cc:441
hcaldqm::hashfunctions::hash_FED
uint32_t hash_FED(HcalElectronicsId const &)
Definition: HashFunctions.cc:242
hcaldqm::hashfunctions::fTTdepth
Definition: HashFunctions.h:152
hcaldqm::hashfunctions::HashType
HashType
Definition: HashFunctions.h:122
hcaldqm::hashfunctions::fElectronics
Definition: HashFunctions.h:145
hcaldqm::hashfunctions::name_Subdet
std::string name_Subdet(HcalDetId const &)
Definition: HashFunctions.cc:62
hcaldqm::hashfunctions::nHashType
Definition: HashFunctions.h:155
hcaldqm
Definition: Constants.h:8
hcaldqm::hashfunctions::name_TTSubdet
std::string name_TTSubdet(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:493
hcaldqm::hashfunctions::fSubdetPM
Definition: HashFunctions.h:127
hcaldqm::hashfunctions::nhashes
const int nhashes
Definition: HashFunctions.h:213
hcaldqm::hashfunctions::name_TChannel
std::string name_TChannel(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:561
hcaldqm::hashfunctions::name_Crate
std::string name_Crate(HcalElectronicsId const &)
Definition: HashFunctions.cc:391
hcaldqm::hashfunctions::hash_function_eid
uint32_t(* hash_function_eid)(HcalElectronicsId const &)
Definition: HashFunctions.h:158
hcaldqm::hashfunctions::fSubdetiphi
Definition: HashFunctions.h:124
hcaldqm::hashfunctions::fiphi
Definition: HashFunctions.h:129
hcaldqm::hashfunctions::hash_SubdetPMiphi
uint32_t hash_SubdetPMiphi(HcalDetId const &)
Definition: HashFunctions.cc:28
hcaldqm::hashfunctions::fFED
Definition: HashFunctions.h:136
hcaldqm::hashfunctions::fCrateSpigot
Definition: HashFunctions.h:140
hcaldqm::hashfunctions::hash_Fiber
uint32_t hash_Fiber(HcalElectronicsId const &)
Definition: HashFunctions.cc:295
hcaldqm::hashfunctions::name_FiberFiberCh
std::string name_FiberFiberCh(HcalElectronicsId const &)
Definition: HashFunctions.cc:431
hcaldqm::hashfunctions::hash_names
const std::string hash_names[nhashes]
Definition: HashFunctions.h:214
hcaldqm::hashfunctions::hash_Subdetiphi
uint32_t hash_Subdetiphi(HcalDetId const &)
Definition: HashFunctions.cc:12
hcaldqm::hashfunctions::fdepth
Definition: HashFunctions.h:131
hcaldqm::hashfunctions::hash_eid
const hash_function_eid hash_eid[nHashType_eid - nHashType_did - 1]
Definition: HashFunctions.h:175
hcaldqm::hashfunctions::name_function_eid
std::string(* name_function_eid)(HcalElectronicsId const &)
Definition: HashFunctions.h:161
HcalCommonHeaders.h
hcaldqm::hashfunctions::fFEDSlot
Definition: HashFunctions.h:138
hcaldqm::hashfunctions::name_Subdetiphi
std::string name_Subdetiphi(HcalDetId const &)
Definition: HashFunctions.cc:86
hcaldqm::hashfunctions::hash_Subdetieta
uint32_t hash_Subdetieta(HcalDetId const &)
Definition: HashFunctions.cc:16
hcaldqm::hashfunctions::fCrateSlot
Definition: HashFunctions.h:141
hcaldqm::hashfunctions::fSubdetPMiphi
Definition: HashFunctions.h:128
hcaldqm::hashfunctions::name_TTSubdetieta
std::string name_TTSubdetieta(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:545
hcaldqm::hashfunctions::hash_TChannel
uint32_t hash_TChannel(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:489
hcaldqm::hashfunctions::name_function_did
std::string(* name_function_did)(HcalDetId const &)
Definition: HashFunctions.h:160
hcaldqm::hashfunctions::hash_FEDSpigot
uint32_t hash_FEDSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:254
hcaldqm::hashfunctions::hash_TTSubdetieta
uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:483
hcaldqm::hashfunctions::hash_TTSubdetPMiphi
uint32_t hash_TTSubdetPMiphi(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:478
hcaldqm::hashfunctions::fCrate
Definition: HashFunctions.h:139
hcaldqm::hashfunctions::hash_Subdet
uint32_t hash_Subdet(HcalDetId const &)
Definition: HashFunctions.cc:10
hcaldqm::hashfunctions::fFiber
Definition: HashFunctions.h:142
hcaldqm::hashfunctions::fTTSubdetieta
Definition: HashFunctions.h:151
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
hcaldqm::hashfunctions::name_EChannel
std::string name_EChannel(HcalElectronicsId const &)
Definition: HashFunctions.cc:454
hcaldqm::hashfunctions::hash_FiberCh
uint32_t hash_FiberCh(HcalElectronicsId const &)
Definition: HashFunctions.cc:299
hcaldqm::hashfunctions::name_HFPMiphi
std::string name_HFPMiphi(HcalDetId const &)
Definition: HashFunctions.cc:192
hcaldqm::hashfunctions::hash_function_tid
uint32_t(* hash_function_tid)(HcalTrigTowerDetId const &)
Definition: HashFunctions.h:159
hcaldqm::hashfunctions::fSubdet
Definition: HashFunctions.h:123
hcaldqm::hashfunctions::hash_did
const hash_function_did hash_did[nHashType_did]
Definition: HashFunctions.h:163
hcaldqm::hashfunctions::nHashType_tid
Definition: HashFunctions.h:154
hcaldqm::hashfunctions::name_FEDSpigot
std::string name_FEDSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:347
Constants.h
hcaldqm::hashfunctions::hash_TTSubdetPM
uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:473
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hcaldqm::hashfunctions::name_SubdetPM
std::string name_SubdetPM(HcalDetId const &)
Definition: HashFunctions.cc:72
hcaldqm::hashfunctions::hash_CrateSpigot
uint32_t hash_CrateSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:279
hcaldqm::hashfunctions::fTTSubdet
Definition: HashFunctions.h:148
hcaldqm::hashfunctions::name_DChannel
std::string name_DChannel(HcalDetId const &)
Definition: HashFunctions.cc:228
hcaldqm::hashfunctions::fTTSubdetPMiphi
Definition: HashFunctions.h:150
hcaldqm::hashfunctions::fDChannel
Definition: HashFunctions.h:134
hcaldqm::hashfunctions::name_tid
const name_function_tid name_tid[nHashType_tid - nHashType_eid - 1]
Definition: HashFunctions.h:211
hcaldqm::hashfunctions::hash_tid
const hash_function_tid hash_tid[nHashType_tid - nHashType_eid - 1]
Definition: HashFunctions.h:186
HcalDetId
Definition: HcalDetId.h:12
hcaldqm::hashfunctions::hash_CrateSlot
uint32_t hash_CrateSlot(HcalElectronicsId const &)
Definition: HashFunctions.cc:288
hcaldqm::hashfunctions::hash_depth
uint32_t hash_depth(HcalDetId const &)
Definition: HashFunctions.cc:36
hcaldqm::hashfunctions::hash_FEDSlot
uint32_t hash_FEDSlot(HcalElectronicsId const &)
Definition: HashFunctions.cc:261
hcaldqm::hashfunctions::name_HBHEPartition
std::string name_HBHEPartition(HcalDetId const &)
Definition: HashFunctions.cc:204
hcaldqm::hashfunctions::hash_ieta
uint32_t hash_ieta(HcalDetId const &)
Definition: HashFunctions.cc:34
hcaldqm::hashfunctions::name_function_tid
std::string(* name_function_tid)(HcalTrigTowerDetId const &)
Definition: HashFunctions.h:162
hcaldqm::hashfunctions::fTTSubdetPM
Definition: HashFunctions.h:149
hcaldqm::hashfunctions::name_depth
std::string name_depth(HcalDetId const &)
Definition: HashFunctions.cc:175
hcaldqm::hashfunctions::name_SubdetPMiphi
std::string name_SubdetPMiphi(HcalDetId const &)
Definition: HashFunctions.cc:136
hcaldqm::hashfunctions::fFiberCh
Definition: HashFunctions.h:144
hcaldqm::hashfunctions::nHashType_eid
Definition: HashFunctions.h:147
hcaldqm::hashfunctions::fHBHEPartition
Definition: HashFunctions.h:133
hcaldqm::hashfunctions::hash_TTdepth
uint32_t hash_TTdepth(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:485
hcaldqm::hashfunctions::name_FED
std::string name_FED(HcalElectronicsId const &)
Definition: HashFunctions.cc:330
hcaldqm::hashfunctions::name_TTSubdetPM
std::string name_TTSubdetPM(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:506
hcaldqm::hashfunctions::name_iphi
std::string name_iphi(HcalDetId const &)
Definition: HashFunctions.cc:153
hcaldqm::hashfunctions::name_TTSubdetPMiphi
std::string name_TTSubdetPMiphi(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:523
hcaldqm::hashfunctions::hash_HBHEPartition
uint32_t hash_HBHEPartition(HcalDetId const &)
Definition: HashFunctions.cc:47
hcaldqm::hashfunctions::name_Subdetdepth
std::string name_Subdetdepth(HcalDetId const &)
Definition: HashFunctions.cc:120
hcaldqm::hashfunctions::fTChannel
Definition: HashFunctions.h:153
hcaldqm::hashfunctions::hash_HFPMiphi
uint32_t hash_HFPMiphi(HcalDetId const &)
Definition: HashFunctions.cc:43
hcaldqm::hashfunctions::fFiberFiberCh
Definition: HashFunctions.h:143
hcaldqm::hashfunctions::name_did
const name_function_did name_did[nHashType_did]
Definition: HashFunctions.h:188
hcaldqm::hashfunctions::hash_EChannel
uint32_t hash_EChannel(HcalElectronicsId const &)
Definition: HashFunctions.cc:323
hcaldqm::hashfunctions::name_Fiber
std::string name_Fiber(HcalElectronicsId const &)
Definition: HashFunctions.cc:426
hcaldqm::hashfunctions::name_FEDSlot
std::string name_FEDSlot(HcalElectronicsId const &)
Definition: HashFunctions.cc:369
hcaldqm::hashfunctions::name_CrateSpigot
std::string name_CrateSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:408
hcaldqm::hashfunctions::hash_function_did
uint32_t(* hash_function_did)(HcalDetId const &)
Definition: HashFunctions.h:157
hcaldqm::hashfunctions::hash_Subdetdepth
uint32_t hash_Subdetdepth(HcalDetId const &)
Definition: HashFunctions.cc:20
hcaldqm::hashfunctions::name_FiberCh
std::string name_FiberCh(HcalElectronicsId const &)
Definition: HashFunctions.cc:436
hcaldqm::hashfunctions::name_eid
const name_function_eid name_eid[nHashType_eid - nHashType_did - 1]
Definition: HashFunctions.h:200
hcaldqm::hashfunctions::name_CrateSlot
std::string name_CrateSlot(HcalElectronicsId const &)
Definition: HashFunctions.cc:417
hcaldqm::hashfunctions::name_ieta
std::string name_ieta(HcalDetId const &)
Definition: HashFunctions.cc:164
hcaldqm::hashfunctions::fFEDSpigot
Definition: HashFunctions.h:137
hcaldqm::hashfunctions::hash_SubdetPM
uint32_t hash_SubdetPM(HcalDetId const &)
Definition: HashFunctions.cc:24
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14
hcaldqm::hashfunctions::hash_iphi
uint32_t hash_iphi(HcalDetId const &)
Definition: HashFunctions.cc:32
hcaldqm::hashfunctions::name_Subdetieta
std::string name_Subdetieta(HcalDetId const &)
Definition: HashFunctions.cc:103