29 unsigned int retval=0xFFFFFFFFu;
31 edm::LogError(
"HCAL") <<
"Topology pointer not set, HCAL conditions non-functional";
32 throw cms::Exception(
"Topology pointer not set, HCAL conditions non-functional");
55 static const int CASTORhalf=224;
57 int index = 14*(sector-1) + (module-1);
58 if (zside == -1) index += CASTORhalf;
60 retval=(
unsigned int)(index);
72 unsigned int retval=0;
75 edm::LogError(
"HCAL") <<
"Topology pointer not set, HCAL conditions non-functional";
76 throw cms::Exception(
"Topology pointer not set, HCAL conditions non-functional");
102 std::ostringstream os;
103 os << std::hex <<
"(0x" <<
id.rawId() <<
") " << std::dec;
unsigned int getCALIBSize() const
unsigned int getHFSize() const
unsigned int getHOSize() const
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)
HcalCondObjectContainerBase(const HcalTopology *)
void setTopo(const HcalTopology *topo) const
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
virtual int topoVersion() const
return a version which identifies the given topology
unsigned int sizeFor(DetId) const
unsigned int getHTSize() const
int zside() const
get the z-side of the cell (1/-1)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static const int SubdetectorId
Section section() const
get the section
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
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
Detector det() const
get the detector field from this detid
unsigned int getHBSize() const
unsigned int detId2denseIdCALIB(const DetId &id) const
return a linear packed id from CALIB
uint32_t denseIndex() const
const HcalTopology * topo() const