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[10];
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[10];
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[10];
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[10];
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[10];
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[10];
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[10];
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[10];
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[10];
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[10];
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[10];
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
hcaldqm::quantity::FEDQuantity::setup
virtual void setup(std::vector< int > const &vFEDs)
Definition: ElectronicsQuantity.cc:548
hcaldqm::quantity::getValue_Spigot
int getValue_Spigot(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:53
hcaldqm::quantity::getEid_SLBSLBCh
HcalElectronicsId getEid_SLBSLBCh(int)
Definition: ElectronicsQuantity.cc:258
SummaryClient_cfi.labels
labels
Definition: SummaryClient_cfi.py:61
hcaldqm::constants::FED_VME_MIN
const int FED_VME_MIN
Definition: Constants.h:80
hcaldqm::quantity::getEid_Crate
HcalElectronicsId getEid_Crate(int)
Definition: ElectronicsQuantity.cc:184
hcaldqm::constants::FED_uTCA_NUM
const int FED_uTCA_NUM
Definition: Constants.h:88
hcaldqm::quantity::getValue_SLB
int getValue_SLB(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:92
hcaldqm::constants::CRATE_VME_NUM
const int CRATE_VME_NUM
Definition: Constants.h:96
hcaldqm::constants::SLOT_VME_MIN1
const int SLOT_VME_MIN1
Definition: Constants.h:110
hcaldqm::utilities::getCrateHashMap
std::map< int, uint32_t > getCrateHashMap(HcalElectronicsMap const *emap)
Definition: Utilities.cc:66
mps_fire.i
i
Definition: mps_fire.py:428
hcaldqm::quantity::getBin_FEDVME
uint32_t getBin_FEDVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:119
hcaldqm::quantity::getLabels_FiberChuTCATP
std::vector< std::string > getLabels_FiberChuTCATP()
Definition: ElectronicsQuantity.cc:523
hcaldqm::constants::crateListuTCA
const std::vector< unsigned int > crateListuTCA
Definition: Constants.h:72
hcaldqm::quantity::getEid_FiberuTCATP
HcalElectronicsId getEid_FiberuTCATP(int)
Definition: ElectronicsQuantity.cc:270
hcaldqm::constants::SLBCH_NUM
const int SLBCH_NUM
Definition: Constants.h:147
hcaldqm::quantity::getValue_SLBSLBCh
int getValue_SLBSLBCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:99
hcaldqm::constants::fedList
const std::vector< unsigned int > fedList
Definition: Constants.h:62
hcaldqm::quantity::getLabels_FiberVMEFiberCh
std::vector< std::string > getLabels_FiberVMEFiberCh()
Definition: ElectronicsQuantity.cc:458
hcaldqm::quantity::getBin_SlotuTCA
uint32_t getBin_SlotuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:127
hcaldqm::quantity::getLabels_SLBSLBCh
std::vector< std::string > getLabels_SLBSLBCh()
Definition: ElectronicsQuantity.cc:498
hcaldqm::quantity::getEid_FiberuTCAFiberCh
HcalElectronicsId getEid_FiberuTCAFiberCh(int)
Definition: ElectronicsQuantity.cc:238
hcaldqm::quantity::getLabels_FiberuTCATPFiberChuTCATP
std::vector< std::string > getLabels_FiberuTCATPFiberChuTCATP()
Definition: ElectronicsQuantity.cc:535
hcaldqm::quantity::getLabels_Crate
std::vector< std::string > getLabels_Crate()
Definition: ElectronicsQuantity.cc:316
hcaldqm::constants::SLOT_VME_NUM1
const int SLOT_VME_NUM1
Definition: Constants.h:114
hcaldqm::constants::crateList
const std::vector< unsigned int > crateList
Definition: Constants.h:70
hcaldqm
Definition: Constants.h:8
HcalElectronicsId::slbSiteNumber
constexpr int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
Definition: HcalElectronicsId.h:84
hcaldqm::quantity::getValue_FiberChuTCATP
int getValue_FiberChuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:107
hcaldqm::quantity::getEid_SlotVME
HcalElectronicsId getEid_SlotVME(int)
Definition: ElectronicsQuantity.cc:202
hcaldqm::quantity::getLabels_Spigot
std::vector< std::string > getLabels_Spigot()
Definition: ElectronicsQuantity.cc:360
hcaldqm::constants::SPIGOT_MIN
const int SPIGOT_MIN
Definition: Constants.h:118
hcaldqm::utilities::getCrateList
std::vector< int > getCrateList(HcalElectronicsMap const *emap)
Definition: Utilities.cc:52
hcaldqm::constants::SLOT_uTCA_MIN
const int SLOT_uTCA_MIN
Definition: Constants.h:105
hcaldqm::constants::FIBER_uTCA_MIN1
const int FIBER_uTCA_MIN1
Definition: Constants.h:126
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:222
hcaldqm::quantity::getBin_FiberuTCAFiberCh
uint32_t getBin_FiberuTCAFiberCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:143
hcaldqm::quantity::getLabels_FEDuTCA
std::vector< std::string > getLabels_FEDuTCA()
Definition: ElectronicsQuantity.cc:295
hcaldqm::constants::SLOT_VME_MAX1
const int SLOT_VME_MAX1
Definition: Constants.h:111
hcaldqm::quantity::getEid_FEDuTCASlot
HcalElectronicsId getEid_FEDuTCASlot(int)
Definition: ElectronicsQuantity.cc:226
hcaldqm::quantity::getLabels_SlotVME
std::vector< std::string > getLabels_SlotVME()
Definition: ElectronicsQuantity.cc:358
hcaldqm::quantity::getBin_FiberuTCATP
uint32_t getBin_FiberuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:157
hcaldqm::quantity::getLabels_FED
std::vector< std::string > getLabels_FED()
Definition: ElectronicsQuantity.cc:284
hcaldqm::constants::TPFIBER_MIN
const int TPFIBER_MIN
Definition: Constants.h:141
hcaldqm::quantity::getBin_FiberChuTCATP
uint32_t getBin_FiberChuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:159
constants
HcalElectronicsId::slot
constexpr int slot() const
get the htr or uHTR slot
Definition: HcalElectronicsId.h:99
hcaldqm::constants::crateListVME
const std::vector< unsigned int > crateListVME
Definition: Constants.h:73
findQualityFiles.v
v
Definition: findQualityFiles.py:179
spr::find
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Definition: FindCaloHit.cc:19
hcaldqm::quantity::getValue_SLBCh
int getValue_SLBCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:97
hcaldqm::quantity::getEid_CrateVME
HcalElectronicsId getEid_CrateVME(int)
Definition: ElectronicsQuantity.cc:191
hcaldqm::constants::FIBER_uTCA_NUM
const int FIBER_uTCA_NUM
Definition: Constants.h:130
hcaldqm::quantity::getValue_FED
int getValue_FED(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:6
hcaldqm::quantity::getValue_FiberuTCATP
int getValue_FiberuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:105
hcaldqm::quantity::getBin_FiberVMEFiberCh
uint32_t getBin_FiberVMEFiberCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:147
hcaldqm::quantity::getBin_SLB
uint32_t getBin_SLB(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:151
HcalElectronicsId::fiberIndex
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...
Definition: HcalElectronicsId.h:78
hcaldqm::quantity::getBin_FEDuTCASlot
uint32_t getBin_FEDuTCASlot(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:139
hcaldqm::quantity::getEid_FiberuTCA
HcalElectronicsId getEid_FiberuTCA(int)
Definition: ElectronicsQuantity.cc:208
hcaldqm::quantity::getValue_FiberVME
int getValue_FiberVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:64
hcaldqm::constants::TPFIBERCH_MIN
const int TPFIBERCH_MIN
Definition: Constants.h:149
hcaldqm::quantity::CrateQuantity::getLabels
std::vector< std::string > getLabels() override
Definition: ElectronicsQuantity.cc:595
hcaldqm::quantity::getEid_SLBCh
HcalElectronicsId getEid_SLBCh(int)
Definition: ElectronicsQuantity.cc:254
hcaldqm::quantity::getLabels_SLB
std::vector< std::string > getLabels_SLB()
Definition: ElectronicsQuantity.cc:474
hcaldqm::quantity::getLabels_SlotuTCA
std::vector< std::string > getLabels_SlotuTCA()
Definition: ElectronicsQuantity.cc:347
hcaldqm::constants::TPFIBERCH_NUM
const int TPFIBERCH_NUM
Definition: Constants.h:151
hcaldqm::quantity::getLabels_FiberuTCATP
std::vector< std::string > getLabels_FiberuTCATP()
Definition: ElectronicsQuantity.cc:511
hcaldqm::quantity::getValue_FEDVME
int getValue_FEDVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:18
hcaldqm::quantity::CrateQuantity::getBin
uint32_t getBin(HcalElectronicsId const &) override
Definition: ElectronicsQuantity.cc:585
ElectronicsQuantity.h
hcaldqm::constants::SLB_MIN
const int SLB_MIN
Definition: Constants.h:137
hcaldqm::constants::CRATE_uTCA_MIN
const int CRATE_uTCA_MIN
Definition: Constants.h:98
mps_fire.end
end
Definition: mps_fire.py:242
hcaldqm::constants::FIBER_VME_MIN
const int FIBER_VME_MIN
Definition: Constants.h:123
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
hcaldqm::quantity::getEid_FEDuTCA
HcalElectronicsId getEid_FEDuTCA(int)
Definition: ElectronicsQuantity.cc:176
hcaldqm::quantity::FEDQuantity::getLabels
std::vector< std::string > getLabels() override
Definition: ElectronicsQuantity.cc:560
hcaldqm::quantity::getValue_CrateuTCA
int getValue_CrateuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:30
hcaldqm::quantity::getEid_SlotuTCA
HcalElectronicsId getEid_SlotuTCA(int)
Definition: ElectronicsQuantity.cc:197
hcaldqm::constants::FIBERCH_MIN
const int FIBERCH_MIN
Definition: Constants.h:132
hcaldqm::constants::FED_VME_NUM
const int FED_VME_NUM
Definition: Constants.h:83
first
auto first
Definition: CAHitNtupletGeneratorKernelsImpl.h:112
hcaldqm::constants::FIBERCH_NUM
const int FIBERCH_NUM
Definition: Constants.h:134
hcaldqm::quantity::getValue_FiberuTCAFiberCh
int getValue_FiberuTCAFiberCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:80
hcaldqm::quantity::FEDQuantity::getValue
int getValue(HcalElectronicsId const &) override
Definition: ElectronicsQuantity.cc:553
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hcaldqm::quantity::getLabels_FiberCh
std::vector< std::string > getLabels_FiberCh()
Definition: ElectronicsQuantity.cc:397
MjjMonitor_cfi.quantity
quantity
Definition: MjjMonitor_cfi.py:10
hcaldqm::constants::SLB_NUM
const int SLB_NUM
Definition: Constants.h:139
hcaldqm::quantity::getLabels_FEDVME
std::vector< std::string > getLabels_FEDVME()
Definition: ElectronicsQuantity.cc:306
hcaldqm::constants::FED_TOTAL_NUM
const int FED_TOTAL_NUM
Definition: Constants.h:90
hcaldqm::quantity::getEid_FiberVMEFiberCh
HcalElectronicsId getEid_FiberVMEFiberCh(int)
Definition: ElectronicsQuantity.cc:244
hcaldqm::quantity::getValue_CrateVME
int getValue_CrateVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:36
hcaldqm::quantity::getBin_CrateVME
uint32_t getBin_CrateVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:125
hcaldqm::quantity::getValue_Crate
int getValue_Crate(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:24
hcaldqm::quantity::getEid_FiberVME
HcalElectronicsId getEid_FiberVME(int)
Definition: ElectronicsQuantity.cc:218
hcaldqm::quantity::getValue_SlotuTCA
int getValue_SlotuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:42
hcaldqm::quantity::getValue_FiberCh
int getValue_FiberCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:66
hcaldqm::quantity::getEid_Spigot
HcalElectronicsId getEid_Spigot(int)
Definition: ElectronicsQuantity.cc:206
hcaldqm::quantity::getLabels_FiberVME
std::vector< std::string > getLabels_FiberVME()
Definition: ElectronicsQuantity.cc:386
reco::JetExtendedAssociation::getValue
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
Definition: JetExtendedAssociation.cc:50
hcaldqm::constants::FIBER_VME_NUM
const int FIBER_VME_NUM
Definition: Constants.h:125
hcaldqm::quantity::getBin_FED
uint32_t getBin_FED(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:115
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
hcaldqm::quantity::getEid_FiberuTCATPFiberChuTCATP
HcalElectronicsId getEid_FiberuTCATPFiberChuTCATP(int)
Definition: ElectronicsQuantity.cc:278
hcaldqm::quantity::getLabels_CrateuTCA
std::vector< std::string > getLabels_CrateuTCA()
Definition: ElectronicsQuantity.cc:337
hcaldqm::quantity::getBin_Spigot
uint32_t getBin_Spigot(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:131
hcaldqm::quantity::CrateQuantity::getValue
int getValue(HcalElectronicsId const &) override
Definition: ElectronicsQuantity.cc:583
hcaldqm::quantity::CrateQuantity::setup
virtual void setup(HcalElectronicsMap const *emap)
Definition: ElectronicsQuantity.cc:571
hcaldqm::quantity::getLabels_SLBCh
std::vector< std::string > getLabels_SLBCh()
Definition: ElectronicsQuantity.cc:486
hcaldqm::quantity::getBin_FiberVME
uint32_t getBin_FiberVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:135
hcaldqm::quantity::getBin_FiberCh
uint32_t getBin_FiberCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:137
hcaldqm::quantity::getBin_FiberuTCA
uint32_t getBin_FiberuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:133
hcaldqm::quantity::getEid_CrateuTCA
HcalElectronicsId getEid_CrateuTCA(int)
Definition: ElectronicsQuantity.cc:193
hcaldqm::quantity::getBin_FEDVMESpigot
uint32_t getBin_FEDVMESpigot(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:141
hcaldqm::quantity::getEid_FEDVMESpigot
HcalElectronicsId getEid_FEDVMESpigot(int)
Definition: ElectronicsQuantity.cc:232
hcaldqm::constants::SPIGOT_NUM
const int SPIGOT_NUM
Definition: Constants.h:120
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
hcaldqm::quantity::getBin_SlotVME
uint32_t getBin_SlotVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:129
hcaldqm::quantity::getBin_FiberuTCATPFiberChuTCATP
uint32_t getBin_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:161
hcaldqm::quantity::getBin_SLBCh
uint32_t getBin_SLBCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:153
hcaldqm::constants::SLBCH_MIN
const int SLBCH_MIN
Definition: Constants.h:145
hcaldqm::quantity::getValue_FEDVMESpigot
int getValue_FEDVMESpigot(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:74
hcaldqm::quantity::getLabels_FEDVMESpigot
std::vector< std::string > getLabels_FEDVMESpigot()
Definition: ElectronicsQuantity.cc:424
hcaldqm::constants::FIBER_uTCA_MIN2
const int FIBER_uTCA_MIN2
Definition: Constants.h:128
hcaldqm::quantity::getLabels_FiberuTCA
std::vector< std::string > getLabels_FiberuTCA()
Definition: ElectronicsQuantity.cc:375
hcaldqm::quantity::getValue_FEDuTCA
int getValue_FEDuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:12
hcaldqm::quantity::getBin_FEDuTCA
uint32_t getBin_FEDuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:117
hcaldqm::constants::SLOT_uTCA_NUM
const int SLOT_uTCA_NUM
Definition: Constants.h:108
hcaldqm::quantity::getLabels_FEDuTCASlot
std::vector< std::string > getLabels_FEDuTCASlot()
Definition: ElectronicsQuantity.cc:408
hcaldqm::quantity::getValue_FiberuTCA
int getValue_FiberuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:55
hcaldqm::quantity::getValue_FEDuTCASlot
int getValue_FEDuTCASlot(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:68
hcaldqm::quantity::getValue_FiberVMEFiberCh
int getValue_FiberVMEFiberCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:86
hcaldqm::utilities::fed2crate
std::pair< uint16_t, uint16_t > fed2crate(int fed)
Definition: Utilities.cc:10
hcaldqm::quantity::getLabels_FiberuTCAFiberCh
std::vector< std::string > getLabels_FiberuTCAFiberCh()
Definition: ElectronicsQuantity.cc:441
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
hcaldqm::utilities::crate2fed
uint16_t crate2fed(int crate, int slot)
Definition: Utilities.cc:27
HcalElectronicsId::crateId
constexpr int crateId() const
get the readout VME crate number
Definition: HcalElectronicsId.h:107
hcaldqm::quantity::getEid_FiberCh
HcalElectronicsId getEid_FiberCh(int)
Definition: ElectronicsQuantity.cc:222
hcaldqm::constants::TPFIBER_NUM
const int TPFIBER_NUM
Definition: Constants.h:143
hcaldqm::constants::fedListVME
const std::vector< unsigned int > fedListVME
Definition: Constants.h:69
HcalElectronicsId::spigot
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
Definition: HcalElectronicsId.h:93
hcaldqm::quantity::getEid_FED
HcalElectronicsId getEid_FED(int)
Definition: ElectronicsQuantity.cc:165
HcalElectronicsId::dccid
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
Definition: HcalElectronicsId.h:95
hcaldqm::quantity::getValue_FiberuTCATPFiberChuTCATP
int getValue_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:109
hcaldqm::constants::FIBER_uTCA_MAX1
const int FIBER_uTCA_MAX1
Definition: Constants.h:127
hcaldqm::constants::fedListuTCA
const std::vector< unsigned int > fedListuTCA
Definition: Constants.h:66
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
hcaldqm::quantity::getBin_Crate
uint32_t getBin_Crate(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:121
HcalElectronicsId::fiberChanId
constexpr int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
Definition: HcalElectronicsId.h:76
hcaldqm::quantity::getBin_SLBSLBCh
uint32_t getBin_SLBSLBCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:155
hcaldqm::constants::SLOT_VME_MIN2
const int SLOT_VME_MIN2
Definition: Constants.h:112
hcaldqm::quantity::getEid_SLB
HcalElectronicsId getEid_SLB(int)
Definition: ElectronicsQuantity.cc:250
HcalElectronicsId::slbChannelIndex
constexpr int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
Definition: HcalElectronicsId.h:82
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7733
hcaldqm::constants::CRATE_VME_MIN
const int CRATE_VME_MIN
Definition: Constants.h:93
hcaldqm::quantity::getValue_SlotVME
int getValue_SlotVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:44
hcaldqm::quantity::getEid_FiberChuTCATP
HcalElectronicsId getEid_FiberChuTCATP(int)
Definition: ElectronicsQuantity.cc:274
hcaldqm::quantity::FEDQuantity::getBin
uint32_t getBin(HcalElectronicsId const &) override
Definition: ElectronicsQuantity.cc:558
hcaldqm::quantity::getBin_CrateuTCA
uint32_t getBin_CrateuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:123
hcaldqm::quantity::getEid_FEDVME
HcalElectronicsId getEid_FEDVME(int)
Definition: ElectronicsQuantity.cc:174
hcaldqm::quantity::getLabels_CrateVME
std::vector< std::string > getLabels_CrateVME()
Definition: ElectronicsQuantity.cc:327