32 unsigned int crate = eid.
crateId();
39 unsigned int crate = eid.
crateId();
46 unsigned int crate = eid.
crateId();
58 int slot = eid.
slot();
426 std::vector<std::string>
labels;
440 std::vector<std::string>
labels;
454 std::vector<std::string>
labels;
467 std::vector<std::string>
labels;
471 sprintf(name,
"%d%c",
472 it_crate, eid.
isVMEid()?
'v':
'u');
480 std::vector<std::string>
labels;
483 sprintf(name,
"%dv", it_crate);
491 std::vector<std::string>
labels;
494 sprintf(name,
"%du", it_crate);
502 std::vector<std::string>
labels;
516 return std::vector<std::string>();
521 return std::vector<std::string>();
537 std::vector<std::string>
labels;
551 std::vector<std::string>
labels;
565 std::vector<std::string>
labels;
579 std::vector<std::string>
labels;
591 sprintf(name,
"%d-%d",
601 std::vector<std::string>
labels;
614 sprintf(name,
"%d-%d",
623 std::vector<std::string>
labels;
645 std::vector<std::string>
labels;
666 std::vector<std::string>
labels;
680 std::vector<std::string>
labels;
694 std::vector<std::string>
labels;
710 std::vector<std::string>
labels;
724 std::vector<std::string>
labels;
738 std::vector<std::string>
labels;
755 for (uint32_t
i=0;
i<vFEDs.size();
i++)
756 _feds.insert(std::make_pair(vFEDs[
i], i));
773 std::vector<std::string>
labels(_feds.size());
777 sprintf(name,
"%d", v.first);
792 for (
auto& it_crate : crates) {
793 _crates.push_back(it_crate);
794 _crateHashes[it_crate] = crateHashes[it_crate];
806 auto it =
std::find(_crates.begin(), _crates.end(), crate);
807 if (it == _crates.end()) {
816 std::vector<std::string>
labels;
818 for (
auto& it_crate : _crates) {
821 sprintf(name,
"%dv", it_crate);
823 sprintf(name,
"%du", it_crate);
825 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)
std::vector< unsigned int > const crateListuTCA
uint32_t getBin(HcalElectronicsId const &) override
uint32_t getBin_SlotuTCA(HcalElectronicsId const &)
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 &)
constexpr int slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
std::vector< unsigned int > const fedListuTCA
uint32_t getBin_FiberChuTCATP(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberVMEFiberCh()
int getValue_FiberVME(HcalElectronicsId const &)
constexpr int dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
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()
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 &)
constexpr bool isVMEid() 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 &)
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()
constexpr int spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
constexpr int crateId() const
get the readout VME crate number
std::vector< unsigned int > const fedList
HcalElectronicsId getEid_FEDVMESpigot(int)
uint32_t getBin_FED(HcalElectronicsId const &)
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 &)
uint32_t getBin_CrateVME(HcalElectronicsId const &)
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...
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 &)
std::vector< std::string > getLabels_FEDuTCASlot()
std::vector< unsigned int > const crateListVME
int getValue_FiberVMEFiberCh(HcalElectronicsId const &)
constexpr int slot() const
get the htr or uHTR slot
uint32_t getBin_SLBCh(HcalElectronicsId const &)
uint32_t getBin_Spigot(HcalElectronicsId const &)
int getValue_FEDVMESpigot(HcalElectronicsId const &)
std::vector< std::string > getLabels_SLBCh()
int getValue_FEDuTCA(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberCh(int)
HcalElectronicsId getEid_FiberChuTCATP(int)
HcalElectronicsId getEid_FED(int)
constexpr int slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
int getValue_FiberuTCATPFiberChuTCATP(HcalElectronicsId const &)
std::vector< std::string > getLabels_FiberuTCA()
std::vector< std::string > getLabels_CrateVME()
uint32_t getBin_FiberCh(HcalElectronicsId const &)
const JetExtendedData & getValue(const Container &, const reco::JetBaseRef &)
get value for the association. Throw exception if no association found
uint32_t getBin_Crate(HcalElectronicsId const &)
uint32_t getBin_FEDVMESpigot(HcalElectronicsId const &)
int getValue_FEDuTCASlot(HcalElectronicsId const &)
uint32_t getBin_FiberuTCA(HcalElectronicsId const &)
constexpr int fiberChanId() const
get the fiber channel id (which of channels on a fiber)
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()