1 #ifndef ECALDETID_EEDETID_H
2 #define ECALDETID_EEDETID_H
65 int zside()
const {
return (
id_&0x4000)?(1):(-1); }
71 int ix()
const {
return (
id_>>7)&0x7F; }
77 int iy()
const {
return id_&0x7F; }
179 const uint32_t jx (
ix() ) ;
180 const uint32_t jd ( 2*(
iy() - 1 ) + ( jx - 1 )/50 ) ;
243 static bool validDetId(
int crystal_ix,
int crystal_iy,
int iz);
266 static int isc(
int iscCol,
336 int ix(
int iSC,
int iCrys )
const;
337 int iy(
int iSC,
int iCrys )
const;
static EcalSubdetector subdet()
static EEDetId detIdFromDenseIndex(uint32_t din)
static bool isNextToBoundary(EEDetId id)
static int distanceX(const EEDetId &a, const EEDetId &b)
EEDetId offsetBy(int nrStepsX, int nrStepsY) const
int ixQuadrantOne() const
static EEDetId unhashIndex(int hi)
std::ostream & operator<<(std::ostream &out, const ALILine &li)
static const int SCCRYSTALMODE
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
static bool validHashIndex(int i)
static const int iYoffset[nCols+1]
static bool isOuterRingXY(int ax, int ay)
int iPhiOuterRing() const
static bool isNextToRingBoundary(EEDetId id)
static int distanceY(const EEDetId &a, const EEDetId &b)
static bool isNextToDBoundary(EEDetId id)
EEDetId switchZSide() const
uint32_t denseIndex() const
static bool validDenseIndex(uint32_t din)
static const int QuadColLimits[nCols+1]
static const unsigned short kxf[2 *IY_MAX]
static EEDetId idOuterRing(int iPhi, int zEnd)
int iyQuadrantOne() const
static const unsigned short kdi[2 *IY_MAX]
EEDetId & operator=(const DetId &id)