1 #ifndef ECALDETID_ESDETID_H
2 #define ECALDETID_ESDETID_H
30 (((plane-1)&0x1)<<18) |
33 if (doverify)
verify(strip, ixs, iys, plane, iz);
44 int zside()
const {
return (
id_&0x80000)?(1):(-1); }
46 int plane()
const {
return ((
id_>>18)&0x1)+1; }
48 int six()
const {
return (
id_>>6)&0x3F; }
50 int siy()
const {
return (
id_>>12)&0x3F; }
66 static bool validDetId(
int istrip,
int ixs,
int iys,
int iplane,
int iz) ;
67 static void verify(
int istrip,
int ixs,
int iys,
int iplane,
int iz) ;
static bool validDenseIndex(uint32_t din)
ESDetId(int strip, int ixs, int iys, int plane, int iz, bool doverify=false)
constructor from strip, ix, iy, plane, and iz
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)
def gen
run2 Cosmic #### Run 256259 @ 0T 2015C### Run 272133 @ 3.8T 2016B###
static const int PLANE_MIN
uint32_t rawId() const
get the raw id
static void verify(int istrip, int ixs, int iys, int iplane, int iz)
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
bool null() const
is this a null id ?
static ESDetId unhashIndex(int hi)
get a DetId from a compact index for arrays
Detector det() const
get the detector field from this detid
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]