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  bool isHF = eid.crateId() == 22 || eid.crateId() == 29 || eid.crateId() == 32;
247  bool isHO = eid.crateId() == 23 || eid.crateId() == 27 || eid.crateId() == 26 || eid.crateId() == 38;
248 
249  int slotToUse = 1;
250  if (isHF || isHO)
251  slotToUse = eid.slot() > 6 ? SLOT_uTCA_MIN + 6 : SLOT_uTCA_MIN;
252  else
253  slotToUse = eid.slot() > 8 ? SLOT_uTCA_MIN + 8 : (eid.slot() > 4 ? SLOT_uTCA_MIN + 4 : SLOT_uTCA_MIN);
254  return utilities::hash(HcalElectronicsId(eid.crateId(), slotToUse, FIBER_uTCA_MIN1, FIBERCH_MIN, false));
255  }
256  }
257 
259  // note that hashing of uTCA is done by FED-Slot...
260  return eid.isVMEid()
262  : utilities::hash(HcalElectronicsId(eid.crateId(), eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
263  }
264 
265  uint32_t hash_FEDSlot(HcalElectronicsId const &eid) {
266  // note that hashing of VME is done with
267  return eid.isVMEid()
269  : utilities::hash(HcalElectronicsId(eid.crateId(), eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
270  }
271 
272  uint32_t hash_Crate(HcalElectronicsId const &eid) {
273  // note hashing of VME is done with dccId
274  // note 2: there are two dccids per crate, <even> and <even+1>. We don't
275  // care about this, so use the even one.
276  return eid.isVMEid()
278  FIBERCH_MIN, FIBER_VME_MIN, SPIGOT_MIN, (eid.dccid() % 2 == 0 ? eid.dccid() : eid.dccid() - 1)))
279  : utilities::hash(
281  }
282 
284  // note hashing of VME is done with dccid and
285  // uTCA with Slots
286  return eid.isVMEid()
288  FIBERCH_MIN, FIBER_VME_MIN, eid.spigot(), (eid.dccid() % 2 == 0 ? eid.dccid() : eid.dccid() - 1)))
289  : utilities::hash(HcalElectronicsId(eid.crateId(), eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
290  }
291 
293  return eid.isVMEid()
295  FIBERCH_MIN, FIBER_VME_MIN, eid.spigot(), (eid.dccid() % 2 == 0 ? eid.dccid() : eid.dccid() - 1)))
296  : utilities::hash(HcalElectronicsId(eid.crateId(), eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
297  }
298 
299  uint32_t hash_Fiber(HcalElectronicsId const &) { return 0; }
300 
301  uint32_t hash_FiberFiberCh(HcalElectronicsId const &) { return 0; }
302 
303  uint32_t hash_FiberCh(HcalElectronicsId const &eid) { return 0; }
304 
307  : utilities::hash(
309  /* NOTE: as an update - should separate Trigger Eid and Det
310  Eid * return eid.isVMEid() ? eid.isTriggerChainId()?
311  utilities::hash(HcalElectronicsId(SLBCH_MIN,
312  SLB_MIN, SPIGOT_MIN,
313  CRATE_VME_MIN, CRATE_VME_MIN, SLOT_VME_MIN1, 0)):
314  utilities::hash(HcalElectronicsId(FIBERCH_MIN,
315  FIBER_VME_MIN, SPIGOT_MIN,
316  CRATE_VME_MIN))
317  :
318  eid.isTriggerChainId()?
319  utilities::hash(HcalElectronicsId(CRATE_uTCA_MIN,
320  SLOT_uTCA_MIN, TPFIBER_MIN,
321  TPFIBERCH_MIN, true)): utilities::hash(HcalElectronicsId(CRATE_uTCA_MIN,
322  SLOT_uTCA_MIN, FIBER_uTCA_MIN1,
323  FIBERCH_MIN, false));
324  */
325  }
326 
328  return eid.isVMEid()
329  ? utilities::hash(HcalElectronicsId(eid.fiberChanId(), eid.fiberIndex(), eid.spigot(), eid.dccid()))
330  : utilities::hash(
331  HcalElectronicsId(eid.crateId(), eid.slot(), eid.fiberIndex(), eid.fiberChanId(), false));
332  }
333 
335  char name[10];
336  sprintf(name, "FED%d", eid.isVMEid() ? eid.dccid() + 700 : utilities::crate2fed(eid.crateId(), eid.slot()));
337  return std::string(name);
338  }
339 
340  uint32_t hash_FED(std::string const &name) {
341  int fed = std::stoi(name.substr(3, name.length() - 3), nullptr);
342  if (fed >= constants::FED_uTCA_MIN) {
343  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(fed);
344  return HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
345  } else
347 
348  return HcalElectronicsId().rawId();
349  }
350 
352  char name[20];
353  sprintf(name,
354  "FED%dS%d",
355  eid.isVMEid() ? eid.dccid() + 700 : utilities::crate2fed(eid.crateId(), eid.slot()),
356  eid.isVMEid() ? eid.spigot() : eid.slot());
357  return std::string(name);
358  }
359 
360  uint32_t hash_FEDSpigot(std::string const &name) {
361  int pos = name.find('S');
362  int fed = std::stoi(name.substr(3, pos - 3), nullptr);
363  int s = std::stoi(name.substr(pos + 1, name.length() - pos - 1), nullptr);
364  if (fed >= FED_uTCA_MIN) {
365  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(fed);
366  return HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
367  } else
369 
370  return HcalElectronicsId().rawId();
371  }
372 
374  char name[20];
375  sprintf(name,
376  "FED%dS%d",
377  eid.isVMEid() ? eid.dccid() + 700 : utilities::crate2fed(eid.crateId(), eid.slot()),
378  eid.isVMEid() ? eid.spigot() : eid.slot());
379  return std::string(name);
380  }
381 
382  uint32_t hash_FEDSlot(std::string const &name) {
383  int pos = name.find('S');
384  int fed = std::stoi(name.substr(3, pos - 3), nullptr);
385  int s = std::stoi(name.substr(pos + 1, name.length() - pos - 1), nullptr);
386  if (fed >= FED_uTCA_MIN) {
387  std::pair<uint16_t, uint16_t> cspair = utilities::fed2crate(fed);
388  return HcalElectronicsId(cspair.first, cspair.second, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
389  } else
391 
392  return HcalElectronicsId().rawId();
393  }
394 
396  char name[16];
397  sprintf(name, "Crate%d", eid.crateId());
398 
399  // Note: previous, different hashes were returned for the two dccids in a VME
400  // crate. These now count as one crate.
401  // if (eid.isVMEid()) {
402  // sprintf(name, "Crate%d_VME_DCC%d", eid.crateId(), eid.dccid());
403  //} else {
404  // sprintf(name, "Crate%d", eid.crateId());
405  //}
406  return std::string(name);
407  }
408 
409  // TODO: implement - not used at this point
410  uint32_t hash_Crate(std::string const &) { return HcalElectronicsId().rawId(); }
411 
413  char name[20];
414  sprintf(name, "Crate%dS%d", eid.crateId(), eid.isVMEid() ? eid.spigot() : eid.slot());
415  return std::string(name);
416  }
417 
418  // TODO: implement - not used at this point
419  uint32_t hash_CrateSpigot(std::string const &) { return HcalElectronicsId().rawId(); }
420 
422  char name[20];
423  sprintf(name, "Crate%dS%d", eid.crateId(), eid.isVMEid() ? eid.spigot() : eid.slot());
424  return std::string(name);
425  }
426 
427  // TODO: implement - not used at this point
428  uint32_t hash_CrateSlot(std::string const &) { return HcalElectronicsId().rawId(); }
429 
430  std::string name_Fiber(HcalElectronicsId const &) { return "None"; }
431 
432  // TODO: implement - not used at this point
433  uint32_t hash_Fiber(std::string const &) { return HcalElectronicsId().rawId(); }
434 
435  std::string name_FiberFiberCh(HcalElectronicsId const &) { return "None"; }
436 
437  // TODO: implement - not used at this point
438  uint32_t hash_FiberFiberCh(std::string const &) { return HcalElectronicsId().rawId(); }
439 
440  std::string name_FiberCh(HcalElectronicsId const &) { return "None"; }
441 
442  // TODO: implement - not used at this point
443  uint32_t hash_FiberCh(std::string const &) { return HcalElectronicsId().rawId(); }
444 
446  return eid.isVMEid() ? std::string("VME") : std::string("uTCA");
447  }
448 
449  uint32_t hash_Electronics(std::string const &name) {
450  if (name == "VME")
452  else
454 
455  return HcalElectronicsId().rawId();
456  }
457 
459  char name[20];
460  if (eid.isVMEid())
461  sprintf(name, "%d-%d-%d-%d", eid.dccid(), eid.spigot(), eid.fiberIndex(), eid.fiberChanId());
462  else
463  sprintf(name, "%d-%d-%d-%d", eid.crateId(), eid.slot(), eid.fiberIndex(), eid.fiberChanId());
464  return std::string(name);
465  }
466 
467  // TODO: implement - not used at this point
468  uint32_t hash_EChannel(std::string const &) { return HcalElectronicsId().rawId(); }
469 
473  uint32_t hash_TTSubdet(HcalTrigTowerDetId const &tid) {
474  return utilities::hash(HcalTrigTowerDetId(tid.ietaAbs() >= 29 ? 29 : 1, 1));
475  }
476 
477  uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &tid) {
478  return utilities::hash(
479  HcalTrigTowerDetId(tid.ietaAbs() < 29 ? (tid.ieta() < 0 ? -1 : 1) : (tid.ieta() < 0 ? -29 : 29), 1));
480  }
481 
483  return utilities::hash(
484  HcalTrigTowerDetId(tid.ietaAbs() < 29 ? (tid.ieta() < 0 ? 0 : 1) : (tid.ieta() < 0 ? 2 : 3), tid.iphi()));
485  }
486 
487  uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &tid) { return 0; }
488 
489  uint32_t hash_TTdepth(HcalTrigTowerDetId const &tid) {
490  return utilities::hash(HcalTrigTowerDetId(1, 1, tid.depth()));
491  }
492 
493  uint32_t hash_TChannel(HcalTrigTowerDetId const &tid) {
494  return utilities::hash(HcalTrigTowerDetId(tid.ieta(), tid.iphi(), tid.depth()));
495  }
496 
498  return constants::TPSUBDET_NAME[tid.ietaAbs() < 29 ? 0 : 1];
499  }
500 
501  uint32_t hash_TTSubdet(std::string const &name) {
502  if (name == "HBHE")
503  return HcalTrigTowerDetId(1, 1).rawId();
504  else
505  return HcalTrigTowerDetId(29, 1).rawId();
506 
507  return HcalTrigTowerDetId().rawId();
508  }
509 
511  return constants::TPSUBDETPM_NAME[tid.ietaAbs() < 29 ? (tid.ieta() < 0 ? 0 : 1) : (tid.ieta() < 0 ? 2 : 3)];
512  }
513 
514  uint32_t hash_TTSubdetPM(std::string const &name) {
515  if (name == "HBHEM")
516  return HcalTrigTowerDetId(-1, 1).rawId();
517  else if (name == "HBHEP")
518  return HcalTrigTowerDetId(1, 1).rawId();
519  else if (name == "HFM")
520  return HcalTrigTowerDetId(-29, 1).rawId();
521  else
522  return HcalTrigTowerDetId(29, 1).rawId();
523 
524  return HcalTrigTowerDetId().rawId();
525  }
526 
528  char name[10];
529  sprintf(name, "%siphi%d", name_TTSubdetPM(tid).c_str(), tid.iphi());
530  return std::string(name);
531  }
532 
534  int pos = name.find("iphi");
535  std::string sub = name.substr(0, pos);
536  int iphi = std::stoi(name.substr(pos + 4, name.length() - pos - 4), nullptr);
537  if (name == "HBHEM")
538  return HcalTrigTowerDetId(-1, iphi).rawId();
539  else if (name == "HBHEP")
540  return HcalTrigTowerDetId(1, iphi).rawId();
541  else if (name == "HFM")
542  return HcalTrigTowerDetId(-29, iphi).rawId();
543  else
544  return HcalTrigTowerDetId(29, iphi).rawId();
545 
546  return HcalTrigTowerDetId().rawId();
547  }
548 
549  std::string name_TTSubdetieta(HcalTrigTowerDetId const &tid) { return "None"; }
550 
551  // TODO: implement - not used right now
552  uint32_t hash_TTSubdetieta(std::string const &) { return HcalTrigTowerDetId().rawId(); }
553 
555  char name[10];
556  sprintf(name, "depth%d", tid.depth());
557  return std::string(name);
558  }
559 
560  uint32_t hash_TTdepth(std::string const &name) {
561  int depth = std::stoi(name.substr(5, name.length() - 5), nullptr);
562  return HcalTrigTowerDetId(1, 1, depth);
563  }
564 
566  std::ostringstream stream;
567  stream << tid;
568  return std::string(stream.str());
569  }
570 
571  // TODO: implement - not used right now
572  uint32_t hash_TChannel(std::string const &) { return HcalTrigTowerDetId().rawId(); }
573 
578  if (tid.ietaAbs() < 29) {
579  if (eid.slot() % 3 == 1)
580  return utilities::hash(HcalTrigTowerDetId(1, 1));
581  else if (eid.slot() % 3 == 2)
582  return utilities::hash(HcalTrigTowerDetId(17, 1));
583  else if (eid.slot() % 3 == 0)
584  return utilities::hash(HcalTrigTowerDetId(19, 1));
585  } else
586  return utilities::hash(HcalTrigTowerDetId(29, 1));
587 
588  return HcalTrigTowerDetId().rawId();
589  }
590 
592  int idx = -1;
593  if (tid.ietaAbs() < 29) {
594  if (eid.slot() % 3 == 1)
595  idx = 0;
596  else if (eid.slot() % 3 == 2)
597  idx = 1;
598  else if (eid.slot() % 3 == 0)
599  idx = 2;
600  } else
601  idx = 3;
603  }
604 
605  uint32_t hash_TTSubdetFW(std::string const &name) {
606  if (name == "HB")
607  return HcalTrigTowerDetId(1, 1).rawId();
608  else if (name == "HBHE")
609  return HcalTrigTowerDetId(17, 1).rawId();
610  else if (name == "HE")
611  return HcalTrigTowerDetId(19, 1).rawId();
612  else
613  return HcalTrigTowerDetId(29, 1).rawId();
614 
615  return HcalTrigTowerDetId().rawId();
616  }
617 
618  } // namespace hashfunctions
619 } // namespace hcaldqm
hcaldqm::hashfunctions::hash_Crate
uint32_t hash_Crate(HcalElectronicsId const &)
Definition: HashFunctions.cc:272
hcaldqm::constants::FED_VME_MIN
const int FED_VME_MIN
Definition: Constants.h:82
hcaldqm::hashfunctions::hash_TTSubdet
uint32_t hash_TTSubdet(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:473
mps_fire.i
i
Definition: mps_fire.py:428
hcaldqm::constants::TPSUBDETFW_NAME
const std::string TPSUBDETFW_NAME[2 *TPSUBDET_NUM]
Definition: Constants.h:171
hcaldqm::hashfunctions::hash_Electronics
uint32_t hash_Electronics(HcalElectronicsId const &)
Definition: HashFunctions.cc:305
hcaldqm::hashfunctions::name_TTdepth
std::string name_TTdepth(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:554
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:301
hcaldqm::constants::SUBDETPM_NAME
const std::string SUBDETPM_NAME[2 *SUBDET_NUM]
Definition: Constants.h:167
hcaldqm::hashfunctions::name_Electronics
std::string name_Electronics(HcalElectronicsId const &)
Definition: HashFunctions.cc:445
HcalTrigTowerDetId::ieta
int ieta() const
get the tower ieta
Definition: HcalTrigTowerDetId.h:54
HcalObjRepresent::isHO
bool isHO(int etabin, int depth)
Definition: HcalObjRepresent.h:908
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
pos
Definition: PixelAliasList.h:18
hcaldqm::hashfunctions::name_TTSubdet
std::string name_TTSubdet(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:497
hcaldqm::constants::SPIGOT_MIN
const int SPIGOT_MIN
Definition: Constants.h:120
hcaldqm::hashfunctions::hash_TTSubdetFW
uint32_t hash_TTSubdetFW(HcalTrigTowerDetId const &, HcalElectronicsId const &)
Definition: HashFunctions.cc:577
cms::cuda::stream
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Definition: HistoContainer.h:51
hcaldqm::constants::SLOT_uTCA_MIN
const int SLOT_uTCA_MIN
Definition: Constants.h:107
hcaldqm::constants::FIBER_uTCA_MIN1
const int FIBER_uTCA_MIN1
Definition: Constants.h:128
hcaldqm::hashfunctions::name_TChannel
std::string name_TChannel(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:565
hcaldqm::hashfunctions::name_Crate
std::string name_Crate(HcalElectronicsId const &)
Definition: HashFunctions.cc:395
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:299
HcalBarrel
Definition: HcalAssistant.h:33
hcaldqm::hashfunctions::name_FiberFiberCh
std::string name_FiberFiberCh(HcalElectronicsId const &)
Definition: HashFunctions.cc:435
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
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
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:549
alignCSCRings.s
s
Definition: alignCSCRings.py:92
hcaldqm::hashfunctions::hash_TChannel
uint32_t hash_TChannel(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:493
hcaldqm::hashfunctions::hash_FEDSpigot
uint32_t hash_FEDSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:258
hcaldqm::hashfunctions::hash_TTSubdetieta
uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:487
HcalObjRepresent::isHF
bool isHF(int etabin, int depth)
Definition: HcalObjRepresent.h:880
hcaldqm::hashfunctions::hash_TTSubdetPMiphi
uint32_t hash_TTSubdetPMiphi(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:482
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:100
hcaldqm::constants::FIBER_VME_MIN
const int FIBER_VME_MIN
Definition: Constants.h:125
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
hcaldqm::hashfunctions::name_EChannel
std::string name_EChannel(HcalElectronicsId const &)
Definition: HashFunctions.cc:458
hcaldqm::hashfunctions::hash_FiberCh
uint32_t hash_FiberCh(HcalElectronicsId const &)
Definition: HashFunctions.cc:303
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:134
hcaldqm::hashfunctions::name_FEDSpigot
std::string name_FEDSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:351
LEDCalibrationChannels.depth
depth
Definition: LEDCalibrationChannels.py:65
hcaldqm::hashfunctions::hash_TTSubdetPM
uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:477
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:170
hcaldqm::utilities::hash
uint32_t hash(HcalDetId const &)
Definition: Utilities.cc:62
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
hcaldqm::hashfunctions::hash_CrateSpigot
uint32_t hash_CrateSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:283
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:87
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:292
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
hcaldqm::hashfunctions::hash_depth
uint32_t hash_depth(HcalDetId const &)
Definition: HashFunctions.cc:36
hcaldqm::hashfunctions::name_TTSubdetFW
std::string name_TTSubdetFW(HcalTrigTowerDetId const &, HcalElectronicsId const &)
Definition: HashFunctions.cc:591
hcaldqm::hashfunctions::hash_FEDSlot
uint32_t hash_FEDSlot(HcalElectronicsId const &)
Definition: HashFunctions.cc:265
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
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
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:164
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:489
hcaldqm::hashfunctions::name_FED
std::string name_FED(HcalElectronicsId const &)
Definition: HashFunctions.cc:334
hcaldqm::hashfunctions::name_TTSubdetPM
std::string name_TTSubdetPM(HcalTrigTowerDetId const &)
Definition: HashFunctions.cc:510
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:527
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:29
hcaldqm::hashfunctions::hash_EChannel
uint32_t hash_EChannel(HcalElectronicsId const &)
Definition: HashFunctions.cc:327
hcaldqm::constants::SUBDET_NAME
const std::string SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:166
hcaldqm::hashfunctions::name_Fiber
std::string name_Fiber(HcalElectronicsId const &)
Definition: HashFunctions.cc:430
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
hcaldqm::hashfunctions::name_FEDSlot
std::string name_FEDSlot(HcalElectronicsId const &)
Definition: HashFunctions.cc:373
hcaldqm::hashfunctions::name_CrateSpigot
std::string name_CrateSpigot(HcalElectronicsId const &)
Definition: HashFunctions.cc:412
hcaldqm::constants::CRATE_VME_MIN
const int CRATE_VME_MIN
Definition: Constants.h:95
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:440
hcaldqm::hashfunctions::name_CrateSlot
std::string name_CrateSlot(HcalElectronicsId const &)
Definition: HashFunctions.cc:421
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:169
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