31 unsigned int crate = eid.
crateId();
38 unsigned int crate = eid.
crateId();
45 unsigned int crate = eid.
crateId();
57 int slot = eid.
slot();
425 std::vector<std::string>
labels;
439 std::vector<std::string>
labels;
453 std::vector<std::string>
labels;
466 std::vector<std::string>
labels;
471 sprintf(name,
"%d%c",
480 std::vector<std::string>
labels;
494 std::vector<std::string>
labels;
508 std::vector<std::string>
labels;
522 return std::vector<std::string>();
527 return std::vector<std::string>();
543 std::vector<std::string>
labels;
557 std::vector<std::string>
labels;
571 std::vector<std::string>
labels;
585 std::vector<std::string>
labels;
597 sprintf(name,
"%d-%d",
607 std::vector<std::string>
labels;
620 sprintf(name,
"%d-%d",
629 std::vector<std::string>
labels;
651 std::vector<std::string>
labels;
672 std::vector<std::string>
labels;
686 std::vector<std::string>
labels;
700 std::vector<std::string>
labels;
716 std::vector<std::string>
labels;
730 std::vector<std::string>
labels;
744 std::vector<std::string>
labels;
761 for (uint32_t
i=0;
i<vFEDs.size();
i++)
762 _feds.insert(std::make_pair(vFEDs[
i], i));
783 sprintf(name,
"%d", v.first);
798 for (
auto& it_crate : crates) {
799 _crates.push_back(it_crate);
800 _crateHashes[it_crate] = crateHashes[it_crate];
812 auto it =
std::find(_crates.begin(), _crates.end(), crate);
813 if (it == _crates.end()) {
822 std::vector<std::string>
labels;
824 for (
auto& it_crate : _crates) {
827 sprintf(name,
"%dv", it_crate);
829 sprintf(name,
"%du", it_crate);
831 labels.push_back(name);
std::vector< std::string > getLabels_Crate()
std::vector< std::string > getLabels_Spigot()
virtual void setup(HcalElectronicsMap const *emap)
std::vector< unsigned int > const fedListVME
virtual void setup(std::vector< int > const &vFEDs)
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
uint32_t getBin(HcalElectronicsId const &) override
uint32_t getBin_SlotuTCA(HcalElectronicsId const &)
virtual std::string name()
HcalElectronicsId getEid_SLB(int)
uint32_t getBin_SLBSLBCh(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberuTCAFiberCh(int)
std::vector< std::string > getLabels_FED()
std::pair< uint16_t, uint16_t > fed2crate(int fed)
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)
uint32_t getBin_FiberuTCAFiberCh(HcalElectronicsId const &)
std::vector< std::string > getLabels() override
std::vector< std::string > getLabels_FiberChuTCATP()
uint32_t getBin_FiberVMEFiberCh(HcalElectronicsId const &)
int getValue_FiberuTCATP(HcalElectronicsId const &)
HcalElectronicsId getEid_SlotVME(int)
uint32_t getBin_FEDVME(HcalElectronicsId const &)
uint32_t getBin_FiberuTCATP(HcalElectronicsId const &)
std::vector< unsigned int > const fedListuTCA
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)
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
std::vector< std::string > getLabels_FEDuTCA()
U second(std::pair< T, U > const &p)
HcalElectronicsId getEid_SLBCh(int)
HcalElectronicsId getEid_SlotuTCA(int)
Container::value_type value_type
HcalElectronicsId getEid_Spigot(int)
int getValue_SLBCh(HcalElectronicsId const &)
std::vector< std::string > getLabels_FEDVME()
HcalElectronicsId getEid_FiberVME(int)
int getValue(HcalElectronicsId const &) override
int getValue_FiberCh(HcalElectronicsId const &)
uint32_t getBin(HcalElectronicsId const &) override
uint32_t getBin_SLB(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberuTCATPFiberChuTCATP(int)
std::vector< std::string > getLabels() override
HcalElectronicsId getEid_FEDuTCA(int)
std::vector< std::string > getLabels_CrateuTCA()
int const FIBER_uTCA_MIN2
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
std::vector< std::string > getLabels_SlotuTCA()
int const FIBER_uTCA_MIN1
int getValue_CrateuTCA(HcalElectronicsId const &)
int getValue_FEDVME(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberuTCATP()
std::vector< unsigned int > const fedList
HcalElectronicsId getEid_FEDVMESpigot(int)
uint32_t getBin_FED(HcalElectronicsId const &)
int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
int getValue(HcalElectronicsId const &) override
std::map< int, uint32_t > getCrateHashMap(HcalElectronicsMap const *emap)
HcalElectronicsId getEid_FiberVMEFiberCh(int)
uint32_t getBin_SlotVME(HcalElectronicsId const &)
uint32_t getBin_FEDuTCA(HcalElectronicsId const &)
int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
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)
int getValue_FiberuTCAFiberCh(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberVME()
std::vector< std::string > getLabels_FiberCh()
std::vector< unsigned int > const crateList
int getValue_CrateVME(HcalElectronicsId const &)
std::vector< std::string > getLabels_FEDVMESpigot()
int getValue_SlotuTCA(HcalElectronicsId const &)
int slot() const
get the htr or uHTR slot
std::vector< std::string > getLabels_FEDuTCASlot()
std::vector< unsigned int > const crateListVME
int getValue_FiberVMEFiberCh(HcalElectronicsId const &)
uint32_t getBin_SLBCh(HcalElectronicsId const &)
uint32_t getBin_Spigot(HcalElectronicsId const &)
int getValue_FEDVMESpigot(HcalElectronicsId const &)
int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
std::vector< std::string > getLabels_SLBCh()
int getValue_FEDuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberCh(int)
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()
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 &)
HcalElectronicsId getEid_Crate(int)
HcalElectronicsId getEid_FiberuTCATP(int)
Readout chain identification for Hcal.
int const FIBER_uTCA_MAX1
HcalElectronicsId getEid_SLBSLBCh(int)
int getValue_FiberuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_FEDVME(int)
std::vector< std::string > getLabels_SLBSLBCh()
std::vector< std::string > getLabels_FiberuTCAFiberCh()