25 unsigned int crate = eid.
crateId();
31 unsigned int crate = eid.
crateId();
37 unsigned int crate = eid.
crateId();
45 int slot = eid.
slot();
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;
387 std::vector<std::string>
labels;
398 std::vector<std::string>
labels;
409 std::vector<std::string>
labels;
425 std::vector<std::string>
labels;
442 std::vector<std::string>
labels;
459 std::vector<std::string>
labels;
475 std::vector<std::string>
labels;
487 std::vector<std::string>
labels;
499 std::vector<std::string>
labels;
512 std::vector<std::string>
labels;
524 std::vector<std::string>
labels;
536 std::vector<std::string>
labels;
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];
587 auto it =
std::find(_crates.begin(), _crates.end(), 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);
605 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)
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()