93 int slbsite =
eid.slbSiteNumber();
285 std::vector<std::string>
labels;
296 std::vector<std::string>
labels;
307 std::vector<std::string>
labels;
317 std::vector<std::string>
labels;
321 sprintf(
name,
"%d%c", it_crate,
eid.isVMEid() ?
'v' :
'u');
328 std::vector<std::string>
labels;
331 sprintf(
name,
"%dv", it_crate);
338 std::vector<std::string>
labels;
341 sprintf(
name,
"%du", it_crate);
348 std::vector<std::string>
labels;
352 sprintf(
name,
"%d",
eid.slot());
361 return std::vector<std::string>();
376 std::vector<std::string>
labels;
380 sprintf(
name,
"%d",
eid.fiberIndex());
387 std::vector<std::string>
labels;
391 sprintf(
name,
"%d",
eid.fiberIndex());
398 std::vector<std::string>
labels;
402 sprintf(
name,
"%d",
eid.fiberChanId());
409 std::vector<std::string>
labels;
425 std::vector<std::string>
labels;
442 std::vector<std::string>
labels;
452 sprintf(
name,
"%d-%d",
eid.fiberIndex(),
eid.fiberChanId());
459 std::vector<std::string>
labels;
468 sprintf(
name,
"%d-%d",
eid.fiberIndex(),
eid.fiberChanId());
475 std::vector<std::string>
labels;
479 sprintf(
name,
"%d",
eid.slbSiteNumber());
487 std::vector<std::string>
labels;
491 sprintf(
name,
"%d",
eid.slbChannelIndex());
499 std::vector<std::string>
labels;
504 sprintf(
name,
"%d-%d",
eid.slbSiteNumber(),
eid.slbChannelIndex());
512 std::vector<std::string>
labels;
516 sprintf(
name,
"%d",
eid.fiberIndex());
524 std::vector<std::string>
labels;
528 sprintf(
name,
"%d",
eid.fiberChanId());
536 std::vector<std::string>
labels;
541 sprintf(
name,
"%d-%d",
eid.fiberIndex(),
eid.fiberChanId());
549 for (uint32_t
i = 0;
i < vFEDs.size();
i++)
550 _feds.insert(std::make_pair(vFEDs[
i],
i));
561 std::vector<std::string>
labels(_feds.size());
563 for (
auto const &
v : _feds) {
564 sprintf(
name,
"%d",
v.first);
577 for (
auto &it_crate : crates) {
578 _crates.push_back(it_crate);
579 _crateHashes[it_crate] = crateHashes[it_crate];
588 if (
it == _crates.end()) {
596 std::vector<std::string>
labels;
598 for (
auto &it_crate : _crates) {
601 sprintf(
name,
"%dv", it_crate);
603 sprintf(
name,
"%du", it_crate);
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 &)
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()
std::vector< std::string > getLabels_FEDuTCA()
U second(std::pair< T, U > const &p)
HcalElectronicsId getEid_SLBCh(int)
HcalElectronicsId getEid_SlotuTCA(int)
HcalElectronicsId getEid_Spigot(int)
int getValue_SLBCh(HcalElectronicsId const &)
std::vector< std::string > getLabels_FEDVME()
constexpr int32_t fiberChanId() const
get the fiber channel id (which of channels on a fiber)
HcalElectronicsId getEid_FiberVME(int)
int getValue(HcalElectronicsId const &) override
int getValue_FiberCh(HcalElectronicsId const &)
uint32_t getBin(HcalElectronicsId const &) override
constexpr int32_t spigot() const
get the spigot (input number on DCC, AMC card number for uTCA)
uint32_t getBin_SLB(HcalElectronicsId const &)
HcalElectronicsId getEid_FiberuTCATPFiberChuTCATP(int)
std::vector< std::string > getLabels() override
constexpr int32_t slbSiteNumber() const
get the SLB site number (valid only for VME trigger-chain ids)
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()
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 &)
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()
constexpr int32_t fiberIndex() const
get the fiber index. For VME 1-8 (which of eight fibers carried by a spigot), for uTCA fibers are zer...
int getValue_SlotuTCA(HcalElectronicsId const &)
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 &)
constexpr int32_t slbChannelIndex() const
get the SLB channel index (valid only for VME trigger-chain ids)
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)
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 &)
constexpr int32_t slot() const
get the htr or uHTR slot
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 &)
constexpr int32_t dccid() const
get the (Hcal local) DCC id for VME, crate number for uTCA
HcalElectronicsId getEid_FEDVME(int)
std::vector< std::string > getLabels_SLBSLBCh()
std::vector< std::string > getLabels_FiberuTCAFiberCh()
constexpr int32_t crateId() const
get the readout VME crate number