23 unsigned int retval=0xFFFFFFFFu;
25 edm::LogError(
"HCAL") <<
"Topology pointer not set, HCAL conditions non-functional";
26 throw cms::Exception(
"Topology pointer not set, HCAL conditions non-functional");
49 static const int CASTORhalf=224;
51 int index = 14*(sector-1) + (module-1);
52 if (zside == -1) index += CASTORhalf;
54 retval=(
unsigned int)(index);
66 unsigned int retval=0;
69 edm::LogError(
"HCAL") <<
"Topology pointer not set, HCAL conditions non-functional";
70 throw cms::Exception(
"Topology pointer not set, HCAL conditions non-functional");
96 std::ostringstream os;
97 os << std::hex <<
"(0x" <<
id.rawId() <<
") " <<
std::dec;
unsigned int getCALIBSize() const
unsigned int getHFSize() const
int topoVersion() const override
return a version which identifies the given topology
unsigned int getHOSize() const
HcalCondObjectContainerBase(HcalCondObjectContainerBase const &o)
const HcalTopology * topo_
int sector() const
get the sector (1-16)
unsigned int indexFor(DetId) const
unsigned int detId2denseIdHT(const DetId &id) const
return a linear packed id from HT
unsigned int detId2denseIdHF(const DetId &id) const
return a linear packed id from HF
int zside() const
get the z-side of the cell (1/-1)
int module() const
get the module (1-2 for EM, 1-12 for HAD)
unsigned int detId2denseIdHB(const DetId &id) const
return a linear packed id from HB
HcalOtherSubdetector extractOther(const DetId &id) const
unsigned int sizeFor(DetId) const
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
unsigned int getHTSize() const
int zside() const
get the z-side of the cell (1/-1)
static const int SubdetectorId
static const int SubdetectorId
virtual bool denseIdConsistent(int topoVer) const
return whether this topology is consistent with the numbering in the given topology ...
int channel() const
get the channel
unsigned int getHESize() const
Section section() const
get the section
std::string textForId(const DetId &id) const
unsigned int detId2denseIdHO(const DetId &id) const
return a linear packed id from HO
unsigned int detId2denseIdHE(const DetId &id) const
return a linear packed id from HE
unsigned int getHBSize() const
unsigned int detId2denseIdCALIB(const DetId &id) const
return a linear packed id from CALIB
uint32_t denseIndex() const
void setTopo(const HcalTopology *topo)
const HcalTopology * topo() const
constexpr Detector det() const
get the detector field from this detid