CMS 3D CMS Logo

HashFunctions.cc
Go to the documentation of this file.
3 
4 namespace hcaldqm {
5  using namespace constants;
6  namespace hashfunctions {
10  uint32_t hash_Subdet(HcalDetId const &did) { return utilities::hash(HcalDetId(did.subdet(), 1, 1, 1)); }
11 
12  uint32_t hash_Subdetiphi(HcalDetId const &did) {
13  return utilities::hash(HcalDetId(did.subdet(), 1, did.iphi(), 1));
14  }
15 
16  uint32_t hash_Subdetieta(HcalDetId const &did) {
17  return utilities::hash(HcalDetId(did.subdet(), did.ieta(), 1, 1));
18  }
19 
20  uint32_t hash_Subdetdepth(HcalDetId const &did) {
21  return utilities::hash(HcalDetId(did.subdet(), 1, 1, did.depth()));
22  }
23 
24  uint32_t hash_SubdetPM(HcalDetId const &did) {
25  return utilities::hash(HcalDetId(did.subdet(), did.ieta() > 0 ? 1 : -1, 1, 1));
26  }
27 
28  uint32_t hash_SubdetPMiphi(HcalDetId const &did) {
29  return utilities::hash(HcalDetId(did.subdet(), did.ieta() > 0 ? 1 : -1, did.iphi(), 1));
30  }
31 
32  uint32_t hash_iphi(HcalDetId const &did) { return utilities::hash(HcalDetId(HcalBarrel, 1, did.iphi(), 1)); }
33 
34  uint32_t hash_ieta(HcalDetId const &did) { return utilities::hash(HcalDetId(HcalBarrel, did.ieta(), 1, 1)); }
35 
36  uint32_t hash_depth(HcalDetId const &did) {
37  if (did.subdet() == HcalOuter)
38  return 9; // key of map, can be any uint32_t valure that is not a raw hcal detid
39  else
40  return utilities::hash(HcalDetId(HcalBarrel, 1, 1, did.depth()));
41  }
42 
43  uint32_t hash_HFPMiphi(HcalDetId const &did) {
44  return utilities::hash(HcalDetId(HcalForward, did.ieta() > 0 ? 1 : -1, did.iphi(), 1));
45  }
46 
47  uint32_t hash_HBHEPartition(HcalDetId const &did) {
48  int iphi = did.iphi();
49  uint32_t hash = 0;
50  if (iphi >= 3 && iphi <= 26)
52  else if (iphi >= 27 && iphi <= 50)
54  else
56 
57  return hash;
58  }
59 
60  uint32_t hash_DChannel(HcalDetId const &did) { return utilities::hash(did); }
61 
62  std::string name_Subdet(HcalDetId const &did) { return constants::SUBDET_NAME[did.subdet() - 1]; }
63 
64  uint32_t hash_Subdet(std::string const &name) {
65  for (int i = 0; i < constants::SUBDET_NUM; i++)
67  return (HcalDetId((HcalSubdetector)(i + 1), 1, 1, 1).rawId());
68 
69  return HcalDetId().rawId();
70  }
71 
73  char name[10];
74  sprintf(name, "%s%s", constants::SUBDET_NAME[did.subdet() - 1].c_str(), did.ieta() > 0 ? "P" : "M");
75  return std::string(name);
76  }
77 
78  uint32_t hash_SubdetPM(std::string const &name) {
79  for (int i = 0; i < constants::SUBDET_NUM * 2; i++)
81  return HcalDetId((HcalSubdetector)(i / 2 + 1), i % 2 == 0 ? -1 : 1, 1, 1).rawId();
82 
83  return HcalDetId().rawId();
84  }
85 
87  char name[10];
88  sprintf(name, "%siphi%d", constants::SUBDET_NAME[did.subdet() - 1].c_str(), did.iphi());
89  return std::string(name);
90  }
91 
92  uint32_t hash_Subdetiphi(std::string const &name) {
93  std::string sub = name.substr(0, 2);
94  int iphi = std::stoi(name.substr(6, name.length() - 6), nullptr);
95  for (int i = 0; i < constants::SUBDET_NUM; i++)
96  if (constants::SUBDET_NAME[i] == sub)
97  return HcalDetId((HcalSubdetector)(i + 1), 1, iphi, 1).rawId();
98 
99  // default
100  return HcalDetId().rawId();
101  }
102 
104  char name[20];
105  sprintf(name, "%sieta%d", constants::SUBDET_NAME[did.subdet() - 1].c_str(), did.ieta());
106  return std::string(name);
107  }
108 
109  uint32_t hash_Subdetieta(std::string const &name) {
110  std::string sub = name.substr(0, 2);
111  int ieta = std::stoi(name.substr(6, name.length() - 6), nullptr);
112  for (int i = 0; i < constants::SUBDET_NUM; i++)
113  if (constants::SUBDET_NAME[i] == sub)
114  return HcalDetId((HcalSubdetector)(i + 1), ieta, 1, 1).rawId();
115 
116  // default
117  return HcalDetId().rawId();
118  }
119 
121  char name[20];
122  sprintf(name, "%sdepth%d", constants::SUBDET_NAME[did.subdet() - 1].c_str(), did.depth());
123  return std::string(name);
124  }
125 
126  uint32_t hash_Subdetdepth(std::string const &name) {
127  std::string sub = name.substr(0, 2);
128  int depth = std::stoi(name.substr(7, name.length() - 7), nullptr);
129  for (int i = 0; i < constants::SUBDET_NUM; i++)
130  if (constants::SUBDET_NAME[i] == sub)
131  return HcalDetId((HcalSubdetector)(i + 1), 1, 1, depth).rawId();
132 
133  return HcalDetId().rawId();
134  }
135 
137  char name[20];
138  sprintf(
139  name, "%s%siphi%d", constants::SUBDET_NAME[did.subdet() - 1].c_str(), did.ieta() > 0 ? "P" : "M", did.iphi());
140  return std::string(name);
141  }
142 
143  uint32_t hash_SubdetPMiphi(std::string const &name) {
144  std::string sub = name.substr(0, 3);
145  int iphi = std::stoi(name.substr(7, name.length() - 7), nullptr);
146  for (int i = 0; i < constants::SUBDET_NUM * 2; i++)
147  if (constants::SUBDETPM_NAME[i] == sub)
148  return HcalDetId((HcalSubdetector)(i / 2 + 1), i % 2 == 0 ? -1 : 1, iphi, 1).rawId();
149 
150  return HcalDetId().rawId();
151  }
152 
154  char name[10];
155  sprintf(name, "iphi%d", did.iphi());
156  return std::string(name);
157  }
158 
159  uint32_t hash_iphi(std::string const &name) {
160  int iphi = std::stoi(name.substr(4, name.length() - 4), nullptr);
161  return HcalDetId(HcalBarrel, 1, iphi, 1).rawId();
162  }
163 
165  char name[10];
166  sprintf(name, "ieta%d", did.ieta());
167  return std::string(name);
168  }
169 
170  uint32_t hash_ieta(std::string const &name) {
171  int ieta = std::stoi(name.substr(4, name.length() - 4), nullptr);
172  return HcalDetId(HcalBarrel, ieta, 1, 1).rawId();
173  }
174 
176  char name[10];
177  if (did.subdet() == HcalOuter)
178  sprintf(name, "depthHO");
179  else
180  sprintf(name, "depth%d", did.depth());
181  return std::string(name);
182  }
183 
184  uint32_t hash_depth(std::string const &name) {
185  int depth = std::stoi(name.substr(5, name.length() - 5), nullptr);
186  if (name.find("HO") != std::string::npos)
187  return 9; // must match the value in method hash_depth(& digi)
188  else
189  return HcalDetId(HcalBarrel, 1, 1, depth).rawId();
190  }
191 
193  char name[12];
194  snprintf(name, sizeof(name), "HF%ciphi%d", did.ieta() > 0 ? 'P' : 'M', did.iphi());
195  return std::string(name);
196  }
197 
198  uint32_t hash_HFPMiphi(std::string const &name) {
199  int iphi = std::stoi(name.substr(7, name.length() - 7), nullptr);
200  int ieta = name[2] == 'P' ? 1 : -1;
201  return HcalDetId(HcalForward, ieta, iphi, 1).rawId();
202  }
203 
205  char c;
206  if (did.iphi() >= 3 && did.iphi() <= 26)
207  c = 'a';
208  else if (did.iphi() >= 27 && did.iphi() <= 50)
209  c = 'b';
210  else
211  c = 'c';
212  char name[10];
213  sprintf(name, "HBHE%c", c);
214  return std::string(name);
215  }
216 
218  if (name[4] == 'a')
219  return HcalDetId(HcalBarrel, 1, 5, 1).rawId();
220  else if (name[4] == 'b')
221  return HcalDetId(HcalBarrel, 1, 29, 1).rawId();
222  else
223  return HcalDetId(HcalBarrel, 1, 55, 1).rawId();
224 
225  return HcalDetId().rawId();
226  }
227 
229  char name[40];
230  sprintf(
231  name, "%s-%d-%d-%d", constants::SUBDET_NAME[did.subdet() - 1].c_str(), did.ieta(), did.iphi(), did.depth());
232  return std::string(name);
233  }
234 
235  // TODO: Make it work here
236  // Not neccessary right now!
237  uint32_t hash_DChannel(std::string const &name) { return HcalDetId(HcalBarrel, 1, 1, 1).rawId(); }
238 
242  uint32_t hash_FED(HcalElectronicsId const &eid) {
243  if (eid.isVMEid())
245  else {
246  // tmp - we need to hash HF's FEDs with slot in mind
247  // bool isHF = eid.crateId()==22 || eid.crateId()==29 || eid.crateId()==32;
248  // for HF, slot number is either
249  int slotToUse = eid.slot() > 6 ? SLOT_uTCA_MIN + 6 : SLOT_uTCA_MIN;
250  return utilities::hash(HcalElectronicsId(eid.crateId(), slotToUse, FIBER_uTCA_MIN1, FIBERCH_MIN, false));
251  }
252  }
253 
255  // note that hashing of uTCA is done by FED-Slot...
256  return eid.isVMEid()
258  : utilities::hash(HcalElectronicsId(eid.crateId(), eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
259  }
260 
261  uint32_t hash_FEDSlot(HcalElectronicsId const &eid) {
262  // note that hashing of VME is done with
263  return eid.isVMEid()
265  : utilities::hash(HcalElectronicsId(eid.crateId(), eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
266  }
267 
268  uint32_t hash_Crate(HcalElectronicsId const &eid) {
269  // note hashing of VME is done with dccId
270  // note 2: there are two dccids per crate, <even> and <even+1>. We don't
271  // care about this, so use the even one.
272  return eid.isVMEid()
274  FIBERCH_MIN, FIBER_VME_MIN, SPIGOT_MIN, (eid.dccid() % 2 == 0 ? eid.dccid() : eid.dccid() - 1)))
275  : utilities::hash(
277  }
278 
280  // note hashing of VME is done with dccid and
281  // uTCA with Slots
282  return eid.isVMEid()
284  FIBERCH_MIN, FIBER_VME_MIN, eid.spigot(), (eid.dccid() % 2 == 0 ? eid.dccid() : eid.dccid() - 1)))
285  : utilities::hash(HcalElectronicsId(eid.crateId(), eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
286  }
287 
289  return eid.isVMEid()
291  FIBERCH_MIN, FIBER_VME_MIN, eid.spigot(), (eid.dccid() % 2 == 0 ? eid.dccid() : eid.dccid() - 1)))
292  : utilities::hash(HcalElectronicsId(eid.crateId(), eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
293  }
294 
295  uint32_t hash_Fiber(HcalElectronicsId const &) { return 0; }
296 
297  uint32_t hash_FiberFiberCh(HcalElectronicsId const &) { return 0; }
298 
299  uint32_t hash_FiberCh(HcalElectronicsId const &eid) { return 0; }
300 
303  : utilities::hash(
305  /* NOTE: as an update - should separate Trigger Eid and Det
306  Eid * return eid.isVMEid() ? eid.isTriggerChainId()?
307  utilities::hash(HcalElectronicsId(SLBCH_MIN,
308  SLB_MIN, SPIGOT_MIN,
309  CRATE_VME_MIN, CRATE_VME_MIN, SLOT_VME_MIN1, 0)):
310  utilities::hash(HcalElectronicsId(FIBERCH_MIN,
311  FIBER_VME_MIN, SPIGOT_MIN,
312  CRATE_VME_MIN))
313  :
314  eid.isTriggerChainId()?
315  utilities::hash(HcalElectronicsId(CRATE_uTCA_MIN,
316  SLOT_uTCA_MIN, TPFIBER_MIN,
317  TPFIBERCH_MIN, true)): utilities::hash(HcalElectronicsId(CRATE_uTCA_MIN,
318  SLOT_uTCA_MIN, FIBER_uTCA_MIN1,
319  FIBERCH_MIN, false));
320  */
321  }
322 
324  return eid.isVMEid()
325  ? utilities::hash(HcalElectronicsId(eid.fiberChanId(), eid.fiberIndex(), eid.spigot(), eid.dccid()))
326  : utilities::hash(
327  HcalElectronicsId(eid.crateId(), eid.slot(), eid.fiberIndex(), eid.fiberChanId(), false));
328  }
329 
331  char name[10];
332  sprintf(name, "FED%d", eid.isVMEid() ? eid.dccid() + 700 : utilities::crate2fed(eid.crateId(), eid.slot()));
333  return std::string(name);
334  }
335 
336  uint32_t hash_FED(std::string const &name) {
337  int fed = std::stoi(name.substr(3, name.length() - 3), nullptr);
338  if (fed >= constants::FED_uTCA_MIN) {
339  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(fed);
340  return HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
341  } else
343 
344  return HcalElectronicsId().rawId();
345  }
346 
348  char name[20];
349  sprintf(name,
350  "FED%dS%d",
351  eid.isVMEid() ? eid.dccid() + 700 : utilities::crate2fed(eid.crateId(), eid.slot()),
352  eid.isVMEid() ? eid.spigot() : eid.slot());
353  return std::string(name);
354  }
355 
356  uint32_t hash_FEDSpigot(std::string const &name) {
357  int pos = name.find("S");
358  int fed = std::stoi(name.substr(3, pos - 3), nullptr);
359  int s = std::stoi(name.substr(pos + 1, name.length() - pos - 1), nullptr);
360  if (fed >= FED_uTCA_MIN) {
361  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(fed);
362  return HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
363  } else
365 
366  return HcalElectronicsId().rawId();
367  }
368 
370  char name[20];
371  sprintf(name,
372  "FED%dS%d",
373  eid.isVMEid() ? eid.dccid() + 700 : utilities::crate2fed(eid.crateId(), eid.slot()),
374  eid.isVMEid() ? eid.spigot() : eid.slot());
375  return std::string(name);
376  }
377 
378  uint32_t hash_FEDSlot(std::string const &name) {
379  int pos = name.find("S");
380  int fed = std::stoi(name.substr(3, pos - 3), nullptr);
381  int s = std::stoi(name.substr(pos + 1, name.length() - pos - 1), nullptr);
382  if (fed >= FED_uTCA_MIN) {
383  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(fed);
384  return HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
385  } else
387 
388  return HcalElectronicsId().rawId();
389  }
390 
392  char name[16];
393  sprintf(name, "Crate%d", eid.crateId());
394 
395  // Note: previous, different hashes were returned for the two dccids in a VME
396  // crate. These now count as one crate.
397  // if (eid.isVMEid()) {
398  // sprintf(name, "Crate%d_VME_DCC%d", eid.crateId(), eid.dccid());
399  //} else {
400  // sprintf(name, "Crate%d", eid.crateId());
401  //}
402  return std::string(name);
403  }
404 
405  // TODO: implement - not used at this point
406  uint32_t hash_Crate(std::string const &) { return HcalElectronicsId().rawId(); }
407 
409  char name[20];
410  sprintf(name, "Crate%dS%d", eid.crateId(), eid.isVMEid() ? eid.spigot() : eid.slot());
411  return std::string(name);
412  }
413 
414  // TODO: implement - not used at this point
415  uint32_t hash_CrateSpigot(std::string const &) { return HcalElectronicsId().rawId(); }
416 
418  char name[20];
419  sprintf(name, "Crate%dS%d", eid.crateId(), eid.isVMEid() ? eid.spigot() : eid.slot());
420  return std::string(name);
421  }
422 
423  // TODO: implement - not used at this point
424  uint32_t hash_CrateSlot(std::string const &) { return HcalElectronicsId().rawId(); }
425 
426  std::string name_Fiber(HcalElectronicsId const &) { return "None"; }
427 
428  // TODO: implement - not used at this point
429  uint32_t hash_Fiber(std::string const &) { return HcalElectronicsId().rawId(); }
430 
431  std::string name_FiberFiberCh(HcalElectronicsId const &) { return "None"; }
432 
433  // TODO: implement - not used at this point
434  uint32_t hash_FiberFiberCh(std::string const &) { return HcalElectronicsId().rawId(); }
435 
436  std::string name_FiberCh(HcalElectronicsId const &) { return "None"; }
437 
438  // TODO: implement - not used at this point
439  uint32_t hash_FiberCh(std::string const &) { return HcalElectronicsId().rawId(); }
440 
442  return eid.isVMEid() ? std::string("VME") : std::string("uTCA");
443  }
444 
445  uint32_t hash_Electronics(std::string const &name) {
446  if (name == "VME")
448  else
450 
451  return HcalElectronicsId().rawId();
452  }
453 
455  char name[20];
456  if (eid.isVMEid())
457  sprintf(name, "%d-%d-%d-%d", eid.dccid(), eid.spigot(), eid.fiberIndex(), eid.fiberChanId());
458  else
459  sprintf(name, "%d-%d-%d-%d", eid.crateId(), eid.slot(), eid.fiberIndex(), eid.fiberChanId());
460  return std::string(name);
461  }
462 
463  // TODO: implement - not used at this point
464  uint32_t hash_EChannel(std::string const &) { return HcalElectronicsId().rawId(); }
465 
469  uint32_t hash_TTSubdet(HcalTrigTowerDetId const &tid) {
470  return utilities::hash(HcalTrigTowerDetId(tid.ietaAbs() >= 29 ? 29 : 1, 1));
471  }
472 
473  uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &tid) {
474  return utilities::hash(
475  HcalTrigTowerDetId(tid.ietaAbs() < 29 ? (tid.ieta() < 0 ? -1 : 1) : (tid.ieta() < 0 ? -29 : 29), 1));
476  }
477 
479  return utilities::hash(
480  HcalTrigTowerDetId(tid.ietaAbs() < 29 ? (tid.ieta() < 0 ? 0 : 1) : (tid.ieta() < 0 ? 2 : 3), tid.iphi()));
481  }
482 
483  uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &tid) { return 0; }
484 
485  uint32_t hash_TTdepth(HcalTrigTowerDetId const &tid) {
486  return utilities::hash(HcalTrigTowerDetId(1, 1, tid.depth()));
487  }
488 
489  uint32_t hash_TChannel(HcalTrigTowerDetId const &tid) {
490  return utilities::hash(HcalTrigTowerDetId(tid.ieta(), tid.iphi(), tid.depth()));
491  }
492 
494  return constants::TPSUBDET_NAME[tid.ietaAbs() < 29 ? 0 : 1];
495  }
496 
497  uint32_t hash_TTSubdet(std::string const &name) {
498  if (name == "HBHE")
499  return HcalTrigTowerDetId(1, 1).rawId();
500  else
501  return HcalTrigTowerDetId(29, 1).rawId();
502 
503  return HcalTrigTowerDetId().rawId();
504  }
505 
507  return constants::TPSUBDETPM_NAME[tid.ietaAbs() < 29 ? (tid.ieta() < 0 ? 0 : 1) : (tid.ieta() < 0 ? 2 : 3)];
508  }
509 
510  uint32_t hash_TTSubdetPM(std::string const &name) {
511  if (name == "HBHEM")
512  return HcalTrigTowerDetId(-1, 1).rawId();
513  else if (name == "HBHEP")
514  return HcalTrigTowerDetId(1, 1).rawId();
515  else if (name == "HFM")
516  return HcalTrigTowerDetId(-29, 1).rawId();
517  else
518  return HcalTrigTowerDetId(29, 1).rawId();
519 
520  return HcalTrigTowerDetId().rawId();
521  }
522 
524  char name[10];
525  sprintf(name, "%siphi%d", name_TTSubdetPM(tid).c_str(), tid.iphi());
526  return std::string(name);
527  }
528 
530  int pos = name.find("iphi");
531  std::string sub = name.substr(0, pos);
532  int iphi = std::stoi(name.substr(pos + 4, name.length() - pos - 4), nullptr);
533  if (name == "HBHEM")
534  return HcalTrigTowerDetId(-1, iphi).rawId();
535  else if (name == "HBHEP")
536  return HcalTrigTowerDetId(1, iphi).rawId();
537  else if (name == "HFM")
538  return HcalTrigTowerDetId(-29, iphi).rawId();
539  else
540  return HcalTrigTowerDetId(29, iphi).rawId();
541 
542  return HcalTrigTowerDetId().rawId();
543  }
544 
545  std::string name_TTSubdetieta(HcalTrigTowerDetId const &tid) { return "None"; }
546 
547  // TODO: implement - not used right now
548  uint32_t hash_TTSubdetieta(std::string const &) { return HcalTrigTowerDetId().rawId(); }
549 
551  char name[10];
552  sprintf(name, "depth%d", tid.depth());
553  return std::string(name);
554  }
555 
556  uint32_t hash_TTdepth(std::string const &name) {
557  int depth = std::stoi(name.substr(5, name.length() - 5), nullptr);
558  return HcalTrigTowerDetId(1, 1, depth);
559  }
560 
562  std::ostringstream stream;
563  stream << tid;
564  return std::string(stream.str());
565  }
566 
567  // TODO: implement - not used right now
568  uint32_t hash_TChannel(std::string const &) { return HcalTrigTowerDetId().rawId(); }
569  } // namespace hashfunctions
570 } // namespace hcaldqm
hcaldqm::hashfunctions::hash_Crate
uint32_t hash_Crate(HcalElectronicsId const &)
Definition: HashFunctions.cc:268
hcaldqm::constants::FED_VME_MIN
const int FED_VME_MIN
Definition: Constants.h:80
hcaldqm::hashfunctions::hash_TTSubdet
uint32_t hash_TTSubdet(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:469
mps_fire.i
i
Definition: mps_fire.py:355
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::hash_DChannel
uint32_t hash_DChannel(HcalDetId const &)
Definition: HashFunctions.cc:60
hcaldqm::hashfunctions::hash_FiberFiberCh
uint32_t hash_FiberFiberCh(HcalElectronicsId const &)
Definition: HashFunctions.cc:297
hcaldqm::constants::SUBDETPM_NAME
const std::string SUBDETPM_NAME[2 *SUBDET_NUM]
Definition: Constants.h:165
hcaldqm::hashfunctions::name_Electronics
std::string name_Electronics(HcalElectronicsId const &)
Definition: HashFunctions.cc:441
HcalTrigTowerDetId::ieta
int ieta() const
get the tower ieta
Definition: HcalTrigTowerDetId.h:54
hcaldqm::hashfunctions::hash_FED
uint32_t hash_FED(HcalElectronicsId const &)
Definition: HashFunctions.cc:242
HcalDetId::iphi
constexpr int iphi() const
get the cell iphi
Definition: HcalDetId.h:157
cond::hash
Definition: Time.h:19
hcaldqm::hashfunctions::name_Subdet
std::string name_Subdet(HcalDetId const &)
Definition: HashFunctions.cc:62
hcaldqm
Definition: Constants.h:8
cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
pos
Definition: PixelAliasList.h:18
hcaldqm::hashfunctions::name_TTSubdet
std::string name_TTSubdet(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:493
hcaldqm::constants::SPIGOT_MIN
const int SPIGOT_MIN
Definition: Constants.h:118
hcaldqm::constants::SLOT_uTCA_MIN
const int SLOT_uTCA_MIN
Definition: Constants.h:105
hcaldqm::constants::FIBER_uTCA_MIN1
const int FIBER_uTCA_MIN1
Definition: Constants.h:126
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
HcalDetId::depth
constexpr int depth() const
get the tower depth
Definition: HcalDetId.h:164
hcaldqm::hashfunctions::hash_SubdetPMiphi
uint32_t hash_SubdetPMiphi(HcalDetId const &)
Definition: HashFunctions.cc:28
constants
Utilities.h
hcaldqm::hashfunctions::hash_Fiber
uint32_t hash_Fiber(HcalElectronicsId const &)
Definition: HashFunctions.cc:295
HcalBarrel
Definition: HcalAssistant.h:33
hcaldqm::hashfunctions::name_FiberFiberCh
std::string name_FiberFiberCh(HcalElectronicsId const &)
Definition: HashFunctions.cc:431
HcalTrigTowerDetId::ietaAbs
int ietaAbs() const
get the absolute value of the tower ieta
Definition: HcalTrigTowerDetId.h:52
hcaldqm::hashfunctions::hash_Subdetiphi
uint32_t hash_Subdetiphi(HcalDetId const &)
Definition: HashFunctions.cc:12
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
LEDCalibrationChannels.iphi
iphi
Definition: LEDCalibrationChannels.py:64
hcaldqm::hashfunctions::name_TTSubdetieta
std::string name_TTSubdetieta(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:545
alignCSCRings.s
s
Definition: alignCSCRings.py:92
hcaldqm::hashfunctions::hash_TChannel
uint32_t hash_TChannel(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:489
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::hash_Subdet
uint32_t hash_Subdet(HcalDetId const &)
Definition: HashFunctions.cc:10
hcaldqm::constants::CRATE_uTCA_MIN
const int CRATE_uTCA_MIN
Definition: Constants.h:98
hcaldqm::constants::FIBER_VME_MIN
const int FIBER_VME_MIN
Definition: Constants.h:123
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
HcalOuter
Definition: HcalAssistant.h:35
hcaldqm::hashfunctions::name_HFPMiphi
std::string name_HFPMiphi(HcalDetId const &)
Definition: HashFunctions.cc:192
hcaldqm::constants::FIBERCH_MIN
const int FIBERCH_MIN
Definition: Constants.h:132
hcaldqm::hashfunctions::name_FEDSpigot
std::string name_FEDSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:347
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
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::constants::TPSUBDETPM_NAME
const std::string TPSUBDETPM_NAME[2 *TPSUBDET_NUM]
Definition: Constants.h:168
hcaldqm::utilities::hash
uint32_t hash(HcalDetId const &)
Definition: Utilities.cc:48
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
hcaldqm::hashfunctions::hash_CrateSpigot
uint32_t hash_CrateSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:279
HcalDetId::ieta
constexpr int ieta() const
get the cell ieta
Definition: HcalDetId.h:155
hcaldqm::hashfunctions::name_DChannel
std::string name_DChannel(HcalDetId const &)
Definition: HashFunctions.cc:228
hcaldqm::constants::FED_uTCA_MIN
const int FED_uTCA_MIN
Definition: Constants.h:85
HcalDetId::subdet
constexpr HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:138
HcalTrigTowerDetId::depth
int depth() const
get the depth (zero for LHC Run 1, may be nonzero for later runs)
Definition: HcalTrigTowerDetId.h:58
HcalDetId
Definition: HcalDetId.h:12
hcaldqm::hashfunctions::hash_CrateSlot
uint32_t hash_CrateSlot(HcalElectronicsId const &)
Definition: HashFunctions.cc:288
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
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
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
hcaldqm::hashfunctions::name_depth
std::string name_depth(HcalDetId const &)
Definition: HashFunctions.cc:175
HcalSubdetector
HcalSubdetector
Definition: HcalAssistant.h:31
HcalForward
Definition: HcalAssistant.h:36
hcaldqm::hashfunctions::name_SubdetPMiphi
std::string name_SubdetPMiphi(HcalDetId const &)
Definition: HashFunctions.cc:136
DetId::rawId
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
hcaldqm::constants::SUBDET_NUM
const int SUBDET_NUM
Definition: Constants.h:162
HashFunctions.h
HcalTrigTowerDetId::iphi
int iphi() const
get the tower iphi
Definition: HcalTrigTowerDetId.h:56
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
HcalElectronicsId::rawId
constexpr uint32_t rawId() const
Definition: HcalElectronicsId.h:59
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::utilities::fed2crate
std::pair< uint16_t, uint16_t > fed2crate(int fed)
Definition: Utilities.cc:10
hcaldqm::hashfunctions::hash_HFPMiphi
uint32_t hash_HFPMiphi(HcalDetId const &)
Definition: HashFunctions.cc:43
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
hcaldqm::utilities::crate2fed
uint16_t crate2fed(int crate, int slot)
Definition: Utilities.cc:27
hcaldqm::hashfunctions::hash_EChannel
uint32_t hash_EChannel(HcalElectronicsId const &)
Definition: HashFunctions.cc:323
hcaldqm::constants::SUBDET_NAME
const std::string SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:164
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::constants::CRATE_VME_MIN
const int CRATE_VME_MIN
Definition: Constants.h:93
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_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::hash_SubdetPM
uint32_t hash_SubdetPM(HcalDetId const &)
Definition: HashFunctions.cc:24
HcalTrigTowerDetId
Definition: HcalTrigTowerDetId.h:14
hcaldqm::constants::TPSUBDET_NAME
const std::string TPSUBDET_NAME[TPSUBDET_NUM]
Definition: Constants.h:167
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