CMS 3D CMS Logo

ElectronicsQuantity.cc
Go to the documentation of this file.
2 
3 namespace hcaldqm
4 {
5  namespace quantity
6  {
8  {
9  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
10  auto it_fed = std::find(std::begin(fedList), std::end(fedList), fed);
11  return ((it_fed == std::end(fedList)) ? -1 : std::distance(fedList.begin(), it_fed));
12  }
13 
15  {
16  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
17  auto it_fed = std::find(std::begin(fedListuTCA), std::end(fedListuTCA), fed);
18  return ((it_fed == std::end(fedListuTCA)) ? -1 : std::distance(fedListuTCA.begin(), it_fed));
19  }
20 
22  {
23  unsigned int fed = utilities::crate2fed(eid.crateId(), eid.slot());
24  auto it_fed = std::find(std::begin(fedListVME), std::end(fedListVME), fed);
25  return ((it_fed == std::end(fedListVME)) ? -1 : std::distance(fedListVME.begin(), it_fed));
26 
27  }
28 
30  {
31  unsigned int crate = eid.crateId();
32  auto it_crate = std::find(std::begin(crateList), std::end(crateList), crate);
33  return ((it_crate == std::end(crateList)) ? -1 : std::distance(crateList.begin(), it_crate));
34  }
35 
37  {
38  unsigned int crate = eid.crateId();
39  auto it_crate = std::find(std::begin(crateListuTCA), std::end(crateListuTCA), crate);
40  return ((it_crate == std::end(crateListuTCA)) ? -1 : std::distance(crateListuTCA.begin(), it_crate));
41  }
42 
44  {
45  unsigned int crate = eid.crateId();
46  auto it_crate = std::find(std::begin(crateListVME), std::end(crateListVME), crate);
47  return ((it_crate == std::end(crateListVME)) ? -1 : std::distance(crateListVME.begin(), it_crate));
48  }
49 
51  {
52  return eid.slot()-SLOT_uTCA_MIN;
53  }
54 
56  {
57  int slot = eid.slot();
58  if (slot<=SLOT_VME_MAX1)
59  slot-=SLOT_VME_MIN1;
60  else
61  slot = SLOT_VME_NUM1 + slot-SLOT_VME_MIN2;
62  return slot;
63  }
64 
66  {
67  return eid.spigot();
68  }
69 
71  {
72  int fiber = eid.fiberIndex();
73  if (fiber<=FIBER_uTCA_MAX1)
74  fiber-=FIBER_uTCA_MIN1;
75  else
76  fiber = (FIBER_uTCA_MAX1-FIBER_uTCA_MIN1+1) +
77  fiber-FIBER_uTCA_MIN2;
78  return fiber;
79  }
80 
82  {
83  return eid.fiberIndex()-1;
84  }
85 
87  {
88  return eid.fiberChanId();
89  }
90 
92  {
93  int ifed = getValue_FEDuTCA(eid);
94  int islot = getValue_SlotuTCA(eid);
95  return ifed*SLOT_uTCA_NUM+islot;
96  }
97 
99  {
100  int ifed = getValue_FEDVME(eid);
101  int ispigot = getValue_Spigot(eid);
102  return ifed*SPIGOT_NUM+ispigot;
103  }
104 
106  {
107  int ifiber = getValue_FiberuTCA(eid);
108  int ifch = getValue_FiberCh(eid);
109  return ifiber*FIBERCH_NUM+ifch;
110  }
111 
113  {
114  int ifiber = getValue_FiberVME(eid);
115  int ifch = getValue_FiberCh(eid);
116  return ifiber*FIBERCH_NUM+ifch;
117  }
118 
120  {
121  int slbsite = eid.slbSiteNumber();
122  return slbsite-SLB_MIN;
123  }
124 
126  {
127  return eid.slbChannelIndex()-SLBCH_MIN;
128  }
129 
131  {
132  int islb = getValue_SLB(eid);
133  int islbch = getValue_SLBCh(eid);
134  return islb*SLBCH_NUM+islbch;
135  }
136 
138  {
139  return eid.fiberIndex()-TPFIBER_MIN;
140  }
141 
143  {
144  return eid.fiberChanId()-TPFIBERCH_MIN;
145  }
146 
148  {
149  int ifib = getValue_FiberuTCATP(eid);
150  int ifibch = getValue_FiberChuTCATP(eid);
151  return ifib*TPFIBERCH_NUM+ifibch;
152  }
153 
155  {
156  return (uint32_t)(getValue_FED(eid)+1);
157  }
158 
160  {
161  return (uint32_t)(getValue_FEDuTCA(eid)+1);
162  }
163 
165  {
166  return (uint32_t)(getValue_FEDVME(eid)+1);
167  }
168 
170  {
171  return (uint32_t)(getValue_Crate(eid)+1);
172  }
173 
175  {
176  return (uint32_t)(getValue_CrateuTCA(eid)+1);
177  }
178 
180  {
181  return (uint32_t)(getValue_CrateVME(eid)+1);
182  }
183 
185  {
186  return (uint32_t)(getValue_SlotuTCA(eid)+1);
187  }
188 
190  {
191  return (uint32_t)(getValue_SlotVME(eid)+1);
192  }
193 
195  {
196  return (uint32_t)(getValue_Spigot(eid)+1);
197  }
198 
200  {
201  return (uint32_t)(getValue_FiberuTCA(eid)+1);
202  }
203 
205  {
206  return (uint32_t)(getValue_FiberVME(eid)+1);
207  }
208 
210  {
211  return (uint32_t)(getValue_FiberCh(eid)+1);
212  }
213 
215  {
216  return (uint32_t)(getValue_FEDuTCASlot(eid)+1);
217  }
218 
220  {
221  return (uint32_t)(getValue_FEDVMESpigot(eid)+1);
222  }
223 
225  {
226  return (uint32_t)(getValue_FiberuTCAFiberCh(eid)+1);
227  }
228 
230  {
231  return (uint32_t)(getValue_FiberVMEFiberCh(eid)+1);
232  }
233 
235  {
236  return (uint32_t)(getValue_SLB(eid)+1);
237  }
238 
240  {
241  return (uint32_t)(getValue_SLBCh(eid)+1);
242  }
243 
245  {
246  return (uint32_t)(getValue_SLBSLBCh(eid)+1);
247  }
248 
250  {
251  return (uint32_t)(getValue_FiberuTCATP(eid)+1);
252  }
253 
255  {
256  return (uint32_t)(getValue_FiberChuTCATP(eid)+1);
257  }
258 
260  {
261  return (uint32_t)(getValue_FiberuTCATPFiberChuTCATP(eid)+1);
262  }
263 
265  {
268  HcalElectronicsId(utilities::fed2crate(v-FED_VME_NUM+1100).first,
270  FIBERCH_MIN, false);
271  }
272 
274  {
277  }
278 
280  {
283  FIBER_uTCA_MIN1, FIBERCH_MIN, false);
284  }
285 
287  {
288  return v<CRATE_VME_NUM ?
290  HcalElectronicsId(v-CRATE_VME_NUM+CRATE_uTCA_MIN,
292  }
293 
295  {
297  SPIGOT_MIN, v);
298  }
299 
301  {
304  }
305 
307  {
310  }
311 
312  // nothing for now...
314  {
315  return
318  }
319 
321  {
323  v, CRATE_VME_MIN);
324  }
325 
327  {
332  FIBERCH_MIN, false);
333  }
334 
336  {
337  return HcalElectronicsId(FIBERCH_MIN, v+1,
339  }
340 
342  {
344  FIBER_uTCA_MIN1, v, false);
345  }
346 
348  {
351  return HcalElectronicsId(
352  fedeid.crateId(), sloteid.slot(), FIBER_uTCA_MIN1,
353  FIBERCH_MIN, false);
354  }
355 
357  {
361  spid.spigot(), fedeid.dccid());
362  }
363 
365  {
369  fibereid.fiberIndex(), fcheid.fiberChanId(), false);
370  }
371 
373  {
376  return HcalElectronicsId(fcheid.fiberChanId(),
377  fibereid.fiberIndex(), SPIGOT_MIN, CRATE_VME_MIN);
378  }
379 
381  {
384  0);
385  }
386 
388  {
391  0);
392  }
393 
395  {
398  return HcalElectronicsId(slbcheid.slbChannelIndex(),
401  }
402 
404  {
407  }
408 
410  {
413  }
414 
416  {
420  fibeid.fiberIndex(), fibcheid.fiberChanId(), true);
421  }
422 
423  std::vector<std::string> getLabels_FED()
424  {
425  std::vector<std::string> labels;
426  char name[10];
427  for (int i=0; i<FED_TOTAL_NUM; i++)
428  {
430  sprintf(name, "%d",
431  eid.isVMEid()?eid.dccid()+700:utilities::crate2fed(eid.crateId(),eid.slot()));
432  labels.push_back(std::string(name));
433  }
434  return labels;
435  }
436 
437  std::vector<std::string> getLabels_FEDuTCA()
438  {
439  std::vector<std::string> labels;
440  char name[10];
441  for (int i=0; i<FED_uTCA_NUM; i++)
442  {
444  sprintf(name, "%d",
445  utilities::crate2fed(eid.crateId(),eid.slot()));
446  labels.push_back(std::string(name));
447  }
448  return labels;
449  }
450 
451  std::vector<std::string> getLabels_FEDVME()
452  {
453  std::vector<std::string> labels;
454  char name[10];
455  for (int i=0; i<FED_VME_NUM; i++)
456  {
457  sprintf(name, "%d",
458  getEid_FEDVME(i).dccid()+700);
459  labels.push_back(std::string(name));
460  }
461  return labels;
462  }
463 
464  std::vector<std::string> getLabels_Crate()
465  {
466  std::vector<std::string> labels;
467  char name[10];
468  for (int i=0; i<CRATE_TOTAL_NUM; i++)
469  {
471  sprintf(name, "%d%c",
472  eid.crateId(), 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 (int i=0; i<CRATE_VME_NUM; i++)
483  {
485  sprintf(name, "%dv",
486  eid.crateId());
487  labels.push_back(std::string(name));
488  }
489  return labels;
490  }
491 
492  std::vector<std::string> getLabels_CrateuTCA()
493  {
494  std::vector<std::string> labels;
495  char name[10];
496  for (int i=0; i<CRATE_uTCA_NUM; i++)
497  {
499  sprintf(name, "%du",
500  eid.crateId());
501  labels.push_back(std::string(name));
502  }
503  return labels;
504  }
505 
506  std::vector<std::string> getLabels_SlotuTCA()
507  {
508  std::vector<std::string> labels;
509  char name[10];
510  for (int i=0; i<SLOT_uTCA_NUM; i++)
511  {
513  sprintf(name, "%d",
514  eid.slot());
515  labels.push_back(std::string(name));
516  }
517  return labels;
518  }
519 
520  std::vector<std::string> getLabels_SlotVME()
521  {
522  return std::vector<std::string>();
523  }
524 
525  std::vector<std::string> getLabels_Spigot()
526  {
527  return std::vector<std::string>();
528 /* std::vector<std::string> labels;
529  char name[10];
530  for (int i=0; i<SPIGOT_NUM; i++)
531  {
532  HcalElectronicsId eid = getEid_Spigot(i);
533  sprintf(name, "%d",
534  eid.spigot());
535  labels.push_back(std::string(name));
536  }
537  return labels;
538  */
539  }
540 
541  std::vector<std::string> getLabels_FiberuTCA()
542  {
543  std::vector<std::string> labels;
544  char name[10];
545  for (int i=0; i<FIBER_uTCA_NUM; i++)
546  {
548  sprintf(name, "%d",
549  eid.fiberIndex());
550  labels.push_back(std::string(name));
551  }
552  return labels;
553  }
554 
555  std::vector<std::string> getLabels_FiberVME()
556  {
557  std::vector<std::string> labels;
558  char name[10];
559  for (int i=0; i<FIBER_VME_NUM; i++)
560  {
562  sprintf(name, "%d",
563  eid.fiberIndex());
564  labels.push_back(std::string(name));
565  }
566  return labels;
567  }
568 
569  std::vector<std::string> getLabels_FiberCh()
570  {
571  std::vector<std::string> labels;
572  char name[10];
573  for (int i=0; i<FIBERCH_NUM; i++)
574  {
576  sprintf(name, "%d",
577  eid.fiberChanId());
578  labels.push_back(std::string(name));
579  }
580  return labels;
581  }
582 
583  std::vector<std::string> getLabels_FEDuTCASlot()
584  {
585  std::vector<std::string> labels;
586  char name[10];
587  for (int i=0; i<FED_uTCA_NUM; i++)
588  for (int j=0; j<SLOT_uTCA_NUM; j++)
589  {
590  if (j>0)
591  {
592  labels.push_back(std::string(""));
593  continue;
594  }
596  i*SLOT_uTCA_NUM+j);
597  sprintf(name, "%d-%d",
598  utilities::crate2fed(eid.crateId(),eid.slot()),
599  eid.slot());
600  labels.push_back(std::string(name));
601  }
602  return labels;
603  }
604 
605  std::vector<std::string> getLabels_FEDVMESpigot()
606  {
607  std::vector<std::string> labels;
608  char name[10];
609  for (int i=0; i<FED_VME_NUM; i++)
610  for (int j=0; j<SPIGOT_NUM; j++)
611  {
612  if (j>0)
613  {
614  labels.push_back(std::string(""));
615  continue;
616  }
617 
619  i*SPIGOT_NUM+j);
620  sprintf(name, "%d-%d",
621  eid.dccid()+FED_VME_MIN, eid.spigot());
622  labels.push_back(std::string(name));
623  }
624  return labels;
625  }
626 
627  std::vector<std::string> getLabels_FiberuTCAFiberCh()
628  {
629  std::vector<std::string> labels;
630  char name[10];
631  for (int i=0; i<FIBER_uTCA_NUM; i++)
632  for (int j=0; j<FIBERCH_NUM; j++)
633  {
634  if (j>0)
635  {
636  labels.push_back(std::string(""));
637  continue;
638  }
639 
641  i*FIBERCH_NUM+j);
642  sprintf(name, "%d-%d", eid.fiberIndex(),
643  eid.fiberChanId());
644  labels.push_back(std::string(name));
645  }
646  return labels;
647  }
648 
649  std::vector<std::string> getLabels_FiberVMEFiberCh()
650  {
651  std::vector<std::string> labels;
652  char name[10];
653  for (int i=0; i<FIBER_VME_NUM; i++)
654  for (int j=0; j<FIBERCH_NUM; j++)
655  {
656  if (j>0)
657  {
658  labels.push_back(std::string(""));
659  continue;
660  }
662  i*FIBERCH_NUM+j);
663  sprintf(name, "%d-%d", eid.fiberIndex(),
664  eid.fiberChanId());
665  labels.push_back(std::string(name));
666  }
667  return labels;
668  }
669 
670  std::vector<std::string> getLabels_SLB()
671  {
672  std::vector<std::string> labels;
673  char name[10];
674  for (int i=0; i<SLB_NUM; i++)
675  {
677  sprintf(name, "%d", eid.slbSiteNumber());
678  labels.push_back(std::string(name));
679  }
680 
681  return labels;
682  }
683 
684  std::vector<std::string> getLabels_SLBCh()
685  {
686  std::vector<std::string> labels;
687  char name[10];
688  for (int i=0; i<SLBCH_NUM; i++)
689  {
691  sprintf(name, "%d", eid.slbChannelIndex());
692  labels.push_back(std::string(name));
693  }
694 
695  return labels;
696  }
697 
698  std::vector<std::string> getLabels_SLBSLBCh()
699  {
700  std::vector<std::string> labels;
701  char name[10];
702  for (int i=0; i<SLB_NUM; i++)
703  for (int j=0; j<SLBCH_NUM; j++)
704  {
705  HcalElectronicsId eid=getEid_SLBSLBCh(i*SLBCH_NUM+j);
706  sprintf(name, "%d-%d", eid.slbSiteNumber(),
707  eid.slbChannelIndex());
708  labels.push_back(std::string(name));
709  }
710 
711  return labels;
712  }
713 
714  std::vector<std::string> getLabels_FiberuTCATP()
715  {
716  std::vector<std::string> labels;
717  char name[10];
718  for (int i=0; i<TPFIBER_NUM; i++)
719  {
721  sprintf(name, "%d", eid.fiberIndex());
722  labels.push_back(std::string(name));
723  }
724 
725  return labels;
726  }
727 
728  std::vector<std::string> getLabels_FiberChuTCATP()
729  {
730  std::vector<std::string> labels;
731  char name[10];
732  for (int i=0; i<TPFIBERCH_NUM; i++)
733  {
735  sprintf(name, "%d", eid.fiberChanId());
736  labels.push_back(std::string(name));
737  }
738 
739  return labels;
740  }
741 
742  std::vector<std::string> getLabels_FiberuTCATPFiberChuTCATP()
743  {
744  std::vector<std::string> labels;
745  char name[10];
746  for (int i=0; i<TPFIBER_NUM; i++)
747  for (int j=0; j<TPFIBERCH_NUM; j++)
748  {
750  i*TPFIBERCH_NUM+j);
751  sprintf(name, "%d-%d", eid.fiberIndex(),
752  eid.fiberChanId());
753  labels.push_back(std::string(name));
754  }
755 
756  return labels;
757  }
758 
759  void FEDQuantity::setup(std::vector<int> const& vFEDs)
760  {
761  for (uint32_t i=0; i<vFEDs.size(); i++)
762  _feds.insert(std::make_pair(vFEDs[i], i));
763  }
764 
766  {
767  int fed = eid.isVMEid()?eid.dccid()+FED_VME_MIN:
768  utilities::crate2fed(eid.crateId(),eid.slot());
769  return _feds[fed];
770  }
771 
773  {
774  return getValue(eid)+1;
775  }
776 
777  std::vector<std::string> FEDQuantity::getLabels()
778  {
779  std::vector<std::string> labels(_feds.size());
780  char name[5];
781  BOOST_FOREACH(FEDMap::value_type &v, _feds)
782  {
783  sprintf(name, "%d", v.first);
784  labels[v.second] = std::string(name);
785  }
786 
787  return labels;
788  }
789 
790 
792  {
793  _crates = utilities::getCrateList(emap);
794  _crateHashes = utilities::getCrateHashMap(emap);
795  }
796 
797  void CrateQuantity::setup(std::vector<int> crates, std::map<int, uint32_t> crateHashes) {
798  for (auto& it_crate : crates) {
799  _crates.push_back(it_crate);
800  _crateHashes[it_crate] = crateHashes[it_crate];
801  }
802  }
803 
805  {
806  return eid.crateId();
807  }
808 
810  {
811  int crate = eid.crateId();
812  auto it = std::find(_crates.begin(), _crates.end(), crate);
813  if (it == _crates.end()) {
814  return 0;
815  } else {
816  return std::distance(_crates.begin(), it) + 1;
817  }
818  }
819 
820  std::vector<std::string> CrateQuantity::getLabels()
821  {
822  std::vector<std::string> labels;
823  char name[5];
824  for (auto& it_crate : _crates) {
825  HcalElectronicsId eid(_crateHashes[it_crate]);
826  if (eid.isVMEid()) {
827  sprintf(name, "%dv", it_crate);
828  } else {
829  sprintf(name, "%du", it_crate);
830  }
831  labels.push_back(name);
832  }
833  return labels;
834  }
835 
836  }
837 }
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)
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< unsigned int > const crateListuTCA
Definition: Constants.h:91
uint32_t getBin_SlotuTCA(HcalElectronicsId const &)
virtual std::string name()
Definition: Quantity.h:47
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 &)
int const CRATE_uTCA_NUM
Definition: Constants.h:119
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 &)
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 &)
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 crateId() const
get the readout VME crate number
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()
virtual std::vector< std::string > getLabels()
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 &)
virtual uint32_t getBin(HcalElectronicsId const &)
virtual uint32_t getBin(HcalElectronicsId const &)
std::vector< std::string > getLabels_FEDVME()
HcalElectronicsId getEid_FiberVME(int)
int getValue_FiberCh(HcalElectronicsId const &)
uint32_t getBin_SLB(HcalElectronicsId const &)
int const FED_VME_MIN
Definition: Constants.h:98
HcalElectronicsId getEid_FiberuTCATPFiberChuTCATP(int)
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 &)
int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
int const CRATE_TOTAL_NUM
Definition: Constants.h:120
std::vector< std::string > getLabels_SlotuTCA()
int const FIBER_uTCA_MIN1
Definition: Constants.h:144
int getValue_CrateuTCA(HcalElectronicsId const &)
virtual int getValue(HcalElectronicsId const &)
int getValue_FEDVME(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberuTCATP()
std::vector< unsigned int > const fedList
Definition: Constants.h:87
HcalElectronicsId getEid_FEDVMESpigot(int)
#define end
Definition: vmac.h:37
uint32_t getBin_FED(HcalElectronicsId const &)
int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
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 spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
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 &)
int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
std::vector< int > getCrateList(HcalElectronicsMap const *emap)
Definition: Utilities.cc:63
bool isVMEid() const
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 slot() const
get the htr or uHTR slot
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 &)
uint32_t getBin_SLBCh(HcalElectronicsId const &)
uint32_t getBin_Spigot(HcalElectronicsId const &)
int getValue_FEDVMESpigot(HcalElectronicsId const &)
#define begin
Definition: vmac.h:30
int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
int const TPFIBER_MIN
Definition: Constants.h:160
std::vector< std::string > getLabels_SLBCh()
int getValue_FEDuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberCh(int)
virtual std::vector< std::string > getLabels()
virtual int getValue(HcalElectronicsId const &)
int const SLOT_uTCA_NUM
Definition: Constants.h:126
HcalElectronicsId getEid_FiberChuTCATP(int)
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:108
uint32_t getBin_FiberCh(HcalElectronicsId const &)
uint32_t getBin_Crate(HcalElectronicsId const &)
uint32_t getBin_FEDVMESpigot(HcalElectronicsId const &)
int getValue_FEDuTCASlot(HcalElectronicsId const &)
uint32_t getBin_FiberuTCA(HcalElectronicsId const &)
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()