CMS 3D CMS Logo

ElectronicsQuantity.h
Go to the documentation of this file.
1 #ifndef ElectronicsQuantity_h
2 #define ElectronicsQuantity_h
3 
10 #include <unordered_map>
11 
12 namespace hcaldqm {
13  namespace quantity {
15  fFED = 0,
16  fFEDuTCA = 1,
17  fFEDVME = 2,
18  fCrate = 3,
20  fCrateVME = 5,
21  fSlotuTCA = 6,
22  fSlotVME = 7,
23  fSpigot = 8,
25  fFiberVME = 10,
26  fFiberCh = 11,
27 
28  // Complex Quantities
33 
34  // Adding Trigger Quantities for VME
35  fSLB = 16,
36  fSLBCh = 17,
37  fSLBSLBCh = 18,
38 
39  // Adding Trigger Quantities for uTCA
43 
45  };
46 
47  int getValue_FED(HcalElectronicsId const &);
50  int getValue_Crate(HcalElectronicsId const &);
63  int getValue_SLB(HcalElectronicsId const &);
64  int getValue_SLBCh(HcalElectronicsId const &);
69  uint32_t getBin_FED(HcalElectronicsId const &);
70  uint32_t getBin_FEDuTCA(HcalElectronicsId const &);
71  uint32_t getBin_FEDVME(HcalElectronicsId const &);
72  uint32_t getBin_Crate(HcalElectronicsId const &);
73  uint32_t getBin_CrateuTCA(HcalElectronicsId const &);
74  uint32_t getBin_CrateVME(HcalElectronicsId const &);
75  uint32_t getBin_SlotuTCA(HcalElectronicsId const &);
76  uint32_t getBin_SlotVME(HcalElectronicsId const &);
77  uint32_t getBin_Spigot(HcalElectronicsId const &);
78  uint32_t getBin_FiberuTCA(HcalElectronicsId const &);
79  uint32_t getBin_FiberVME(HcalElectronicsId const &);
80  uint32_t getBin_FiberCh(HcalElectronicsId const &);
81  uint32_t getBin_FEDuTCASlot(HcalElectronicsId const &);
82  uint32_t getBin_FEDVMESpigot(HcalElectronicsId const &);
84  uint32_t getBin_FiberVMEFiberCh(HcalElectronicsId const &);
85  uint32_t getBin_SLB(HcalElectronicsId const &);
86  uint32_t getBin_SLBCh(HcalElectronicsId const &);
87  uint32_t getBin_SLBSLBCh(HcalElectronicsId const &);
88  uint32_t getBin_FiberuTCATP(HcalElectronicsId const &);
89  uint32_t getBin_FiberChuTCATP(HcalElectronicsId const &);
113  std::vector<std::string> getLabels_FED();
114  std::vector<std::string> getLabels_FEDuTCA();
115  std::vector<std::string> getLabels_FEDVME();
116  std::vector<std::string> getLabels_Crate();
117  std::vector<std::string> getLabels_CrateuTCA();
118  std::vector<std::string> getLabels_CrateVME();
119  std::vector<std::string> getLabels_SlotuTCA();
120  std::vector<std::string> getLabels_SlotVME();
121  std::vector<std::string> getLabels_Spigot();
122  std::vector<std::string> getLabels_FiberuTCA();
123  std::vector<std::string> getLabels_FiberVME();
124  std::vector<std::string> getLabels_FiberCh();
125  std::vector<std::string> getLabels_FEDuTCASlot();
126  std::vector<std::string> getLabels_FEDVMESpigot();
127  std::vector<std::string> getLabels_FiberuTCAFiberCh();
128  std::vector<std::string> getLabels_FiberVMEFiberCh();
129  std::vector<std::string> getLabels_SLB();
130  std::vector<std::string> getLabels_SLBCh();
131  std::vector<std::string> getLabels_SLBSLBCh();
132  std::vector<std::string> getLabels_FiberuTCATP();
133  std::vector<std::string> getLabels_FiberChuTCATP();
134  std::vector<std::string> getLabels_FiberuTCATPFiberChuTCATP();
135 
137  typedef uint32_t (*getBinType_eid)(HcalElectronicsId const &);
139  typedef std::vector<std::string> (*getLabels_eid)();
140  const std::map<ElectronicsQuantityType, getValueType_eid> getValue_functions_eid = {
141  {fFED, getValue_FED},
157  {fSLB, getValue_SLB},
163  };
164  const std::map<ElectronicsQuantityType, getBinType_eid> getBin_functions_eid = {
165  {fFED, getBin_FED},
168  {fCrate, getBin_Crate},
181  {fSLB, getBin_SLB},
182  {fSLBCh, getBin_SLBCh},
187  };
188  const std::map<ElectronicsQuantityType, getEid_eid> getEid_functions_eid = {
189  {fFED, getEid_FED},
192  {fCrate, getEid_Crate},
205  {fSLB, getEid_SLB},
206  {fSLBCh, getEid_SLBCh},
211  };
212  const std::map<ElectronicsQuantityType, getLabels_eid> getLabels_functions_eid = {
213  {fFED, getLabels_FED},
229  {fSLB, getLabels_SLB},
235  };
236  const std::map<ElectronicsQuantityType, std::string> name_eid = {
237  {fFED, "FED"},
238  {fFEDuTCA, "FEDuTCA"},
239  {fFEDVME, "FEDVME"},
240  {fCrate, "Crate"},
241  {fCrateuTCA, "CrateuTCA"},
242  {fCrateVME, "CrateVME"},
243  {fSlotuTCA, "SlotuTCA"},
244  {fSlotVME, "SlotVME"},
245  {fSpigot, "Spigot"},
246  {fFiberuTCA, "FiberuTCA"},
247  {fFiberVME, "FiberVME"},
248  {fFiberCh, "FiberCh"},
249  {fFEDuTCASlot, "FEDuTCASlot"},
250  {fFEDVMESpigot, "FEDVMESpigot"},
251  {fFiberuTCAFiberCh, "FiberuTCAFiberCh"},
252  {fFiberVMEFiberCh, "FiberVMEFiberCh"},
253  {fSLB, "SLB"},
254  {fSLBCh, "SLBCh"},
255  {fSLBSLBCh, "SLB-SLBCh"},
256  {fFiberuTCATP, "TPFiber"},
257  {fFiberChuTCATP, "TPFiberCh"},
258  {fFiberuTCATPFiberChuTCATP, "TPF-TPFCh"},
259  };
260  const std::map<ElectronicsQuantityType, double> min_eid = {
261  {fFED, -0.5},
262  {fFEDuTCA, -0.5},
263  {fFEDVME, -0.5},
264  {fCrate, -0.5},
265  {fCrateuTCA, -0.5},
266  {fCrateVME, -0.5},
267  {fSlotuTCA, 0.},
268  {fSlotVME, 0.},
269  {fSpigot, 0.},
270  {fFiberuTCA, 0.},
271  {fFiberVME, 0.},
272  {fFiberCh, 0.},
273  {fFEDuTCASlot, 0.},
274  {fFEDVMESpigot, 0.},
275  {fFiberuTCAFiberCh, 0.},
276  {fFiberVMEFiberCh, 0.},
277  {fSLB, 0.},
278  {fSLBCh, 0.},
279  {fSLBSLBCh, 0.},
280  {fFiberuTCATP, 0.},
281  {fFiberChuTCATP, 0.},
283  };
284  const std::map<ElectronicsQuantityType, double> max_eid = {
285  {fFED, constants::fedList.size() - 0.5},
286  {fFEDuTCA, constants::fedListuTCA.size() - 0.5},
287  {fFEDVME, constants::fedListVME.size() - 0.5},
288  {fCrate, constants::crateList.size() - 0.5},
289  {fCrateuTCA, constants::crateListuTCA.size() - 0.5},
290  {fCrateVME, constants::crateListVME.size() - 0.5},
307  };
308  const std::map<ElectronicsQuantityType, double> nbins_eid = {
309  {fFED, constants::fedList.size()},
311  {fFEDVME, constants::fedListVME.size()},
312  {fCrate, constants::crateList.size()},
331  };
332 
333  class ElectronicsQuantity : public Quantity {
334  public:
337  : Quantity(name_eid.at(type), isLog), _type(type) {}
338  ~ElectronicsQuantity() override {}
340 
341  int getValue(HcalElectronicsId const &eid) override { return getValue_functions_eid.at(_type)(eid); }
342  uint32_t getBin(HcalElectronicsId const &eid) override { return getBin_functions_eid.at(_type)(eid); }
343 
344  QuantityType type() override { return fElectronicsQuantity; }
345  int nbins() override { return nbins_eid.at(_type); }
346  double min() override { return min_eid.at(_type); }
347  double max() override { return max_eid.at(_type); }
348  bool isCoordinate() override { return true; }
349  std::vector<std::string> getLabels() override { return getLabels_functions_eid.at(_type)(); }
350 
351  protected:
353  };
354 
355  // sorted list of FEDs you want to have on the axis
357  public:
359  FEDQuantity(std::vector<int> const &vFEDs) : ElectronicsQuantity(fFED, false) { this->setup(vFEDs); }
360  ~FEDQuantity() override {}
361 
362  virtual void setup(std::vector<int> const &vFEDs);
363  int getValue(HcalElectronicsId const &) override;
364  uint32_t getBin(HcalElectronicsId const &) override;
365 
366  int nbins() override { return _feds.size(); }
367  double min() override { return 0; }
368  double max() override { return _feds.size(); }
369  std::vector<std::string> getLabels() override;
370 
371  protected:
372  typedef std::unordered_map<int, uint32_t> FEDMap;
374 
375  public:
376  FEDQuantity *makeCopy() override {
377  std::vector<int> vfeds;
378  for (auto const &p : _feds) {
379  vfeds.push_back(p.first);
380  }
381 
382  // MUST SORT BEFORE EXITING!
383  std::sort(vfeds.begin(), vfeds.end());
384  return new FEDQuantity(vfeds);
385  }
386  };
387 
388  // Crate quantity, initialized from emap (because it is not easy to turn a VME
389  // crate in an EID)
391  typedef std::map<int, uint32_t> CrateHashMap;
392 
393  public:
396  CrateQuantity(std::vector<int> crates, CrateHashMap crateHashes) : ElectronicsQuantity(fCrate, false) {
397  this->setup(crates, crateHashes);
398  }
399  ~CrateQuantity() override {}
400 
401  virtual void setup(HcalElectronicsMap const *emap);
402  virtual void setup(std::vector<int> crates, CrateHashMap crateHashes);
403  int getValue(HcalElectronicsId const &) override;
404  uint32_t getBin(HcalElectronicsId const &) override;
405 
406  int nbins() override { return _crates.size(); }
407  double min() override { return 0; }
408  double max() override { return _crates.size(); }
409  std::vector<std::string> getLabels() override;
410 
411  protected:
412  std::vector<int> _crates;
414 
415  public:
416  CrateQuantity *makeCopy() override {
417  // Make copies of the crate info
418  std::vector<int> tmpCrates;
419  std::map<int, uint32_t> tmpCrateHashes;
420  for (auto &it_crate : _crates) {
421  tmpCrates.push_back(it_crate);
422  tmpCrateHashes[it_crate] = _crateHashes[it_crate];
423  }
424  return new CrateQuantity(tmpCrates, tmpCrateHashes);
425  }
426  };
427  } // namespace quantity
428 } // namespace hcaldqm
429 
430 #endif
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::FEDQuantity
Definition: ElectronicsQuantity.h:356
hcaldqm::quantity::getEid_SLBSLBCh
HcalElectronicsId getEid_SLBSLBCh(int)
Definition: ElectronicsQuantity.cc:258
hcaldqm::quantity::fFiberuTCATPFiberChuTCATP
Definition: ElectronicsQuantity.h:42
hcaldqm::quantity::CrateQuantity::~CrateQuantity
~CrateQuantity() override
Definition: ElectronicsQuantity.h:399
hcaldqm::quantity::ElectronicsQuantity::min
double min() override
Definition: ElectronicsQuantity.h:346
hcaldqm::quantity::ElectronicsQuantity::getLabels
std::vector< std::string > getLabels() override
Definition: ElectronicsQuantity.h:349
hcaldqm::quantity::name_eid
const std::map< ElectronicsQuantityType, std::string > name_eid
Definition: ElectronicsQuantity.h:236
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:90
hcaldqm::quantity::getValue_SLB
int getValue_SLB(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:92
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:74
hcaldqm::quantity::FEDQuantity::nbins
int nbins() override
Definition: ElectronicsQuantity.h:366
hcaldqm::quantity::ElectronicsQuantity::getBin
uint32_t getBin(HcalElectronicsId const &eid) override
Definition: ElectronicsQuantity.h:342
funct::false
false
Definition: Factorize.h:29
hcaldqm::quantity::getEid_FiberuTCATP
HcalElectronicsId getEid_FiberuTCATP(int)
Definition: ElectronicsQuantity.cc:270
hcaldqm::constants::SLBCH_NUM
const int SLBCH_NUM
Definition: Constants.h:149
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:63
hcaldqm::quantity::fSlotuTCA
Definition: ElectronicsQuantity.h:21
hcaldqm::quantity::fElectronicsQuantity
Definition: Quantity.h:17
hcaldqm::quantity::getLabels_FiberVMEFiberCh
std::vector< std::string > getLabels_FiberVMEFiberCh()
Definition: ElectronicsQuantity.cc:458
hcaldqm::quantity::CrateQuantity::_crates
std::vector< int > _crates
Definition: ElectronicsQuantity.h:412
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::quantity::fFiberChuTCATP
Definition: ElectronicsQuantity.h:41
hcaldqm::constants::crateList
const std::vector< unsigned int > crateList
Definition: Constants.h:72
hcaldqm
Definition: Constants.h:8
hcaldqm::quantity::fFiberCh
Definition: ElectronicsQuantity.h:26
hcaldqm::quantity::fSLB
Definition: ElectronicsQuantity.h:35
hcaldqm::quantity::getValue_FiberChuTCATP
int getValue_FiberChuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:107
hcaldqm::quantity::getValue_functions_eid
const std::map< ElectronicsQuantityType, getValueType_eid > getValue_functions_eid
Definition: ElectronicsQuantity.h:140
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::quantity::CrateQuantity::CrateQuantity
CrateQuantity(HcalElectronicsMap const *emap)
Definition: ElectronicsQuantity.h:395
hcaldqm::quantity::FEDQuantity::~FEDQuantity
~FEDQuantity() override
Definition: ElectronicsQuantity.h:360
hcaldqm::quantity::fFEDVME
Definition: ElectronicsQuantity.h:17
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::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::quantity::getEid_functions_eid
const std::map< ElectronicsQuantityType, getEid_eid > getEid_functions_eid
Definition: ElectronicsQuantity.h:188
hcaldqm::quantity::getBin_FiberChuTCATP
uint32_t getBin_FiberChuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:159
hcaldqm::quantity::CrateQuantity::CrateQuantity
CrateQuantity()
Definition: ElectronicsQuantity.h:394
hcaldqm::constants::crateListVME
const std::vector< unsigned int > crateListVME
Definition: Constants.h:75
hcaldqm::quantity::getLabels_eid
std::vector< std::string >(* getLabels_eid)()
Definition: ElectronicsQuantity.h:139
hcaldqm::quantity::fFiberuTCA
Definition: ElectronicsQuantity.h:24
hcaldqm::quantity::FEDQuantity::FEDMap
std::unordered_map< int, uint32_t > FEDMap
Definition: ElectronicsQuantity.h:372
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:132
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
hcaldqm::quantity::fFEDuTCA
Definition: ElectronicsQuantity.h:16
hcaldqm::quantity::getBin_FEDuTCASlot
uint32_t getBin_FEDuTCASlot(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:139
hcaldqm::quantity::Quantity::isLog
virtual bool isLog()
Definition: Quantity.h:35
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::quantity::ElectronicsQuantity::~ElectronicsQuantity
~ElectronicsQuantity() override
Definition: ElectronicsQuantity.h:338
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:153
hcaldqm::quantity::getLabels_FiberuTCATP
std::vector< std::string > getLabels_FiberuTCATP()
Definition: ElectronicsQuantity.cc:511
hcaldqm::quantity::CrateQuantity::min
double min() override
Definition: ElectronicsQuantity.h:407
hcaldqm::quantity::FEDQuantity::makeCopy
FEDQuantity * makeCopy() override
Definition: ElectronicsQuantity.h:376
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
hcaldqm::quantity::fFiberVME
Definition: ElectronicsQuantity.h:25
hcaldqm::quantity::CrateQuantity::makeCopy
CrateQuantity * makeCopy() override
Definition: ElectronicsQuantity.h:416
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
hcaldqm::quantity::getEid_FEDuTCA
HcalElectronicsId getEid_FEDuTCA(int)
Definition: ElectronicsQuantity.cc:176
hcaldqm::quantity::ElectronicsQuantity::makeCopy
ElectronicsQuantity * makeCopy() override
Definition: ElectronicsQuantity.h:339
hcaldqm::quantity::min_eid
const std::map< ElectronicsQuantityType, double > min_eid
Definition: ElectronicsQuantity.h:260
hcaldqm::quantity::FEDQuantity::getLabels
std::vector< std::string > getLabels() override
Definition: ElectronicsQuantity.cc:560
hcaldqm::quantity::FEDQuantity::FEDQuantity
FEDQuantity(std::vector< int > const &vFEDs)
Definition: ElectronicsQuantity.h:359
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::FED_VME_NUM
const int FED_VME_NUM
Definition: Constants.h:85
hcaldqm::quantity::fCrate
Definition: ElectronicsQuantity.h:18
hcaldqm::constants::FIBERCH_NUM
const int FIBERCH_NUM
Definition: Constants.h:136
hcaldqm::quantity::getValue_FiberuTCAFiberCh
int getValue_FiberuTCAFiberCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:80
hcaldqm::quantity::fCrateuTCA
Definition: ElectronicsQuantity.h:19
hcaldqm::quantity::getValueType_eid
int(* getValueType_eid)(HcalElectronicsId const &)
Definition: ElectronicsQuantity.h:136
hcaldqm::quantity::FEDQuantity::getValue
int getValue(HcalElectronicsId const &) override
Definition: ElectronicsQuantity.cc:553
hcaldqm::quantity::FEDQuantity::FEDQuantity
FEDQuantity()
Definition: ElectronicsQuantity.h:358
hcaldqm::quantity::CrateQuantity::max
double max() override
Definition: ElectronicsQuantity.h:408
hcaldqm::quantity::getLabels_FiberCh
std::vector< std::string > getLabels_FiberCh()
Definition: ElectronicsQuantity.cc:397
hcaldqm::quantity::FEDQuantity::min
double min() override
Definition: ElectronicsQuantity.h:367
MjjMonitor_cfi.quantity
quantity
Definition: MjjMonitor_cfi.py:10
hcaldqm::constants::SLB_NUM
const int SLB_NUM
Definition: Constants.h:141
hcaldqm::quantity::getLabels_FEDVME
std::vector< std::string > getLabels_FEDVME()
Definition: ElectronicsQuantity.cc:306
hcaldqm::quantity::nbins_eid
const std::map< ElectronicsQuantityType, double > nbins_eid
Definition: ElectronicsQuantity.h:308
hcaldqm::quantity::getEid_FiberVMEFiberCh
HcalElectronicsId getEid_FiberVMEFiberCh(int)
Definition: ElectronicsQuantity.cc:244
hcaldqm::quantity::CrateQuantity::CrateQuantity
CrateQuantity(std::vector< int > crates, CrateHashMap crateHashes)
Definition: ElectronicsQuantity.h:396
hcaldqm::quantity::getValue_CrateVME
int getValue_CrateVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:36
hcaldqm::quantity::ElectronicsQuantity::ElectronicsQuantity
ElectronicsQuantity()
Definition: ElectronicsQuantity.h:335
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
hcaldqm::quantity::getBin_CrateVME
uint32_t getBin_CrateVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:125
hcaldqm::quantity::fFED
Definition: ElectronicsQuantity.h:15
hcaldqm::quantity::getValue_Crate
int getValue_Crate(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:24
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
hcaldqm::quantity::getEid_FiberVME
HcalElectronicsId getEid_FiberVME(int)
Definition: ElectronicsQuantity.cc:218
hcaldqm::quantity::fFEDuTCASlot
Definition: ElectronicsQuantity.h:29
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
hcaldqm::quantity::getValue_SlotuTCA
int getValue_SlotuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:42
hcaldqm::quantity::QuantityType
QuantityType
Definition: Quantity.h:15
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
hcaldqm::constants::FIBER_VME_NUM
const int FIBER_VME_NUM
Definition: Constants.h:127
hcaldqm::quantity::ElectronicsQuantity::ElectronicsQuantity
ElectronicsQuantity(ElectronicsQuantityType type, bool isLog=false)
Definition: ElectronicsQuantity.h:336
createfilelist.int
int
Definition: createfilelist.py:10
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::nElectronicsQuantityType
Definition: ElectronicsQuantity.h:44
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::FEDQuantity::max
double max() override
Definition: ElectronicsQuantity.h:368
hcaldqm::quantity::ElectronicsQuantity::isCoordinate
bool isCoordinate() override
Definition: ElectronicsQuantity.h:348
hcaldqm::quantity::FEDQuantity::_feds
FEDMap _feds
Definition: ElectronicsQuantity.h:373
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::Quantity
Definition: Quantity.h:27
hcaldqm::quantity::getLabels_SLBCh
std::vector< std::string > getLabels_SLBCh()
Definition: ElectronicsQuantity.cc:486
hcaldqm::quantity::fSpigot
Definition: ElectronicsQuantity.h:23
hcaldqm::quantity::ElectronicsQuantity::_type
ElectronicsQuantityType _type
Definition: ElectronicsQuantity.h:352
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_functions_eid
const std::map< ElectronicsQuantityType, getBinType_eid > getBin_functions_eid
Definition: ElectronicsQuantity.h:164
hcaldqm::quantity::CrateQuantity::nbins
int nbins() override
Definition: ElectronicsQuantity.h:406
hcaldqm::quantity::ElectronicsQuantity::type
QuantityType type() override
Definition: ElectronicsQuantity.h:344
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::ElectronicsQuantityType
ElectronicsQuantityType
Definition: ElectronicsQuantity.h:14
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:122
HcalElectronicsMap
Definition: HcalElectronicsMap.h:31
hcaldqm::quantity::getBin_SlotVME
uint32_t getBin_SlotVME(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:129
hcaldqm::quantity::Quantity::_isLog
bool _isLog
Definition: Quantity.h:72
Quantity.h
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::quantity::getValue_FEDVMESpigot
int getValue_FEDVMESpigot(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:74
hcaldqm::quantity::ElectronicsQuantity
Definition: ElectronicsQuantity.h:333
hcaldqm::quantity::getLabels_FEDVMESpigot
std::vector< std::string > getLabels_FEDVMESpigot()
Definition: ElectronicsQuantity.cc:424
hcaldqm::quantity::CrateQuantity::CrateHashMap
std::map< int, uint32_t > CrateHashMap
Definition: ElectronicsQuantity.h:391
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::fFiberuTCAFiberCh
Definition: ElectronicsQuantity.h:31
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:110
hcaldqm::quantity::getBinType_eid
uint32_t(* getBinType_eid)(HcalElectronicsId const &)
Definition: ElectronicsQuantity.h:137
hcaldqm::quantity::max_eid
const std::map< ElectronicsQuantityType, double > max_eid
Definition: ElectronicsQuantity.h:284
hcaldqm::quantity::fFiberuTCATP
Definition: ElectronicsQuantity.h:40
hcaldqm::quantity::getLabels_FEDuTCASlot
std::vector< std::string > getLabels_FEDuTCASlot()
Definition: ElectronicsQuantity.cc:408
hcaldqm::quantity::fFiberVMEFiberCh
Definition: ElectronicsQuantity.h:32
hcaldqm::quantity::fCrateVME
Definition: ElectronicsQuantity.h:20
hcaldqm::quantity::getValue_FiberuTCA
int getValue_FiberuTCA(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:55
hcaldqm::quantity::ElectronicsQuantity::nbins
int nbins() override
Definition: ElectronicsQuantity.h:345
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::quantity::CrateQuantity::_crateHashes
CrateHashMap _crateHashes
Definition: ElectronicsQuantity.h:413
hcaldqm::constants::SLOT_VME_NUM
const int SLOT_VME_NUM
Definition: Constants.h:118
hcaldqm::quantity::getLabels_FiberuTCAFiberCh
std::vector< std::string > getLabels_FiberuTCAFiberCh()
Definition: ElectronicsQuantity.cc:441
hcaldqm::quantity::CrateQuantity
Definition: ElectronicsQuantity.h:390
hcaldqm::quantity::getEid_FiberCh
HcalElectronicsId getEid_FiberCh(int)
Definition: ElectronicsQuantity.cc:222
hcaldqm::constants::TPFIBER_NUM
const int TPFIBER_NUM
Definition: Constants.h:145
hcaldqm::constants::fedListVME
const std::vector< unsigned int > fedListVME
Definition: Constants.h:71
hcaldqm::quantity::ElectronicsQuantity::getValue
int getValue(HcalElectronicsId const &eid) override
Definition: ElectronicsQuantity.h:341
hcaldqm::quantity::getEid_FED
HcalElectronicsId getEid_FED(int)
Definition: ElectronicsQuantity.cc:165
hcaldqm::quantity::getLabels_functions_eid
const std::map< ElectronicsQuantityType, getLabels_eid > getLabels_functions_eid
Definition: ElectronicsQuantity.h:212
hcaldqm::quantity::getValue_FiberuTCATPFiberChuTCATP
int getValue_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:109
hcaldqm::quantity::fSLBSLBCh
Definition: ElectronicsQuantity.h:37
hcaldqm::constants::fedListuTCA
const std::vector< unsigned int > fedListuTCA
Definition: Constants.h:67
hcaldqm::quantity::getBin_Crate
uint32_t getBin_Crate(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:121
hcaldqm::quantity::getBin_SLBSLBCh
uint32_t getBin_SLBSLBCh(HcalElectronicsId const &)
Definition: ElectronicsQuantity.cc:155
hcaldqm::quantity::ElectronicsQuantity::max
double max() override
Definition: ElectronicsQuantity.h:347
hcaldqm::quantity::getEid_SLB
HcalElectronicsId getEid_SLB(int)
Definition: ElectronicsQuantity.cc:250
hcaldqm::quantity::getEid_eid
HcalElectronicsId(* getEid_eid)(int)
Definition: ElectronicsQuantity.h:138
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::fFEDVMESpigot
Definition: ElectronicsQuantity.h:30
hcaldqm::quantity::fSlotVME
Definition: ElectronicsQuantity.h:22
hcaldqm::quantity::fSLBCh
Definition: ElectronicsQuantity.h:36
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