test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HashFunctions.cc
Go to the documentation of this file.
3 
4 namespace hcaldqm
5 {
6  using namespace constants;
7  namespace hashfunctions
8  {
12  uint32_t hash_Subdet(HcalDetId const& did)
13  {
14  return utilities::hash(HcalDetId(did.subdet(), 1, 1, 1));
15  }
16 
17  uint32_t hash_Subdetiphi(HcalDetId const& did)
18  {
19  return utilities::hash(HcalDetId(did.subdet(), 1, did.iphi(), 1));
20  }
21 
22  uint32_t hash_Subdetieta(HcalDetId const& did)
23  {
24  return utilities::hash(HcalDetId(did.subdet(), did.ieta(),
25  1, 1));
26  }
27 
28  uint32_t hash_Subdetdepth(HcalDetId const& did)
29  {
30  return utilities::hash(HcalDetId(did.subdet(), 1,
31  1, did.depth()));
32  }
33 
34  uint32_t hash_SubdetPM(HcalDetId const& did)
35  {
36  return utilities::hash(HcalDetId(did.subdet(),
37  did.ieta()>0 ? 1 : -1, 1, 1));
38  }
39 
40  uint32_t hash_SubdetPMiphi(HcalDetId const& did)
41  {
42  return utilities::hash(HcalDetId(did.subdet(),
43  did.ieta()>0 ? 1 : -1, did.iphi(), 1));
44  }
45 
46  uint32_t hash_iphi(HcalDetId const& did)
47  {
49  1, did.iphi(), 1));
50  }
51 
52  uint32_t hash_ieta(HcalDetId const& did)
53  {
55  did.ieta(), 1, 1));
56  }
57 
58  uint32_t hash_depth(HcalDetId const& did)
59  {
61  1, 1, did.depth()));
62  }
63 
64  uint32_t hash_HFPMiphi(HcalDetId const& did)
65  {
67  did.ieta()>0 ? 1 : -1, did.iphi(), 1));
68  }
69 
70  uint32_t hash_HBHEPartition(HcalDetId const &did)
71  {
72  int iphi = did.iphi();
73  uint32_t hash = 0;
74  if (iphi>=3 && iphi<=26)
76  1, 3, 1));
77  else if (iphi>=27 && iphi<=50)
79  1, 27, 1));
80  else
82  1, 1, 1));
83 
84  return hash;
85  }
86 
87  uint32_t hash_DChannel(HcalDetId const& did)
88  {
89  return utilities::hash(did);
90  }
91 
93  {
94  return constants::SUBDET_NAME[did.subdet()-1];
95  }
96 
97  uint32_t hash_Subdet(std::string const& name)
98  {
99  for (int i=0; i<constants::SUBDET_NUM; i++)
100  if (constants::SUBDET_NAME[i]==name)
101  return(HcalDetId((HcalSubdetector)(i+1),
102  1,1,1).rawId());
103 
104  return HcalDetId().rawId();
105  }
106 
108  {
109  char name[10];
110  sprintf(name, "%s%s",constants::SUBDET_NAME[did.subdet()-1].c_str(),
111  did.ieta()>0 ? "P" : "M");
112  return std::string(name);
113  }
114 
115  uint32_t hash_SubdetPM(std::string const& name)
116  {
117  for (int i=0; i<constants::SUBDET_NUM*2; i++)
118  if (constants::SUBDETPM_NAME[i]==name)
119  return HcalDetId((HcalSubdetector)(i/2+1),
120  i%2==0?-1:1,1,1).rawId();
121 
122  return HcalDetId().rawId();
123  }
124 
126  {
127  char name[10];
128  sprintf(name, "%siphi%d",
129  constants::SUBDET_NAME[did.subdet()-1].c_str(),
130  did.iphi());
131  return std::string(name);
132  }
133 
135  {
136  std::string sub = name.substr(0,2);
137  int iphi = std::stoi(name.substr(6,name.length()-6), nullptr);
138  for (int i=0; i<constants::SUBDET_NUM; i++)
139  if (constants::SUBDET_NAME[i]==sub)
140  return HcalDetId((HcalSubdetector)(i+1),
141  1, iphi,1).rawId();
142 
143  // default
144  return HcalDetId().rawId();
145  }
146 
148  {
149  char name[20];
150  sprintf(name, "%sieta%d",
151  constants::SUBDET_NAME[did.subdet()-1].c_str(),
152  did.ieta());
153  return std::string(name);
154  }
155 
157  {
158  std::string sub = name.substr(0,2);
159  int ieta = std::stoi(name.substr(6,name.length()-6), nullptr);
160  for (int i=0; i<constants::SUBDET_NUM; i++)
161  if (constants::SUBDET_NAME[i]==sub)
162  return HcalDetId((HcalSubdetector)(i+1),
163  ieta, 1,1).rawId();
164 
165  // default
166  return HcalDetId().rawId();
167  }
168 
170  {
171  char name[20];
172  sprintf(name, "%sdepth%d",
173  constants::SUBDET_NAME[did.subdet()-1].c_str(),
174  did.depth());
175  return std::string(name);
176  }
177 
179  {
180  std::string sub = name.substr(0,2);
181  int depth = std::stoi(name.substr(7, name.length()-7), nullptr);
182  for (int i=0; i<constants::SUBDET_NUM; i++)
183  if (constants::SUBDET_NAME[i]==sub)
184  return HcalDetId((HcalSubdetector)(i+1),
185  1,1,depth).rawId();
186 
187  return HcalDetId().rawId();
188  }
189 
191  {
192  char name[20];
193  sprintf(name, "%s%siphi%d",
194  constants::SUBDET_NAME[did.subdet()-1].c_str(),
195  did.ieta()>0 ? "P" : "M", did.iphi());
196  return std::string(name);
197  }
198 
200  {
201  std::string sub = name.substr(0,3);
202  int iphi = std::stoi(name.substr(7, name.length()-7),nullptr);
203  for (int i=0; i<constants::SUBDET_NUM*2; i++)
204  if (constants::SUBDETPM_NAME[i]==sub)
205  return HcalDetId((HcalSubdetector)(i/2+1),
206  i%2==0?-1:1,iphi,1).rawId();
207 
208  return HcalDetId().rawId();
209  }
210 
212  {
213  char name[10];
214  sprintf(name, "iphi%d", did.iphi());
215  return std::string(name);
216  }
217 
218  uint32_t hash_iphi(std::string const& name)
219  {
220  int iphi = std::stoi(name.substr(4,name.length()-4),nullptr);
221  return HcalDetId(HcalBarrel,1,iphi,1).rawId();
222  }
223 
225  {
226  char name[10];
227  sprintf(name, "ieta%d", did.ieta());
228  return std::string(name);
229  }
230 
231  uint32_t hash_ieta(std::string const& name)
232  {
233  int ieta = std::stoi(name.substr(4,name.length()-4),nullptr);
234  return HcalDetId(HcalBarrel,ieta,1,1).rawId();
235  }
236 
238  {
239  char name[10];
240  sprintf(name, "depth%d", did.depth());
241  return std::string(name);
242 
243  }
244 
245  uint32_t hash_depth(std::string const& name)
246  {
247  int depth = std::stoi(name.substr(5,name.length()-5),nullptr);
248  return HcalDetId(HcalBarrel,1,1,depth).rawId();
249  }
250 
252  {
253  char name[10];
254  sprintf(name, "HF%siphi%d", did.ieta()>0 ? "P" : "M", did.iphi());
255  return std::string(name);
256  }
257 
258  uint32_t hash_HFPMiphi(std::string const& name)
259  {
260  int iphi = std::stoi(name.substr(7,name.length()-7),nullptr);
261  int ieta = name[2]=='P'?1:-1;
262  return HcalDetId(HcalForward,ieta,iphi,1).rawId();
263  }
264 
266  {
267  char c;
268  if (did.iphi()>=3 && did.iphi()<=26)
269  c = 'a';
270  else if (did.iphi()>=27 && did.iphi()<=50)
271  c = 'b';
272  else
273  c = 'c';
274  char name[10];
275  sprintf(name, "HBHE%c", c);
276  return std::string(name);
277  }
278 
280  {
281  if (name[4]=='a')
282  return HcalDetId(HcalBarrel,1,5,1).rawId();
283  else if (name[4]=='b')
284  return HcalDetId(HcalBarrel,1,29,1).rawId();
285  else
286  return HcalDetId(HcalBarrel,1,55,1).rawId();
287 
288  return HcalDetId().rawId();
289  }
290 
292  {
293  char name[40];
294  sprintf(name, "%s-%d-%d-%d",
295  constants::SUBDET_NAME[did.subdet()-1].c_str(),
296  did.ieta(), did.iphi(), did.depth());
297  return std::string(name);
298  }
299 
300  // TODO: Make it work here
301  // Not neccessary right now!
302  uint32_t hash_DChannel(std::string const& name)
303  {
304  return HcalDetId(HcalBarrel,1,1,1).rawId();
305  }
306 
310  uint32_t hash_FED(HcalElectronicsId const& eid)
311  {
312  return eid.isVMEid() ?
317  }
318 
319  uint32_t hash_FEDSpigot(HcalElectronicsId const& eid)
320  {
321  // note that hashing of uTCA is done by FED-Slot...
322  return eid.isVMEid() ?
324  FIBERCH_MIN, FIBER_VME_MIN, eid.spigot(), eid.dccid())) :
326  eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
327  }
328 
329  uint32_t hash_FEDSlot(HcalElectronicsId const& eid)
330  {
331  // note that hashing of VME is done with
332  return eid.isVMEid() ?
334  FIBER_VME_MIN, eid.spigot(), eid.dccid())) :
336  eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
337  }
338 
339  uint32_t hash_Crate(HcalElectronicsId const& eid)
340  {
341  // note hashing of VME is done with dccId
342  return eid.isVMEid() ?
344  FIBER_VME_MIN, SPIGOT_MIN, eid.dccid())) :
347  }
348 
349  uint32_t hash_CrateSpigot(HcalElectronicsId const& eid)
350  {
351  // note hashing of VME is done with dccid and
352  // uTCA with Slots
353  return eid.isVMEid() ?
355  FIBER_VME_MIN, eid.spigot(), eid.dccid())) :
357  eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
358  }
359 
360  uint32_t hash_CrateSlot(HcalElectronicsId const& eid)
361  {
362  return eid.isVMEid() ?
364  FIBER_VME_MIN, eid.spigot(), eid.dccid())) :
366  eid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false));
367  }
368 
369  uint32_t hash_Fiber(HcalElectronicsId const&)
370  {
371  return 0;
372  }
373 
375  {
376  return 0;
377  }
378 
379  uint32_t hash_FiberCh(HcalElectronicsId const& eid)
380  {
381  return 0;
382  }
383 
384  uint32_t hash_Electronics(HcalElectronicsId const& eid)
385  {
386  return eid.isVMEid()?
391 /* NOTE: as an update - should separate Trigger Eid and Det Eid
392  * return eid.isVMEid() ?
393  eid.isTriggerChainId()?
394  utilities::hash(HcalElectronicsId(SLBCH_MIN,
395  SLB_MIN, SPIGOT_MIN, CRATE_VME_MIN,
396  CRATE_VME_MIN, SLOT_VME_MIN1, 0)):
397  utilities::hash(HcalElectronicsId(FIBERCH_MIN,
398  FIBER_VME_MIN, SPIGOT_MIN, CRATE_VME_MIN))
399  :
400  eid.isTriggerChainId()?
401  utilities::hash(HcalElectronicsId(CRATE_uTCA_MIN,
402  SLOT_uTCA_MIN, TPFIBER_MIN, TPFIBERCH_MIN, true)):
403  utilities::hash(HcalElectronicsId(CRATE_uTCA_MIN,
404  SLOT_uTCA_MIN, FIBER_uTCA_MIN1, FIBERCH_MIN, false));
405  */
406  }
407 
408  uint32_t hash_EChannel(HcalElectronicsId const& eid)
409  {
410  return eid.isVMEid() ?
412  eid.fiberIndex(), eid.spigot(), eid.dccid())):
414  eid.slot(), eid.fiberIndex(), eid.fiberChanId(), false));
415  }
416 
418  {
419  char name[10];
420  sprintf(name, "FED%d", eid.isVMEid() ? eid.dccid()+700 :
422  return std::string(name);
423  }
424 
425  uint32_t hash_FED(std::string const& name)
426  {
427  int fed = std::stoi(name.substr(3,name.length()-3),nullptr);
428  if (fed>=constants::FED_uTCA_MIN)
431  else
434 
435  return HcalElectronicsId().rawId();
436  }
437 
439  {
440  char name[20];
441  sprintf(name, "FED%dS%d",
442  eid.isVMEid()?eid.dccid()+700:
444  eid.isVMEid()?eid.spigot():eid.slot());
445  return std::string(name);
446  }
447 
448  uint32_t hash_FEDSpigot(std::string const& name)
449  {
450  int pos = name.find("S");
451  int fed = std::stoi(name.substr(3, pos-3), nullptr);
452  int s = std::stoi(name.substr(pos+1, name.length()-pos-1), nullptr);
453  if (fed>=FED_uTCA_MIN)
455  s, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
456  else
458  FIBER_VME_MIN, s, fed-FED_VME_MIN).rawId();
459 
460  return HcalElectronicsId().rawId();
461  }
462 
464  {
465  char name[20];
466  sprintf(name, "FED%dS%d",
467  eid.isVMEid()?eid.dccid()+700:
469  eid.isVMEid()?eid.spigot():eid.slot());
470  return std::string(name);
471  }
472 
473  uint32_t hash_FEDSlot(std::string const& name)
474  {
475  int pos = name.find("S");
476  int fed = std::stoi(name.substr(3, pos-3), nullptr);
477  int s = std::stoi(name.substr(pos+1, name.length()-pos-1), nullptr);
478  if (fed>=FED_uTCA_MIN)
480  s, FIBER_uTCA_MIN1, FIBERCH_MIN, false).rawId();
481  else
483  FIBER_VME_MIN, s, fed-FED_VME_MIN).rawId();
484 
485  return HcalElectronicsId().rawId();
486  }
487 
489  {
490  char name[10];
491  sprintf(name, "Crate%d", eid.isVMEid()?eid.dccid():eid.crateId());
492  return std::string(name);
493  }
494 
495  // TODO: implement - not used at this point
496  uint32_t hash_Crate(std::string const&)
497  {return HcalElectronicsId().rawId();}
498 
500  {
501  char name[20];
502  sprintf(name, "Crate%dS%d",
503  eid.isVMEid()?eid.dccid():eid.crateId(),
504  eid.isVMEid()?eid.spigot():eid.slot());
505  return std::string(name);
506  }
507 
508  // TODO: implement - not used at this point
509  uint32_t hash_CrateSpigot(std::string const&)
510  {return HcalElectronicsId().rawId();}
511 
513  {
514  char name[20];
515  sprintf(name, "Crate%dS%d",
516  eid.isVMEid()?eid.dccid():eid.crateId(),
517  eid.isVMEid()?eid.spigot():eid.slot());
518  return std::string(name);
519  }
520 
521  // TODO: implement - not used at this point
522  uint32_t hash_CrateSlot(std::string const&)
523  {return HcalElectronicsId().rawId();}
524 
526  {
527  return "None";
528  }
529 
530  // TODO: implement - not used at this point
531  uint32_t hash_Fiber(std::string const&)
532  {return HcalElectronicsId().rawId();}
533 
535  {
536  return "None";
537  }
538 
539  // TODO: implement - not used at this point
541  {return HcalElectronicsId().rawId();}
542 
544  {
545  return "None";
546  }
547 
548  // TODO: implement - not used at this point
549  uint32_t hash_FiberCh(std::string const&)
550  {return HcalElectronicsId().rawId();}
551 
553  {
554  return eid.isVMEid()?std::string("VME"):std::string("uTCA");
555  }
556 
558  {
559  if (name=="VME")
562  else
565 
566  return HcalElectronicsId().rawId();
567  }
568 
570  {
571  char name[20];
572  if (eid.isVMEid())
573  sprintf(name, "%d-%d-%d-%d", eid.dccid(),
574  eid.spigot(), eid.fiberIndex(), eid.fiberChanId());
575  else
576  sprintf(name, "%d-%d-%d-%d", eid.crateId(),
577  eid.slot(), eid.fiberIndex(), eid.fiberChanId());
578  return std::string(name);
579  }
580 
581  // TODO: implement - not used at this point
582  uint32_t hash_EChannel(std::string const&)
583  {return HcalElectronicsId().rawId();}
584 
588  uint32_t hash_TTSubdet(HcalTrigTowerDetId const& tid)
589  {
591  tid.ietaAbs()>=29?29:1, 1));
592  }
593 
594  uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const& tid)
595  {
597  tid.ietaAbs()<29? (tid.ieta()<0 ? -1 : 1) :
598  (tid.ieta()<0?-29:29),
599  1));
600  }
601 
603  {
605  tid.ietaAbs()<29? (tid.ieta()<0 ? 0 : 1) : (tid.ieta()<0?2:3),
606  tid.iphi()));
607  }
608 
610  {
611  return 0;
612  }
613 
614  uint32_t hash_TTdepth(HcalTrigTowerDetId const& tid)
615  {
617  1, 1, tid.depth()));
618  }
619 
620  uint32_t hash_TChannel(HcalTrigTowerDetId const& tid)
621  {
623  tid.ieta(), tid.iphi(), tid.depth()));
624  }
625 
627  {
628  return constants::TPSUBDET_NAME[tid.ietaAbs()<29?0:1];
629  }
630 
631  uint32_t hash_TTSubdet(std::string const& name)
632  {
633  if (name=="HBHE")
634  return HcalTrigTowerDetId(1,1).rawId();
635  else
636  return HcalTrigTowerDetId(29,1).rawId();
637 
638  return HcalTrigTowerDetId().rawId();
639  }
640 
642  {
644  tid.ietaAbs()<29?(tid.ieta()<0?0:1):(tid.ieta()<0?2:3)];
645  }
646 
648  {
649  if (name=="HBHEM")
650  return HcalTrigTowerDetId(-1,1).rawId();
651  else if (name=="HBHEP")
652  return HcalTrigTowerDetId(1,1).rawId();
653  else if (name=="HFM")
654  return HcalTrigTowerDetId(-29,1).rawId();
655  else
656  return HcalTrigTowerDetId(29,1).rawId();
657 
658  return HcalTrigTowerDetId().rawId();
659  }
660 
662  {
663  char name[10];
664  sprintf(name, "%siphi%d", name_TTSubdetPM(tid).c_str(),
665  tid.iphi());
666  return std::string(name);
667  }
668 
670  {
671  int pos = name.find("iphi");
672  std::string sub = name.substr(0, pos);
673  int iphi = std::stoi(name.substr(pos+4, name.length()-pos-4),
674  nullptr);
675  if (name=="HBHEM")
676  return HcalTrigTowerDetId(-1,iphi).rawId();
677  else if (name=="HBHEP")
678  return HcalTrigTowerDetId(1,iphi).rawId();
679  else if (name=="HFM")
680  return HcalTrigTowerDetId(-29,iphi).rawId();
681  else
682  return HcalTrigTowerDetId(29,iphi).rawId();
683 
684  return HcalTrigTowerDetId().rawId();
685  }
686 
688  {
689  return "None";
690  }
691 
692  // TODO: implement - not used right now
694  {return HcalTrigTowerDetId().rawId();}
695 
697  {
698  char name[10];
699  sprintf(name, "depth%d", tid.depth());
700  return std::string(name);
701  }
702 
703  uint32_t hash_TTdepth(std::string const& name)
704  {
705  int depth = std::stoi(name.substr(5, name.length()-5), nullptr);
706  return HcalTrigTowerDetId(1,1,depth);
707  }
708 
710  {
711  std::ostringstream stream;
712  stream << tid;
713  return std::string(stream.str());
714  }
715 
716  // TODO: implement - not used right now
717  uint32_t hash_TChannel(std::string const&)
718  {return HcalTrigTowerDetId().rawId();}
719  }
720 }
std::string name_CrateSpigot(HcalElectronicsId const &)
std::string name_Electronics(HcalElectronicsId const &)
uint32_t hash_Subdetdepth(HcalDetId const &)
int i
Definition: DBlmapReader.cc:9
std::string name_CrateSlot(HcalElectronicsId const &)
std::string name_Crate(HcalElectronicsId const &)
uint32_t hash_SubdetPM(HcalDetId const &)
int fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
int const CRATE_VME_MIN
Definition: Constants.h:60
uint32_t hash_SubdetPMiphi(HcalDetId const &)
uint16_t fed2crate(int fed)
Definition: Utilities.cc:12
int const SUBDET_NUM
Definition: Constants.h:130
HcalSubdetector subdet() const
get the subdetector
Definition: HcalDetId.h:49
std::string name_FiberFiberCh(HcalElectronicsId const &)
uint32_t hash_TTSubdet(HcalTrigTowerDetId const &)
uint32_t hash_Subdetiphi(HcalDetId const &)
std::string const TPSUBDETPM_NAME[2 *TPSUBDET_NUM]
Definition: Constants.h:138
uint32_t rawId() const
std::string name_TTdepth(HcalTrigTowerDetId const &)
std::string name_FiberCh(HcalElectronicsId const &)
std::string name_TChannel(HcalTrigTowerDetId const &)
uint32_t hash_Subdetieta(HcalDetId const &)
std::string name_Subdetieta(HcalDetId const &)
std::string name_Subdetiphi(HcalDetId const &)
uint32_t hash_Crate(HcalElectronicsId const &)
uint32_t hash_iphi(HcalDetId const &)
uint32_t hash_FED(HcalElectronicsId const &)
uint32_t hash_DChannel(HcalDetId const &)
uint32_t hash_TTSubdetieta(HcalTrigTowerDetId const &)
uint32_t hash_FiberFiberCh(HcalElectronicsId const &)
int const SPIGOT_MIN
Definition: Constants.h:85
std::string name_EChannel(HcalElectronicsId const &)
int const FIBER_VME_MIN
Definition: Constants.h:90
int ieta() const
get the tower ieta
std::string name_FEDSpigot(HcalElectronicsId const &)
uint32_t hash_Fiber(HcalElectronicsId const &)
uint32_t hash_TTSubdetPM(HcalTrigTowerDetId const &)
int crateId() const
get the readout VME crate number
int const FED_uTCA_MIN
Definition: Constants.h:52
std::string name_TTSubdet(HcalTrigTowerDetId const &)
std::string name_SubdetPM(HcalDetId const &)
int const FIBERCH_MIN
Definition: Constants.h:100
int depth() const
get the depth (zero for LHC Run 1, may be nonzero for later runs)
uint32_t rawId() const
get the raw id
Definition: DetId.h:43
int depth() const
get the tower depth
Definition: HcalDetId.cc:106
std::string name_TTSubdetieta(HcalTrigTowerDetId const &)
std::string const SUBDET_NAME[SUBDET_NUM]
Definition: Constants.h:133
uint32_t hash_TChannel(HcalTrigTowerDetId const &)
uint32_t hash(HcalDetId const &)
Definition: Utilities.cc:34
int const FED_VME_MIN
Definition: Constants.h:47
uint32_t hash_FEDSpigot(HcalElectronicsId const &)
uint32_t hash_depth(HcalDetId const &)
std::string name_DChannel(HcalDetId const &)
int ieta() const
get the cell ieta
Definition: HcalDetId.h:56
std::string const SUBDETPM_NAME[2 *SUBDET_NUM]
Definition: Constants.h:134
int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
HcalSubdetector
Definition: HcalAssistant.h:31
int const FIBER_uTCA_MIN1
Definition: Constants.h:93
std::string name_HFPMiphi(HcalDetId const &)
int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
uint32_t hash_TTSubdetPMiphi(HcalTrigTowerDetId const &)
uint32_t hash_FEDSlot(HcalElectronicsId const &)
uint32_t hash_Subdet(HcalDetId const &)
uint32_t hash_FiberCh(HcalElectronicsId const &)
uint32_t hash_ieta(HcalDetId const &)
int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
int const CRATE_uTCA_MIN
Definition: Constants.h:65
std::string name_TTSubdetPMiphi(HcalTrigTowerDetId const &)
int iphi() const
get the cell iphi
Definition: HcalDetId.cc:101
std::string name_SubdetPMiphi(HcalDetId const &)
bool isVMEid() const
uint32_t hash_HFPMiphi(HcalDetId const &)
std::string const TPSUBDET_NAME[TPSUBDET_NUM]
Definition: Constants.h:137
uint32_t hash_CrateSlot(HcalElectronicsId const &)
uint32_t hash_CrateSpigot(HcalElectronicsId const &)
std::string name_FED(HcalElectronicsId const &)
int slot() const
get the htr or uHTR slot
std::string name_ieta(HcalDetId const &)
std::string name_HBHEPartition(HcalDetId const &)
std::string name_depth(HcalDetId const &)
uint16_t crate2fed(int crate)
Definition: Utilities.cc:23
std::string name_iphi(HcalDetId const &)
uint32_t hash_Electronics(HcalElectronicsId const &)
uint32_t hash_EChannel(HcalElectronicsId const &)
Readout chain identification for Hcal.
uint32_t hash_TTdepth(HcalTrigTowerDetId const &)
int ietaAbs() const
get the absolute value of the tower ieta
int iphi() const
get the tower iphi
int const SLOT_uTCA_MIN
Definition: Constants.h:72
std::string name_TTSubdetPM(HcalTrigTowerDetId const &)
uint32_t hash_HBHEPartition(HcalDetId const &)
std::string name_Fiber(HcalElectronicsId const &)
std::string name_FEDSlot(HcalElectronicsId const &)
std::string name_Subdet(HcalDetId const &)
std::string name_Subdetdepth(HcalDetId const &)