Go to the documentation of this file. 1 #ifndef ElectronicsQuantity_h
2 #define ElectronicsQuantity_h
10 #include <unordered_map>
236 const std::map<ElectronicsQuantityType, std::string>
name_eid = {
260 const std::map<ElectronicsQuantityType, double>
min_eid = {
284 const std::map<ElectronicsQuantityType, double>
max_eid = {
308 const std::map<ElectronicsQuantityType, double>
nbins_eid = {
362 virtual void setup(std::vector<int>
const &vFEDs);
367 double min()
override {
return 0; }
369 std::vector<std::string>
getLabels()
override;
372 typedef std::unordered_map<int, uint32_t>
FEDMap;
377 std::vector<int> vfeds;
378 for (
auto const &
p :
_feds) {
379 vfeds.push_back(
p.first);
397 this->
setup(crates, crateHashes);
407 double min()
override {
return 0; }
409 std::vector<std::string>
getLabels()
override;
418 std::vector<int> tmpCrates;
419 std::map<int, uint32_t> tmpCrateHashes;
420 for (
auto &it_crate :
_crates) {
421 tmpCrates.push_back(it_crate);
virtual void setup(std::vector< int > const &vFEDs)
int getValue_Spigot(HcalElectronicsId const &)
HcalElectronicsId getEid_SLBSLBCh(int)
~CrateQuantity() override
std::vector< std::string > getLabels() override
const std::map< ElectronicsQuantityType, std::string > name_eid
HcalElectronicsId getEid_Crate(int)
int getValue_SLB(HcalElectronicsId const &)
uint32_t getBin_FEDVME(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberChuTCATP()
const std::vector< unsigned int > crateListuTCA
uint32_t getBin(HcalElectronicsId const &eid) override
HcalElectronicsId getEid_FiberuTCATP(int)
int getValue_SLBSLBCh(HcalElectronicsId const &)
const std::vector< unsigned int > fedList
std::vector< std::string > getLabels_FiberVMEFiberCh()
std::vector< int > _crates
uint32_t getBin_SlotuTCA(HcalElectronicsId const &)
std::vector< std::string > getLabels_SLBSLBCh()
HcalElectronicsId getEid_FiberuTCAFiberCh(int)
std::vector< std::string > getLabels_FiberuTCATPFiberChuTCATP()
std::vector< std::string > getLabels_Crate()
const std::vector< unsigned int > crateList
int getValue_FiberChuTCATP(HcalElectronicsId const &)
const std::map< ElectronicsQuantityType, getValueType_eid > getValue_functions_eid
HcalElectronicsId getEid_SlotVME(int)
std::vector< std::string > getLabels_Spigot()
CrateQuantity(HcalElectronicsMap const *emap)
uint32_t getBin_FiberuTCAFiberCh(HcalElectronicsId const &)
std::vector< std::string > getLabels_FEDuTCA()
HcalElectronicsId getEid_FEDuTCASlot(int)
std::vector< std::string > getLabels_SlotVME()
uint32_t getBin_FiberuTCATP(HcalElectronicsId const &)
std::vector< std::string > getLabels_FED()
const std::map< ElectronicsQuantityType, getEid_eid > getEid_functions_eid
uint32_t getBin_FiberChuTCATP(HcalElectronicsId const &)
const std::vector< unsigned int > crateListVME
std::vector< std::string >(* getLabels_eid)()
std::unordered_map< int, uint32_t > FEDMap
int getValue_SLBCh(HcalElectronicsId const &)
HcalElectronicsId getEid_CrateVME(int)
int getValue_FED(HcalElectronicsId const &)
int getValue_FiberuTCATP(HcalElectronicsId const &)
uint32_t getBin_FiberVMEFiberCh(HcalElectronicsId const &)
uint32_t getBin_SLB(HcalElectronicsId const &)
uint32_t getBin_FEDuTCASlot(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberuTCA(int)
int getValue_FiberVME(HcalElectronicsId const &)
~ElectronicsQuantity() override
std::vector< std::string > getLabels() override
HcalElectronicsId getEid_SLBCh(int)
std::vector< std::string > getLabels_SLB()
std::vector< std::string > getLabels_SlotuTCA()
std::vector< std::string > getLabels_FiberuTCATP()
FEDQuantity * makeCopy() override
int getValue_FEDVME(HcalElectronicsId const &)
uint32_t getBin(HcalElectronicsId const &) override
CrateQuantity * makeCopy() override
Readout chain identification for Hcal.
HcalElectronicsId getEid_FEDuTCA(int)
ElectronicsQuantity * makeCopy() override
const std::map< ElectronicsQuantityType, double > min_eid
std::vector< std::string > getLabels() override
FEDQuantity(std::vector< int > const &vFEDs)
int getValue_CrateuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_SlotuTCA(int)
int getValue_FiberuTCAFiberCh(HcalElectronicsId const &)
int(* getValueType_eid)(HcalElectronicsId const &)
int getValue(HcalElectronicsId const &) override
std::vector< std::string > getLabels_FiberCh()
std::vector< std::string > getLabels_FEDVME()
const std::map< ElectronicsQuantityType, double > nbins_eid
HcalElectronicsId getEid_FiberVMEFiberCh(int)
CrateQuantity(std::vector< int > crates, CrateHashMap crateHashes)
int getValue_CrateVME(HcalElectronicsId const &)
uint32_t getBin_CrateVME(HcalElectronicsId const &)
int getValue_Crate(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberVME(int)
int getValue_SlotuTCA(HcalElectronicsId const &)
int getValue_FiberCh(HcalElectronicsId const &)
HcalElectronicsId getEid_Spigot(int)
std::vector< std::string > getLabels_FiberVME()
ElectronicsQuantity(ElectronicsQuantityType type, bool isLog=false)
uint32_t getBin_FED(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberuTCATPFiberChuTCATP(int)
std::vector< std::string > getLabels_CrateuTCA()
uint32_t getBin_Spigot(HcalElectronicsId const &)
bool isCoordinate() override
int getValue(HcalElectronicsId const &) override
virtual void setup(HcalElectronicsMap const *emap)
std::vector< std::string > getLabels_SLBCh()
ElectronicsQuantityType _type
uint32_t getBin_FiberVME(HcalElectronicsId const &)
uint32_t getBin_FiberCh(HcalElectronicsId const &)
const std::map< ElectronicsQuantityType, getBinType_eid > getBin_functions_eid
QuantityType type() override
uint32_t getBin_FiberuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_CrateuTCA(int)
uint32_t getBin_FEDVMESpigot(HcalElectronicsId const &)
HcalElectronicsId getEid_FEDVMESpigot(int)
uint32_t getBin_SlotVME(HcalElectronicsId const &)
uint32_t getBin_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
uint32_t getBin_SLBCh(HcalElectronicsId const &)
int getValue_FEDVMESpigot(HcalElectronicsId const &)
std::vector< std::string > getLabels_FEDVMESpigot()
std::map< int, uint32_t > CrateHashMap
std::vector< std::string > getLabels_FiberuTCA()
int getValue_FEDuTCA(HcalElectronicsId const &)
uint32_t getBin_FEDuTCA(HcalElectronicsId const &)
uint32_t(* getBinType_eid)(HcalElectronicsId const &)
const std::map< ElectronicsQuantityType, double > max_eid
std::vector< std::string > getLabels_FEDuTCASlot()
int getValue_FiberuTCA(HcalElectronicsId const &)
int getValue_FEDuTCASlot(HcalElectronicsId const &)
int getValue_FiberVMEFiberCh(HcalElectronicsId const &)
CrateHashMap _crateHashes
std::vector< std::string > getLabels_FiberuTCAFiberCh()
HcalElectronicsId getEid_FiberCh(int)
const std::vector< unsigned int > fedListVME
int getValue(HcalElectronicsId const &eid) override
HcalElectronicsId getEid_FED(int)
const std::map< ElectronicsQuantityType, getLabels_eid > getLabels_functions_eid
int getValue_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
const std::vector< unsigned int > fedListuTCA
uint32_t getBin_Crate(HcalElectronicsId const &)
uint32_t getBin_SLBSLBCh(HcalElectronicsId const &)
HcalElectronicsId getEid_SLB(int)
HcalElectronicsId(* getEid_eid)(int)
int getValue_SlotVME(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberChuTCATP(int)
uint32_t getBin(HcalElectronicsId const &) override
uint32_t getBin_CrateuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_FEDVME(int)
std::vector< std::string > getLabels_CrateVME()