CMS 3D CMS Logo

ElectronicsQuantity.cc
Go to the documentation of this file.
2 
3 namespace hcaldqm {
4  using namespace constants;
5  namespace quantity {
7  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
8  auto it_fed = std::find(std::begin(fedList), std::end(fedList), fed);
9  return ((it_fed == std::end(fedList)) ? -1 : std::distance(fedList.begin(), it_fed));
10  }
11 
13  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
14  auto it_fed = std::find(std::begin(fedListuTCA), std::end(fedListuTCA), fed);
15  return ((it_fed == std::end(fedListuTCA)) ? -1 : std::distance(fedListuTCA.begin(), it_fed));
16  }
17 
19  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
20  auto it_fed = std::find(std::begin(fedListVME), std::end(fedListVME), fed);
21  return ((it_fed == std::end(fedListVME)) ? -1 : std::distance(fedListVME.begin(), it_fed));
22  }
23 
25  unsigned int crate = eid.crateId();
26  auto it_crate = std::find(std::begin(crateList), std::end(crateList), crate);
27  return ((it_crate == std::end(crateList)) ? -1 : std::distance(crateList.begin(), it_crate));
28  }
29 
31  unsigned int crate = eid.crateId();
32  auto it_crate = std::find(std::begin(crateListuTCA), std::end(crateListuTCA), crate);
33  return ((it_crate == std::end(crateListuTCA)) ? -1 : std::distance(crateListuTCA.begin(), it_crate));
34  }
35 
37  unsigned int crate = eid.crateId();
38  auto it_crate = std::find(std::begin(crateListVME), std::end(crateListVME), crate);
39  return ((it_crate == std::end(crateListVME)) ? -1 : std::distance(crateListVME.begin(), it_crate));
40  }
41 
42  int getValue_SlotuTCA(HcalElectronicsId const &eid) { return eid.slot() - SLOT_uTCA_MIN; }
43 
45  int slot = eid.slot();
46  if (slot <= SLOT_VME_MAX1)
47  slot -= SLOT_VME_MIN1;
48  else
49  slot = SLOT_VME_NUM1 + slot - SLOT_VME_MIN2;
50  return slot;
51  }
52 
53  int getValue_Spigot(HcalElectronicsId const &eid) { return eid.spigot(); }
54 
56  int fiber = eid.fiberIndex();
57  if (fiber <= FIBER_uTCA_MAX1)
58  fiber -= FIBER_uTCA_MIN1;
59  else
60  fiber = (FIBER_uTCA_MAX1 - FIBER_uTCA_MIN1 + 1) + fiber - FIBER_uTCA_MIN2;
61  return fiber;
62  }
63 
64  int getValue_FiberVME(HcalElectronicsId const &eid) { return eid.fiberIndex() - 1; }
65 
66  int getValue_FiberCh(HcalElectronicsId const &eid) { return eid.fiberChanId(); }
67 
69  int ifed = getValue_FEDuTCA(eid);
70  int islot = getValue_SlotuTCA(eid);
71  return ifed * SLOT_uTCA_NUM + islot;
72  }
73 
75  int ifed = getValue_FEDVME(eid);
76  int ispigot = getValue_Spigot(eid);
77  return ifed * SPIGOT_NUM + ispigot;
78  }
79 
81  int ifiber = getValue_FiberuTCA(eid);
82  int ifch = getValue_FiberCh(eid);
83  return ifiber * FIBERCH_NUM + ifch;
84  }
85 
87  int ifiber = getValue_FiberVME(eid);
88  int ifch = getValue_FiberCh(eid);
89  return ifiber * FIBERCH_NUM + ifch;
90  }
91 
93  int slbsite = eid.slbSiteNumber();
94  return slbsite - SLB_MIN;
95  }
96 
97  int getValue_SLBCh(HcalElectronicsId const &eid) { return eid.slbChannelIndex() - SLBCH_MIN; }
98 
100  int islb = getValue_SLB(eid);
101  int islbch = getValue_SLBCh(eid);
102  return islb * SLBCH_NUM + islbch;
103  }
104 
105  int getValue_FiberuTCATP(HcalElectronicsId const &eid) { return eid.fiberIndex() - TPFIBER_MIN; }
106 
107  int getValue_FiberChuTCATP(HcalElectronicsId const &eid) { return eid.fiberChanId() - TPFIBERCH_MIN; }
108 
110  int ifib = getValue_FiberuTCATP(eid);
111  int ifibch = getValue_FiberChuTCATP(eid);
112  return ifib * TPFIBERCH_NUM + ifibch;
113  }
114 
115  uint32_t getBin_FED(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FED(eid) + 1); }
116 
117  uint32_t getBin_FEDuTCA(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FEDuTCA(eid) + 1); }
118 
119  uint32_t getBin_FEDVME(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FEDVME(eid) + 1); }
120 
121  uint32_t getBin_Crate(HcalElectronicsId const &eid) { return (uint32_t)(getValue_Crate(eid) + 1); }
122 
123  uint32_t getBin_CrateuTCA(HcalElectronicsId const &eid) { return (uint32_t)(getValue_CrateuTCA(eid) + 1); }
124 
125  uint32_t getBin_CrateVME(HcalElectronicsId const &eid) { return (uint32_t)(getValue_CrateVME(eid) + 1); }
126 
127  uint32_t getBin_SlotuTCA(HcalElectronicsId const &eid) { return (uint32_t)(getValue_SlotuTCA(eid) + 1); }
128 
129  uint32_t getBin_SlotVME(HcalElectronicsId const &eid) { return (uint32_t)(getValue_SlotVME(eid) + 1); }
130 
131  uint32_t getBin_Spigot(HcalElectronicsId const &eid) { return (uint32_t)(getValue_Spigot(eid) + 1); }
132 
133  uint32_t getBin_FiberuTCA(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FiberuTCA(eid) + 1); }
134 
135  uint32_t getBin_FiberVME(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FiberVME(eid) + 1); }
136 
137  uint32_t getBin_FiberCh(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FiberCh(eid) + 1); }
138 
139  uint32_t getBin_FEDuTCASlot(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FEDuTCASlot(eid) + 1); }
140 
141  uint32_t getBin_FEDVMESpigot(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FEDVMESpigot(eid) + 1); }
142 
144  return (uint32_t)(getValue_FiberuTCAFiberCh(eid) + 1);
145  }
146 
148  return (uint32_t)(getValue_FiberVMEFiberCh(eid) + 1);
149  }
150 
151  uint32_t getBin_SLB(HcalElectronicsId const &eid) { return (uint32_t)(getValue_SLB(eid) + 1); }
152 
153  uint32_t getBin_SLBCh(HcalElectronicsId const &eid) { return (uint32_t)(getValue_SLBCh(eid) + 1); }
154 
155  uint32_t getBin_SLBSLBCh(HcalElectronicsId const &eid) { return (uint32_t)(getValue_SLBSLBCh(eid) + 1); }
156 
157  uint32_t getBin_FiberuTCATP(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FiberuTCATP(eid) + 1); }
158 
159  uint32_t getBin_FiberChuTCATP(HcalElectronicsId const &eid) { return (uint32_t)(getValue_FiberChuTCATP(eid) + 1); }
160 
162  return (uint32_t)(getValue_FiberuTCATPFiberChuTCATP(eid) + 1);
163  }
164 
170  FIBERCH_MIN,
171  false);
172  }
173 
175 
180  FIBERCH_MIN,
181  false);
182  }
183 
185  return v < CRATE_VME_NUM
189  }
190 
192 
195  }
196 
199  }
200 
201  // nothing for now...
204  }
205 
207 
212  ? v + FIBER_uTCA_MIN1
214  FIBERCH_MIN,
215  false);
216  }
217 
220  }
221 
224  }
225 
229  return HcalElectronicsId(fedeid.crateId(), sloteid.slot(), FIBER_uTCA_MIN1, FIBERCH_MIN, false);
230  }
231 
235  return HcalElectronicsId(FIBERCH_MIN, FIBER_VME_MIN, spid.spigot(), fedeid.dccid());
236  }
237 
241  return HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN, fibereid.fiberIndex(), fcheid.fiberChanId(), false);
242  }
243 
247  return HcalElectronicsId(fcheid.fiberChanId(), fibereid.fiberIndex(), SPIGOT_MIN, CRATE_VME_MIN);
248  }
249 
252  }
253 
256  }
257 
261  return HcalElectronicsId(slbcheid.slbChannelIndex(),
262  slbeid.slbSiteNumber(),
263  SPIGOT_MIN,
267  0);
268  }
269 
272  }
273 
276  }
277 
281  return HcalElectronicsId(CRATE_uTCA_MIN, SLOT_uTCA_MIN, fibeid.fiberIndex(), fibcheid.fiberChanId(), true);
282  }
283 
284  std::vector<std::string> getLabels_FED() {
285  std::vector<std::string> labels;
286  char name[12];
287  for (int i = 0; i < FED_TOTAL_NUM; i++) {
289  sprintf(name, "%d", eid.isVMEid() ? eid.dccid() + 700 : utilities::crate2fed(eid.crateId(), eid.slot()));
290  labels.push_back(std::string(name));
291  }
292  return labels;
293  }
294 
295  std::vector<std::string> getLabels_FEDuTCA() {
296  std::vector<std::string> labels;
297  char name[12];
298  for (int i = 0; i < FED_uTCA_NUM; i++) {
300  sprintf(name, "%d", utilities::crate2fed(eid.crateId(), eid.slot()));
301  labels.push_back(std::string(name));
302  }
303  return labels;
304  }
305 
306  std::vector<std::string> getLabels_FEDVME() {
307  std::vector<std::string> labels;
308  char name[12];
309  for (int i = 0; i < FED_VME_NUM; i++) {
310  sprintf(name, "%d", getEid_FEDVME(i).dccid() + 700);
311  labels.push_back(std::string(name));
312  }
313  return labels;
314  }
315 
316  std::vector<std::string> getLabels_Crate() {
317  std::vector<std::string> labels;
318  char name[10];
319  for (auto &it_crate : hcaldqm::constants::crateList) {
320  HcalElectronicsId eid = getEid_Crate(it_crate);
321  sprintf(name, "%d%c", it_crate, eid.isVMEid() ? 'v' : 'u');
322  labels.push_back(std::string(name));
323  }
324  return labels;
325  }
326 
327  std::vector<std::string> getLabels_CrateVME() {
328  std::vector<std::string> labels;
329  char name[10];
330  for (auto &it_crate : hcaldqm::constants::crateListVME) {
331  sprintf(name, "%dv", it_crate);
332  labels.push_back(std::string(name));
333  }
334  return labels;
335  }
336 
337  std::vector<std::string> getLabels_CrateuTCA() {
338  std::vector<std::string> labels;
339  char name[10];
340  for (auto &it_crate : hcaldqm::constants::crateListuTCA) {
341  sprintf(name, "%du", it_crate);
342  labels.push_back(std::string(name));
343  }
344  return labels;
345  }
346 
347  std::vector<std::string> getLabels_SlotuTCA() {
348  std::vector<std::string> labels;
349  char name[10];
350  for (int i = 0; i < SLOT_uTCA_NUM; i++) {
352  sprintf(name, "%d", eid.slot());
353  labels.push_back(std::string(name));
354  }
355  return labels;
356  }
357 
358  std::vector<std::string> getLabels_SlotVME() { return std::vector<std::string>(); }
359 
360  std::vector<std::string> getLabels_Spigot() {
361  return std::vector<std::string>();
362  /* std::vector<std::string> labels;
363  char name[10];
364  for (int i=0; i<SPIGOT_NUM; i++)
365  {
366  HcalElectronicsId eid = getEid_Spigot(i);
367  sprintf(name, "%d",
368  eid.spigot());
369  labels.push_back(std::string(name));
370  }
371  return labels;
372  */
373  }
374 
375  std::vector<std::string> getLabels_FiberuTCA() {
376  std::vector<std::string> labels;
377  char name[10];
378  for (int i = 0; i < FIBER_uTCA_NUM; i++) {
380  sprintf(name, "%d", eid.fiberIndex());
381  labels.push_back(std::string(name));
382  }
383  return labels;
384  }
385 
386  std::vector<std::string> getLabels_FiberVME() {
387  std::vector<std::string> labels;
388  char name[10];
389  for (int i = 0; i < FIBER_VME_NUM; i++) {
391  sprintf(name, "%d", eid.fiberIndex());
392  labels.push_back(std::string(name));
393  }
394  return labels;
395  }
396 
397  std::vector<std::string> getLabels_FiberCh() {
398  std::vector<std::string> labels;
399  char name[10];
400  for (int i = 0; i < FIBERCH_NUM; i++) {
402  sprintf(name, "%d", eid.fiberChanId());
403  labels.push_back(std::string(name));
404  }
405  return labels;
406  }
407 
408  std::vector<std::string> getLabels_FEDuTCASlot() {
409  std::vector<std::string> labels;
410  char name[10];
411  for (int i = 0; i < FED_uTCA_NUM; i++)
412  for (int j = 0; j < SLOT_uTCA_NUM; j++) {
413  if (j > 0) {
414  labels.push_back(std::string(""));
415  continue;
416  }
418  sprintf(name, "%d-%d", utilities::crate2fed(eid.crateId(), eid.slot()), eid.slot());
419  labels.push_back(std::string(name));
420  }
421  return labels;
422  }
423 
424  std::vector<std::string> getLabels_FEDVMESpigot() {
425  std::vector<std::string> labels;
426  char name[23];
427  for (int i = 0; i < FED_VME_NUM; i++)
428  for (int j = 0; j < SPIGOT_NUM; j++) {
429  if (j > 0) {
430  labels.push_back(std::string(""));
431  continue;
432  }
433 
435  sprintf(name, "%d-%d", eid.dccid() + FED_VME_MIN, eid.spigot());
436  labels.push_back(std::string(name));
437  }
438  return labels;
439  }
440 
441  std::vector<std::string> getLabels_FiberuTCAFiberCh() {
442  std::vector<std::string> labels;
443  char name[23];
444  for (int i = 0; i < FIBER_uTCA_NUM; i++)
445  for (int j = 0; j < FIBERCH_NUM; j++) {
446  if (j > 0) {
447  labels.push_back(std::string(""));
448  continue;
449  }
450 
452  sprintf(name, "%d-%d", eid.fiberIndex(), eid.fiberChanId());
453  labels.push_back(std::string(name));
454  }
455  return labels;
456  }
457 
458  std::vector<std::string> getLabels_FiberVMEFiberCh() {
459  std::vector<std::string> labels;
460  char name[23];
461  for (int i = 0; i < FIBER_VME_NUM; i++)
462  for (int j = 0; j < FIBERCH_NUM; j++) {
463  if (j > 0) {
464  labels.push_back(std::string(""));
465  continue;
466  }
468  sprintf(name, "%d-%d", eid.fiberIndex(), eid.fiberChanId());
469  labels.push_back(std::string(name));
470  }
471  return labels;
472  }
473 
474  std::vector<std::string> getLabels_SLB() {
475  std::vector<std::string> labels;
476  char name[23];
477  for (int i = 0; i < SLB_NUM; i++) {
479  sprintf(name, "%d", eid.slbSiteNumber());
480  labels.push_back(std::string(name));
481  }
482 
483  return labels;
484  }
485 
486  std::vector<std::string> getLabels_SLBCh() {
487  std::vector<std::string> labels;
488  char name[23];
489  for (int i = 0; i < SLBCH_NUM; i++) {
491  sprintf(name, "%d", eid.slbChannelIndex());
492  labels.push_back(std::string(name));
493  }
494 
495  return labels;
496  }
497 
498  std::vector<std::string> getLabels_SLBSLBCh() {
499  std::vector<std::string> labels;
500  char name[23];
501  for (int i = 0; i < SLB_NUM; i++)
502  for (int j = 0; j < SLBCH_NUM; j++) {
504  sprintf(name, "%d-%d", eid.slbSiteNumber(), eid.slbChannelIndex());
505  labels.push_back(std::string(name));
506  }
507 
508  return labels;
509  }
510 
511  std::vector<std::string> getLabels_FiberuTCATP() {
512  std::vector<std::string> labels;
513  char name[23];
514  for (int i = 0; i < TPFIBER_NUM; i++) {
516  sprintf(name, "%d", eid.fiberIndex());
517  labels.push_back(std::string(name));
518  }
519 
520  return labels;
521  }
522 
523  std::vector<std::string> getLabels_FiberChuTCATP() {
524  std::vector<std::string> labels;
525  char name[23];
526  for (int i = 0; i < TPFIBERCH_NUM; i++) {
528  sprintf(name, "%d", eid.fiberChanId());
529  labels.push_back(std::string(name));
530  }
531 
532  return labels;
533  }
534 
535  std::vector<std::string> getLabels_FiberuTCATPFiberChuTCATP() {
536  std::vector<std::string> labels;
537  char name[10];
538  for (int i = 0; i < TPFIBER_NUM; i++)
539  for (int j = 0; j < TPFIBERCH_NUM; j++) {
541  sprintf(name, "%d-%d", eid.fiberIndex(), eid.fiberChanId());
542  labels.push_back(std::string(name));
543  }
544 
545  return labels;
546  }
547 
548  void FEDQuantity::setup(std::vector<int> const &vFEDs) {
549  for (uint32_t i = 0; i < vFEDs.size(); i++)
550  _feds.insert(std::make_pair(vFEDs[i], i));
551  }
552 
554  int fed = eid.isVMEid() ? eid.dccid() + FED_VME_MIN : utilities::crate2fed(eid.crateId(), eid.slot());
555  return _feds[fed];
556  }
557 
558  uint32_t FEDQuantity::getBin(HcalElectronicsId const &eid) { return getValue(eid) + 1; }
559 
560  std::vector<std::string> FEDQuantity::getLabels() {
561  std::vector<std::string> labels(_feds.size());
562  char name[5];
563  for (auto const &v : _feds) {
564  sprintf(name, "%d", v.first);
565  labels[v.second] = std::string(name);
566  }
567 
568  return labels;
569  }
570 
572  _crates = utilities::getCrateList(emap);
573  _crateHashes = utilities::getCrateHashMap(emap);
574  }
575 
576  void CrateQuantity::setup(std::vector<int> crates, std::map<int, uint32_t> crateHashes) {
577  for (auto &it_crate : crates) {
578  _crates.push_back(it_crate);
579  _crateHashes[it_crate] = crateHashes[it_crate];
580  }
581  }
582 
583  int CrateQuantity::getValue(HcalElectronicsId const &eid) { return eid.crateId(); }
584 
586  int crate = eid.crateId();
587  auto it = std::find(_crates.begin(), _crates.end(), crate);
588  if (it == _crates.end()) {
589  return 0;
590  } else {
591  return std::distance(_crates.begin(), it) + 1;
592  }
593  }
594 
595  std::vector<std::string> CrateQuantity::getLabels() {
596  std::vector<std::string> labels;
597  char name[5];
598  for (auto &it_crate : _crates) {
599  HcalElectronicsId eid(_crateHashes[it_crate]);
600  if (eid.isVMEid()) {
601  sprintf(name, "%dv", it_crate);
602  } else {
603  sprintf(name, "%du", it_crate);
604  }
605  labels.push_back(name);
606  }
607  return labels;
608  }
609 
610  } // namespace quantity
611 } // namespace hcaldqm
constexpr int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
std::vector< std::string > getLabels_Crate()
std::vector< std::string > getLabels_Spigot()
virtual void setup(HcalElectronicsMap const *emap)
std::vector< unsigned int > const fedListVME
Definition: Constants.h:74
virtual void setup(std::vector< int > const &vFEDs)
int const SLOT_VME_MAX1
Definition: Constants.h:117
HcalElectronicsId getEid_FEDuTCASlot(int)
std::vector< unsigned int > const crateListuTCA
Definition: Constants.h:77
uint32_t getBin(HcalElectronicsId const &) override
uint32_t getBin_SlotuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_SLB(int)
uint32_t getBin_SLBSLBCh(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberuTCAFiberCh(int)
int const CRATE_VME_MIN
Definition: Constants.h:99
int const TPFIBER_NUM
Definition: Constants.h:149
std::vector< std::string > getLabels_FED()
int const FIBERCH_NUM
Definition: Constants.h:140
std::pair< uint16_t, uint16_t > fed2crate(int fed)
Definition: Utilities.cc:10
int getValue_FiberChuTCATP(HcalElectronicsId const &)
int getValue_FED(HcalElectronicsId const &)
uint32_t getBin_CrateuTCA(HcalElectronicsId const &)
int getValue_SLBSLBCh(HcalElectronicsId const &)
int getValue_SlotVME(HcalElectronicsId const &)
int getValue_Spigot(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberuTCA(int)
std::vector< std::string > getLabels_SlotVME()
uint16_t crate2fed(int crate, int slot)
Definition: Utilities.cc:29
uint32_t getBin_FiberuTCAFiberCh(HcalElectronicsId const &)
std::vector< std::string > getLabels() override
constexpr int slot() const
get the htr or uHTR slot
std::vector< std::string > getLabels_FiberChuTCATP()
uint32_t getBin_FiberVMEFiberCh(HcalElectronicsId const &)
int getValue_FiberuTCATP(HcalElectronicsId const &)
HcalElectronicsId getEid_SlotVME(int)
uint32_t getBin_FEDVME(HcalElectronicsId const &)
int const SPIGOT_MIN
Definition: Constants.h:124
int const SLBCH_MIN
Definition: Constants.h:151
uint32_t getBin_FiberuTCATP(HcalElectronicsId const &)
std::vector< unsigned int > const fedListuTCA
Definition: Constants.h:70
uint32_t getBin_FiberChuTCATP(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberVMEFiberCh()
int getValue_FiberVME(HcalElectronicsId const &)
uint32_t getBin_FEDuTCASlot(HcalElectronicsId const &)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
int const FIBER_VME_MIN
Definition: Constants.h:129
HcalElectronicsId getEid_CrateVME(int)
std::vector< std::string > getLabels_FiberuTCATPFiberChuTCATP()
std::vector< std::string > getLabels_SLB()
int const SLOT_VME_MIN1
Definition: Constants.h:116
int const FIBERCH_MIN
Definition: Constants.h:138
int const SLOT_VME_MIN2
Definition: Constants.h:118
std::vector< std::string > getLabels_FEDuTCA()
U second(std::pair< T, U > const &p)
HcalElectronicsId getEid_SLBCh(int)
HcalElectronicsId getEid_SlotuTCA(int)
HcalElectronicsId getEid_Spigot(int)
int getValue_SLBCh(HcalElectronicsId const &)
std::vector< std::string > getLabels_FEDVME()
HcalElectronicsId getEid_FiberVME(int)
int getValue(HcalElectronicsId const &) override
int getValue_FiberCh(HcalElectronicsId const &)
uint32_t getBin(HcalElectronicsId const &) override
uint32_t getBin_SLB(HcalElectronicsId const &)
constexpr 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 FED_VME_MIN
Definition: Constants.h:86
HcalElectronicsId getEid_FiberuTCATPFiberChuTCATP(int)
std::vector< std::string > getLabels() override
HcalElectronicsId getEid_FEDuTCA(int)
std::vector< std::string > getLabels_CrateuTCA()
int const FIBER_uTCA_MIN2
Definition: Constants.h:134
uint32_t getBin_FiberVME(HcalElectronicsId const &)
int getValue_Crate(HcalElectronicsId const &)
std::vector< std::string > getLabels_SlotuTCA()
int const FIBER_uTCA_MIN1
Definition: Constants.h:132
int getValue_CrateuTCA(HcalElectronicsId const &)
int getValue_FEDVME(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberuTCATP()
std::vector< unsigned int > const fedList
Definition: Constants.h:66
HcalElectronicsId getEid_FEDVMESpigot(int)
uint32_t getBin_FED(HcalElectronicsId const &)
int getValue(HcalElectronicsId const &) override
int const SLB_NUM
Definition: Constants.h:145
std::map< int, uint32_t > getCrateHashMap(HcalElectronicsMap const *emap)
Definition: Utilities.cc:80
HcalElectronicsId getEid_FiberVMEFiberCh(int)
uint32_t getBin_SlotVME(HcalElectronicsId const &)
int const SLBCH_NUM
Definition: Constants.h:153
int const FIBER_VME_NUM
Definition: Constants.h:131
uint32_t getBin_FEDuTCA(HcalElectronicsId const &)
int const FIBER_uTCA_NUM
Definition: Constants.h:136
int const CRATE_uTCA_MIN
Definition: Constants.h:104
int const SLOT_VME_NUM1
Definition: Constants.h:120
uint32_t getBin_CrateVME(HcalElectronicsId const &)
std::vector< int > getCrateList(HcalElectronicsMap const *emap)
Definition: Utilities.cc:66
int getValue_FiberuTCAFiberCh(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberVME()
std::vector< std::string > getLabels_FiberCh()
int const SPIGOT_NUM
Definition: Constants.h:126
std::vector< unsigned int > const crateList
Definition: Constants.h:75
int getValue_CrateVME(HcalElectronicsId const &)
int const FED_uTCA_NUM
Definition: Constants.h:94
std::vector< std::string > getLabels_FEDVMESpigot()
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
int getValue_SlotuTCA(HcalElectronicsId const &)
int const TPFIBERCH_MIN
Definition: Constants.h:155
int const FED_VME_NUM
Definition: Constants.h:89
std::vector< std::string > getLabels_FEDuTCASlot()
int const CRATE_VME_NUM
Definition: Constants.h:102
constexpr int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
std::vector< unsigned int > const crateListVME
Definition: Constants.h:79
int getValue_FiberVMEFiberCh(HcalElectronicsId const &)
uint32_t getBin_SLBCh(HcalElectronicsId const &)
uint32_t getBin_Spigot(HcalElectronicsId const &)
int getValue_FEDVMESpigot(HcalElectronicsId const &)
int const TPFIBER_MIN
Definition: Constants.h:147
std::vector< std::string > getLabels_SLBCh()
int getValue_FEDuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberCh(int)
int const SLOT_uTCA_NUM
Definition: Constants.h:114
HcalElectronicsId getEid_FiberChuTCATP(int)
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
HcalElectronicsId getEid_FED(int)
int getValue_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberuTCA()
std::vector< std::string > getLabels_CrateVME()
int const FED_TOTAL_NUM
Definition: Constants.h:96
uint32_t getBin_FiberCh(HcalElectronicsId const &)
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
uint32_t getBin_Crate(HcalElectronicsId const &)
uint32_t getBin_FEDVMESpigot(HcalElectronicsId const &)
int getValue_FEDuTCASlot(HcalElectronicsId const &)
uint32_t getBin_FiberuTCA(HcalElectronicsId const &)
constexpr int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
HcalElectronicsId getEid_CrateuTCA(int)
constexpr int crateId() const
get the readout VME crate number
uint32_t getBin_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
int getValue_SLB(HcalElectronicsId const &)
int const TPFIBERCH_NUM
Definition: Constants.h:157
HcalElectronicsId getEid_Crate(int)
HcalElectronicsId getEid_FiberuTCATP(int)
Readout chain identification for Hcal.
int const FIBER_uTCA_MAX1
Definition: Constants.h:133
int const SLB_MIN
Definition: Constants.h:143
HcalElectronicsId getEid_SLBSLBCh(int)
int getValue_FiberuTCA(HcalElectronicsId const &)
int const SLOT_uTCA_MIN
Definition: Constants.h:111
HcalElectronicsId getEid_FEDVME(int)
std::vector< std::string > getLabels_SLBSLBCh()
std::vector< std::string > getLabels_FiberuTCAFiberCh()