1 #ifndef ECALDETID_EEDETID_H 2 #define ECALDETID_EEDETID_H 45 id_ |= (crystal_iy & 0x7f) | ((crystal_ix & 0x7f) << 7) | ((iz > 0) ? (0x4000) : (0));
71 int zside()
const {
return (
id_ & 0x4000) ? (1) : (-1); }
77 int ix()
const {
return (
id_ >> 7) & 0x7F; }
83 int iy()
const {
return id_ & 0x7F; }
184 const uint32_t jx(
ix());
185 const uint32_t jd(2 * (
iy() - 1) + (jx - 1) / 50);
248 static bool validDetId(
int crystal_ix,
int crystal_iy,
int iz) {
249 return crystal_ix >=
IX_MIN && crystal_ix <= IX_MAX && crystal_iy >=
IY_MIN && crystal_iy <=
IY_MAX &&
259 float x = crystal_ix;
260 float y = crystal_iy;
261 float r = (
x - 50.5f) * (
x - 50.5
f) + (
y - 50.5f) * (
y - 50.5
f);
262 return r > 12.f * 12.f &&
r < 48.f * 48.f;
285 static int isc(
int iscCol,
354 int ix(
int iSC,
int iCrys)
const;
355 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)
static EEDetId unhashIndex(int hi)
static const int SCCRYSTALMODE
EEDetId switchZSide() const
static bool validHashIndex(int i)
static const int iYoffset[nCols+1]
static bool isOuterRingXY(int ax, int ay)
static bool slowValidDetId(int crystal_ix, int crystal_iy)
EEDetId offsetBy(int nrStepsX, int nrStepsY) const
uint32_t denseIndex() const
Abs< T >::type abs(const T &t)
static bool isNextToRingBoundary(EEDetId id)
static int distanceY(const EEDetId &a, const EEDetId &b)
static bool isNextToDBoundary(EEDetId id)
int ixQuadrantOne() const
int iyQuadrantOne() const
static bool validDetId(int crystal_ix, int crystal_iy, int iz)
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)
EEDetId(int crystal_ix, int crystal_iy, int iz)
static const unsigned short kdi[2 *IY_MAX]
static bool fastValidDetId(int crystal_ix, int crystal_iy)
std::ostream & operator<<(std::ostream &s, const EEDetId &id)
int iPhiOuterRing() const
EEDetId & operator=(const DetId &id)