1 #ifndef ECALDETID_ESDETID_H
2 #define ECALDETID_ESDETID_H
33 int zside()
const {
return (
id_&0x80000)?(1):(-1); }
35 int plane()
const {
return ((
id_>>18)&0x1)+1; }
37 int six()
const {
return (
id_>>6)&0x3F; }
39 int siy()
const {
return (
id_>>12)&0x3F; }
55 static bool validDetId(
int istrip,
int ixs,
int iys,
int iplane,
int iz) ;
static bool validDenseIndex(uint32_t din)
static const unsigned short hy2[kXYMAX]
static const unsigned short hxy2[kXMAX][kYMAX]
static const unsigned short hy1[kXYMAX]
static const int ISTRIP_MAX
std::ostream & operator<<(std::ostream &out, const ALILine &li)
ESDetId & operator=(const DetId &id)
static const int PLANE_MIN
static const int PLANE_MAX
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static ESDetId detIdFromDenseIndex(uint32_t din)
uint32_t denseIndex() const
static const unsigned short hxy1[kXMAX][kYMAX]
static const unsigned short hx2[kXYMAX]
static bool validDetId(int istrip, int ixs, int iys, int iplane, int iz)
check if a valid index combination
static ESDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
EcalSubdetector subdet() const
get the subdetector
static const unsigned short hx1[kXYMAX]
static const int ISTRIP_MIN
static bool validHashIndex(int hi)
int hashedIndex() const
get a compact index for arrays [TODO: NEEDS WORK]