CMS 3D CMS Logo

ElectronicsQuantity.cc
Go to the documentation of this file.
2 
3 namespace hcaldqm
4 {
5  using namespace constants;
6  namespace quantity
7  {
9  {
10  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
11  auto it_fed = std::find(std::begin(fedList), std::end(fedList), fed);
12  return ((it_fed == std::end(fedList)) ? -1 : std::distance(fedList.begin(), it_fed));
13  }
14 
16  {
17  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
18  auto it_fed = std::find(std::begin(fedListuTCA), std::end(fedListuTCA), fed);
19  return ((it_fed == std::end(fedListuTCA)) ? -1 : std::distance(fedListuTCA.begin(), it_fed));
20  }
21 
23  {
24  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
25  auto it_fed = std::find(std::begin(fedListVME), std::end(fedListVME), fed);
26  return ((it_fed == std::end(fedListVME)) ? -1 : std::distance(fedListVME.begin(), it_fed));
27 
28  }
29 
31  {
32  unsigned int crate = eid.crateId();
33  auto it_crate = std::find(std::begin(crateList), std::end(crateList), crate);
34  return ((it_crate == std::end(crateList)) ? -1 : std::distance(crateList.begin(), it_crate));
35  }
36 
38  {
39  unsigned int crate = eid.crateId();
40  auto it_crate = std::find(std::begin(crateListuTCA), std::end(crateListuTCA), crate);
41  return ((it_crate == std::end(crateListuTCA)) ? -1 : std::distance(crateListuTCA.begin(), it_crate));
42  }
43 
45  {
46  unsigned int crate = eid.crateId();
47  auto it_crate = std::find(std::begin(crateListVME), std::end(crateListVME), crate);
48  return ((it_crate == std::end(crateListVME)) ? -1 : std::distance(crateListVME.begin(), it_crate));
49  }
50 
52  {
53  return eid.slot()-SLOT_uTCA_MIN;
54  }
55 
57  {
58  int slot = eid.slot();
59  if (slot<=SLOT_VME_MAX1)
60  slot-=SLOT_VME_MIN1;
61  else
62  slot = SLOT_VME_NUM1 + slot-SLOT_VME_MIN2;
63  return slot;
64  }
65 
67  {
68  return eid.spigot();
69  }
70 
72  {
73  int fiber = eid.fiberIndex();
74  if (fiber<=FIBER_uTCA_MAX1)
75  fiber-=FIBER_uTCA_MIN1;
76  else
77  fiber = (FIBER_uTCA_MAX1-FIBER_uTCA_MIN1+1) +
78  fiber-FIBER_uTCA_MIN2;
79  return fiber;
80  }
81 
83  {
84  return eid.fiberIndex()-1;
85  }
86 
88  {
89  return eid.fiberChanId();
90  }
91 
93  {
94  int ifed = getValue_FEDuTCA(eid);
95  int islot = getValue_SlotuTCA(eid);
96  return ifed*SLOT_uTCA_NUM+islot;
97  }
98 
100  {
101  int ifed = getValue_FEDVME(eid);
102  int ispigot = getValue_Spigot(eid);
103  return ifed*SPIGOT_NUM+ispigot;
104  }
105 
107  {
108  int ifiber = getValue_FiberuTCA(eid);
109  int ifch = getValue_FiberCh(eid);
110  return ifiber*FIBERCH_NUM+ifch;
111  }
112 
114  {
115  int ifiber = getValue_FiberVME(eid);
116  int ifch = getValue_FiberCh(eid);
117  return ifiber*FIBERCH_NUM+ifch;
118  }
119 
121  {
122  int slbsite = eid.slbSiteNumber();
123  return slbsite-SLB_MIN;
124  }
125 
127  {
128  return eid.slbChannelIndex()-SLBCH_MIN;
129  }
130 
132  {
133  int islb = getValue_SLB(eid);
134  int islbch = getValue_SLBCh(eid);
135  return islb*SLBCH_NUM+islbch;
136  }
137 
139  {
140  return eid.fiberIndex()-TPFIBER_MIN;
141  }
142 
144  {
145  return eid.fiberChanId()-TPFIBERCH_MIN;
146  }
147 
149  {
150  int ifib = getValue_FiberuTCATP(eid);
151  int ifibch = getValue_FiberChuTCATP(eid);
152  return ifib*TPFIBERCH_NUM+ifibch;
153  }
154 
156  {
157  return (uint32_t)(getValue_FED(eid)+1);
158  }
159 
161  {
162  return (uint32_t)(getValue_FEDuTCA(eid)+1);
163  }
164 
166  {
167  return (uint32_t)(getValue_FEDVME(eid)+1);
168  }
169 
171  {
172  return (uint32_t)(getValue_Crate(eid)+1);
173  }
174 
176  {
177  return (uint32_t)(getValue_CrateuTCA(eid)+1);
178  }
179 
181  {
182  return (uint32_t)(getValue_CrateVME(eid)+1);
183  }
184 
186  {
187  return (uint32_t)(getValue_SlotuTCA(eid)+1);
188  }
189 
191  {
192  return (uint32_t)(getValue_SlotVME(eid)+1);
193  }
194 
196  {
197  return (uint32_t)(getValue_Spigot(eid)+1);
198  }
199 
201  {
202  return (uint32_t)(getValue_FiberuTCA(eid)+1);
203  }
204 
206  {
207  return (uint32_t)(getValue_FiberVME(eid)+1);
208  }
209 
211  {
212  return (uint32_t)(getValue_FiberCh(eid)+1);
213  }
214 
216  {
217  return (uint32_t)(getValue_FEDuTCASlot(eid)+1);
218  }
219 
221  {
222  return (uint32_t)(getValue_FEDVMESpigot(eid)+1);
223  }
224 
226  {
227  return (uint32_t)(getValue_FiberuTCAFiberCh(eid)+1);
228  }
229 
231  {
232  return (uint32_t)(getValue_FiberVMEFiberCh(eid)+1);
233  }
234 
236  {
237  return (uint32_t)(getValue_SLB(eid)+1);
238  }
239 
241  {
242  return (uint32_t)(getValue_SLBCh(eid)+1);
243  }
244 
246  {
247  return (uint32_t)(getValue_SLBSLBCh(eid)+1);
248  }
249 
251  {
252  return (uint32_t)(getValue_FiberuTCATP(eid)+1);
253  }
254 
256  {
257  return (uint32_t)(getValue_FiberChuTCATP(eid)+1);
258  }
259 
261  {
262  return (uint32_t)(getValue_FiberuTCATPFiberChuTCATP(eid)+1);
263  }
264 
266  {
269  HcalElectronicsId(utilities::fed2crate(v-FED_VME_NUM+1100).first,
271  FIBERCH_MIN, false);
272  }
273 
275  {
278  }
279 
281  {
284  FIBER_uTCA_MIN1, FIBERCH_MIN, false);
285  }
286 
288  {
289  return v<CRATE_VME_NUM ?
291  HcalElectronicsId(v-CRATE_VME_NUM+CRATE_uTCA_MIN,
293  }
294 
296  {
298  SPIGOT_MIN, v);
299  }
300 
302  {
305  }
306 
308  {
311  }
312 
313  // nothing for now...
315  {
316  return
319  }
320 
322  {
324  v, CRATE_VME_MIN);
325  }
326 
328  {
333  FIBERCH_MIN, false);
334  }
335 
337  {
338  return HcalElectronicsId(FIBERCH_MIN, v+1,
340  }
341 
343  {
345  FIBER_uTCA_MIN1, v, false);
346  }
347 
349  {
352  return HcalElectronicsId(
353  fedeid.crateId(), sloteid.slot(), FIBER_uTCA_MIN1,
354  FIBERCH_MIN, false);
355  }
356 
358  {
362  spid.spigot(), fedeid.dccid());
363  }
364 
366  {
370  fibereid.fiberIndex(), fcheid.fiberChanId(), false);
371  }
372 
374  {
377  return HcalElectronicsId(fcheid.fiberChanId(),
378  fibereid.fiberIndex(), SPIGOT_MIN, CRATE_VME_MIN);
379  }
380 
382  {
385  0);
386  }
387 
389  {
392  0);
393  }
394 
396  {
399  return HcalElectronicsId(slbcheid.slbChannelIndex(),
402  }
403 
405  {
408  }
409 
411  {
414  }
415 
417  {
421  fibeid.fiberIndex(), fibcheid.fiberChanId(), true);
422  }
423 
424  std::vector<std::string> getLabels_FED()
425  {
426  std::vector<std::string> labels;
427  char name[10];
428  for (int i=0; i<FED_TOTAL_NUM; i++)
429  {
431  sprintf(name, "%d",
432  eid.isVMEid()?eid.dccid()+700:utilities::crate2fed(eid.crateId(),eid.slot()));
433  labels.push_back(std::string(name));
434  }
435  return labels;
436  }
437 
438  std::vector<std::string> getLabels_FEDuTCA()
439  {
440  std::vector<std::string> labels;
441  char name[10];
442  for (int i=0; i<FED_uTCA_NUM; i++)
443  {
445  sprintf(name, "%d",
446  utilities::crate2fed(eid.crateId(),eid.slot()));
447  labels.push_back(std::string(name));
448  }
449  return labels;
450  }
451 
452  std::vector<std::string> getLabels_FEDVME()
453  {
454  std::vector<std::string> labels;
455  char name[10];
456  for (int i=0; i<FED_VME_NUM; i++)
457  {
458  sprintf(name, "%d",
459  getEid_FEDVME(i).dccid()+700);
460  labels.push_back(std::string(name));
461  }
462  return labels;
463  }
464 
465  std::vector<std::string> getLabels_Crate()
466  {
467  std::vector<std::string> labels;
468  char name[10];
469  for (auto& it_crate : hcaldqm::constants::crateList) {
470  HcalElectronicsId eid = getEid_Crate(it_crate);
471  sprintf(name, "%d%c",
472  it_crate, eid.isVMEid()?'v':'u');
473  labels.push_back(std::string(name));
474  }
475  return labels;
476  }
477 
478  std::vector<std::string> getLabels_CrateVME()
479  {
480  std::vector<std::string> labels;
481  char name[10];
482  for (auto& it_crate : hcaldqm::constants::crateListVME) {
483  sprintf(name, "%dv", it_crate);
484  labels.push_back(std::string(name));
485  }
486  return labels;
487  }
488 
489  std::vector<std::string> getLabels_CrateuTCA()
490  {
491  std::vector<std::string> labels;
492  char name[10];
493  for (auto& it_crate : hcaldqm::constants::crateListuTCA) {
494  sprintf(name, "%du", it_crate);
495  labels.push_back(std::string(name));
496  }
497  return labels;
498  }
499 
500  std::vector<std::string> getLabels_SlotuTCA()
501  {
502  std::vector<std::string> labels;
503  char name[10];
504  for (int i=0; i<SLOT_uTCA_NUM; i++)
505  {
507  sprintf(name, "%d",
508  eid.slot());
509  labels.push_back(std::string(name));
510  }
511  return labels;
512  }
513 
514  std::vector<std::string> getLabels_SlotVME()
515  {
516  return std::vector<std::string>();
517  }
518 
519  std::vector<std::string> getLabels_Spigot()
520  {
521  return std::vector<std::string>();
522 /* std::vector<std::string> labels;
523  char name[10];
524  for (int i=0; i<SPIGOT_NUM; i++)
525  {
526  HcalElectronicsId eid = getEid_Spigot(i);
527  sprintf(name, "%d",
528  eid.spigot());
529  labels.push_back(std::string(name));
530  }
531  return labels;
532  */
533  }
534 
535  std::vector<std::string> getLabels_FiberuTCA()
536  {
537  std::vector<std::string> labels;
538  char name[10];
539  for (int i=0; i<FIBER_uTCA_NUM; i++)
540  {
542  sprintf(name, "%d",
543  eid.fiberIndex());
544  labels.push_back(std::string(name));
545  }
546  return labels;
547  }
548 
549  std::vector<std::string> getLabels_FiberVME()
550  {
551  std::vector<std::string> labels;
552  char name[10];
553  for (int i=0; i<FIBER_VME_NUM; i++)
554  {
556  sprintf(name, "%d",
557  eid.fiberIndex());
558  labels.push_back(std::string(name));
559  }
560  return labels;
561  }
562 
563  std::vector<std::string> getLabels_FiberCh()
564  {
565  std::vector<std::string> labels;
566  char name[10];
567  for (int i=0; i<FIBERCH_NUM; i++)
568  {
570  sprintf(name, "%d",
571  eid.fiberChanId());
572  labels.push_back(std::string(name));
573  }
574  return labels;
575  }
576 
577  std::vector<std::string> getLabels_FEDuTCASlot()
578  {
579  std::vector<std::string> labels;
580  char name[10];
581  for (int i=0; i<FED_uTCA_NUM; i++)
582  for (int j=0; j<SLOT_uTCA_NUM; j++)
583  {
584  if (j>0)
585  {
586  labels.push_back(std::string(""));
587  continue;
588  }
590  i*SLOT_uTCA_NUM+j);
591  sprintf(name, "%d-%d",
592  utilities::crate2fed(eid.crateId(),eid.slot()),
593  eid.slot());
594  labels.push_back(std::string(name));
595  }
596  return labels;
597  }
598 
599  std::vector<std::string> getLabels_FEDVMESpigot()
600  {
601  std::vector<std::string> labels;
602  char name[10];
603  for (int i=0; i<FED_VME_NUM; i++)
604  for (int j=0; j<SPIGOT_NUM; j++)
605  {
606  if (j>0)
607  {
608  labels.push_back(std::string(""));
609  continue;
610  }
611 
613  i*SPIGOT_NUM+j);
614  sprintf(name, "%d-%d",
615  eid.dccid()+FED_VME_MIN, eid.spigot());
616  labels.push_back(std::string(name));
617  }
618  return labels;
619  }
620 
621  std::vector<std::string> getLabels_FiberuTCAFiberCh()
622  {
623  std::vector<std::string> labels;
624  char name[10];
625  for (int i=0; i<FIBER_uTCA_NUM; i++)
626  for (int j=0; j<FIBERCH_NUM; j++)
627  {
628  if (j>0)
629  {
630  labels.push_back(std::string(""));
631  continue;
632  }
633 
635  i*FIBERCH_NUM+j);
636  sprintf(name, "%d-%d", eid.fiberIndex(),
637  eid.fiberChanId());
638  labels.push_back(std::string(name));
639  }
640  return labels;
641  }
642 
643  std::vector<std::string> getLabels_FiberVMEFiberCh()
644  {
645  std::vector<std::string> labels;
646  char name[10];
647  for (int i=0; i<FIBER_VME_NUM; i++)
648  for (int j=0; j<FIBERCH_NUM; j++)
649  {
650  if (j>0)
651  {
652  labels.push_back(std::string(""));
653  continue;
654  }
656  i*FIBERCH_NUM+j);
657  sprintf(name, "%d-%d", eid.fiberIndex(),
658  eid.fiberChanId());
659  labels.push_back(std::string(name));
660  }
661  return labels;
662  }
663 
664  std::vector<std::string> getLabels_SLB()
665  {
666  std::vector<std::string> labels;
667  char name[10];
668  for (int i=0; i<SLB_NUM; i++)
669  {
671  sprintf(name, "%d", eid.slbSiteNumber());
672  labels.push_back(std::string(name));
673  }
674 
675  return labels;
676  }
677 
678  std::vector<std::string> getLabels_SLBCh()
679  {
680  std::vector<std::string> labels;
681  char name[10];
682  for (int i=0; i<SLBCH_NUM; i++)
683  {
685  sprintf(name, "%d", eid.slbChannelIndex());
686  labels.push_back(std::string(name));
687  }
688 
689  return labels;
690  }
691 
692  std::vector<std::string> getLabels_SLBSLBCh()
693  {
694  std::vector<std::string> labels;
695  char name[10];
696  for (int i=0; i<SLB_NUM; i++)
697  for (int j=0; j<SLBCH_NUM; j++)
698  {
699  HcalElectronicsId eid=getEid_SLBSLBCh(i*SLBCH_NUM+j);
700  sprintf(name, "%d-%d", eid.slbSiteNumber(),
701  eid.slbChannelIndex());
702  labels.push_back(std::string(name));
703  }
704 
705  return labels;
706  }
707 
708  std::vector<std::string> getLabels_FiberuTCATP()
709  {
710  std::vector<std::string> labels;
711  char name[10];
712  for (int i=0; i<TPFIBER_NUM; i++)
713  {
715  sprintf(name, "%d", eid.fiberIndex());
716  labels.push_back(std::string(name));
717  }
718 
719  return labels;
720  }
721 
722  std::vector<std::string> getLabels_FiberChuTCATP()
723  {
724  std::vector<std::string> labels;
725  char name[10];
726  for (int i=0; i<TPFIBERCH_NUM; i++)
727  {
729  sprintf(name, "%d", eid.fiberChanId());
730  labels.push_back(std::string(name));
731  }
732 
733  return labels;
734  }
735 
736  std::vector<std::string> getLabels_FiberuTCATPFiberChuTCATP()
737  {
738  std::vector<std::string> labels;
739  char name[10];
740  for (int i=0; i<TPFIBER_NUM; i++)
741  for (int j=0; j<TPFIBERCH_NUM; j++)
742  {
744  i*TPFIBERCH_NUM+j);
745  sprintf(name, "%d-%d", eid.fiberIndex(),
746  eid.fiberChanId());
747  labels.push_back(std::string(name));
748  }
749 
750  return labels;
751  }
752 
753  void FEDQuantity::setup(std::vector<int> const& vFEDs)
754  {
755  for (uint32_t i=0; i<vFEDs.size(); i++)
756  _feds.insert(std::make_pair(vFEDs[i], i));
757  }
758 
760  {
761  int fed = eid.isVMEid()?eid.dccid()+FED_VME_MIN:
762  utilities::crate2fed(eid.crateId(),eid.slot());
763  return _feds[fed];
764  }
765 
767  {
768  return getValue(eid)+1;
769  }
770 
771  std::vector<std::string> FEDQuantity::getLabels()
772  {
773  std::vector<std::string> labels(_feds.size());
774  char name[5];
775  BOOST_FOREACH(FEDMap::value_type &v, _feds)
776  {
777  sprintf(name, "%d", v.first);
778  labels[v.second] = std::string(name);
779  }
780 
781  return labels;
782  }
783 
784 
786  {
787  _crates = utilities::getCrateList(emap);
788  _crateHashes = utilities::getCrateHashMap(emap);
789  }
790 
791  void CrateQuantity::setup(std::vector<int> crates, std::map<int, uint32_t> crateHashes) {
792  for (auto& it_crate : crates) {
793  _crates.push_back(it_crate);
794  _crateHashes[it_crate] = crateHashes[it_crate];
795  }
796  }
797 
799  {
800  return eid.crateId();
801  }
802 
804  {
805  int crate = eid.crateId();
806  auto it = std::find(_crates.begin(), _crates.end(), crate);
807  if (it == _crates.end()) {
808  return 0;
809  } else {
810  return std::distance(_crates.begin(), it) + 1;
811  }
812  }
813 
814  std::vector<std::string> CrateQuantity::getLabels()
815  {
816  std::vector<std::string> labels;
817  char name[5];
818  for (auto& it_crate : _crates) {
819  HcalElectronicsId eid(_crateHashes[it_crate]);
820  if (eid.isVMEid()) {
821  sprintf(name, "%dv", it_crate);
822  } else {
823  sprintf(name, "%du", it_crate);
824  }
825  labels.push_back(name);
826  }
827  return labels;
828  }
829 
830  }
831 }
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:89
virtual void setup(std::vector< int > const &vFEDs)
int const SLOT_VME_MAX1
Definition: Constants.h:129
HcalElectronicsId getEid_FEDuTCASlot(int)
std::vector< unsigned int > const crateListuTCA
Definition: Constants.h:91
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:111
int const TPFIBER_NUM
Definition: Constants.h:162
std::vector< std::string > getLabels_FED()
int const FIBERCH_NUM
Definition: Constants.h:153
std::pair< uint16_t, uint16_t > fed2crate(int fed)
Definition: Utilities.cc:12
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:30
uint32_t getBin_FiberuTCAFiberCh(HcalElectronicsId const &)
std::vector< std::string > getLabels() override
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:136
int const SLBCH_MIN
Definition: Constants.h:164
uint32_t getBin_FiberuTCATP(HcalElectronicsId const &)
constexpr int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
std::vector< unsigned int > const fedListuTCA
Definition: Constants.h:88
uint32_t getBin_FiberChuTCATP(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberVMEFiberCh()
int getValue_FiberVME(HcalElectronicsId const &)
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
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:20
int const FIBER_VME_MIN
Definition: Constants.h:141
HcalElectronicsId getEid_CrateVME(int)
std::vector< std::string > getLabels_FiberuTCATPFiberChuTCATP()
std::vector< std::string > getLabels_SLB()
int const SLOT_VME_MIN1
Definition: Constants.h:128
int const FIBERCH_MIN
Definition: Constants.h:151
int const SLOT_VME_MIN2
Definition: Constants.h:130
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 &)
constexpr bool isVMEid() const
uint32_t getBin(HcalElectronicsId const &) override
uint32_t getBin_SLB(HcalElectronicsId const &)
int const FED_VME_MIN
Definition: Constants.h:98
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:146
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:144
int getValue_CrateuTCA(HcalElectronicsId const &)
int getValue_FEDVME(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberuTCATP()
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
constexpr int crateId() const
get the readout VME crate number
std::vector< unsigned int > const fedList
Definition: Constants.h:87
HcalElectronicsId getEid_FEDVMESpigot(int)
#define end
Definition: vmac.h:39
uint32_t getBin_FED(HcalElectronicsId const &)
int getValue(HcalElectronicsId const &) override
int const SLB_NUM
Definition: Constants.h:158
std::map< int, uint32_t > getCrateHashMap(HcalElectronicsMap const *emap)
Definition: Utilities.cc:77
HcalElectronicsId getEid_FiberVMEFiberCh(int)
uint32_t getBin_SlotVME(HcalElectronicsId const &)
int const SLBCH_NUM
Definition: Constants.h:166
int const FIBER_VME_NUM
Definition: Constants.h:143
uint32_t getBin_FEDuTCA(HcalElectronicsId const &)
int const FIBER_uTCA_NUM
Definition: Constants.h:148
int const CRATE_uTCA_MIN
Definition: Constants.h:116
int const SLOT_VME_NUM1
Definition: Constants.h:132
uint32_t getBin_CrateVME(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...
std::vector< int > getCrateList(HcalElectronicsMap const *emap)
Definition: Utilities.cc:63
int getValue_FiberuTCAFiberCh(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberVME()
std::vector< std::string > getLabels_FiberCh()
int const SPIGOT_NUM
Definition: Constants.h:138
std::vector< unsigned int > const crateList
Definition: Constants.h:90
int getValue_CrateVME(HcalElectronicsId const &)
int const FED_uTCA_NUM
Definition: Constants.h:106
std::vector< std::string > getLabels_FEDVMESpigot()
int getValue_SlotuTCA(HcalElectronicsId const &)
int const TPFIBERCH_MIN
Definition: Constants.h:168
int const FED_VME_NUM
Definition: Constants.h:101
std::vector< std::string > getLabels_FEDuTCASlot()
int const CRATE_VME_NUM
Definition: Constants.h:114
std::vector< unsigned int > const crateListVME
Definition: Constants.h:92
int getValue_FiberVMEFiberCh(HcalElectronicsId const &)
constexpr int slot() const
get the htr or uHTR slot
uint32_t getBin_SLBCh(HcalElectronicsId const &)
uint32_t getBin_Spigot(HcalElectronicsId const &)
int getValue_FEDVMESpigot(HcalElectronicsId const &)
#define begin
Definition: vmac.h:32
int const TPFIBER_MIN
Definition: Constants.h:160
std::vector< std::string > getLabels_SLBCh()
int getValue_FEDuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberCh(int)
int const SLOT_uTCA_NUM
Definition: Constants.h:126
HcalElectronicsId getEid_FiberChuTCATP(int)
HcalElectronicsId getEid_FED(int)
constexpr int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
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:108
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 fiberChanId() const
get the fiber channel id (which of channels on a fiber)
HcalElectronicsId getEid_CrateuTCA(int)
uint32_t getBin_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
int getValue_SLB(HcalElectronicsId const &)
int const TPFIBERCH_NUM
Definition: Constants.h:170
HcalElectronicsId getEid_Crate(int)
HcalElectronicsId getEid_FiberuTCATP(int)
Readout chain identification for Hcal.
int const FIBER_uTCA_MAX1
Definition: Constants.h:145
int const SLB_MIN
Definition: Constants.h:156
HcalElectronicsId getEid_SLBSLBCh(int)
int getValue_FiberuTCA(HcalElectronicsId const &)
int const SLOT_uTCA_MIN
Definition: Constants.h:123
HcalElectronicsId getEid_FEDVME(int)
std::vector< std::string > getLabels_SLBSLBCh()
std::vector< std::string > getLabels_FiberuTCAFiberCh()