#include <ESDetId.h>
Public Types | |
enum | { Subdet = EcalPreshower } |
enum | { kSizeForDenseIndexing = kLa } |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5, Forward =6, VeryForward =7 } |
Public Member Functions | |
uint32_t | denseIndex () const |
ESDetId () | |
ESDetId (uint32_t rawid) | |
ESDetId (int strip, int ixs, int iys, int plane, int iz, bool doverify=false) | |
constructor from strip, ix, iy, plane, and iz More... | |
ESDetId (const DetId &id) | |
int | hashedIndex () const |
get a compact index for arrays [TODO: NEEDS WORK] More... | |
ESDetId & | operator= (const DetId &id) |
int | plane () const |
int | six () const |
int | siy () const |
int | strip () const |
EcalSubdetector | subdet () const |
get the subdetector More... | |
int | zside () const |
Public Member Functions inherited from DetId | |
Detector | det () const |
get the detector field from this detid More... | |
DetId () | |
Create an empty or null id (also for persistence) More... | |
DetId (uint32_t id) | |
Create an id from a raw number. More... | |
DetId (Detector det, int subdet) | |
Create an id, filling the detector and subdetector fields as specified. More... | |
bool | null () const |
is this a null id ? More... | |
operator uint32_t () const | |
bool | operator!= (DetId id) const |
inequality More... | |
uint32_t | operator() () const |
bool | operator< (DetId id) const |
comparison More... | |
bool | operator== (DetId id) const |
equality More... | |
uint32_t | rawId () const |
get the raw id More... | |
int | subdetId () const |
get the contents of the subdetector field (not cast into any detector's numbering enum) More... | |
Static Public Member Functions | |
static ESDetId | detIdFromDenseIndex (uint32_t din) |
static ESDetId | unhashIndex (int hi) |
get a DetId from a compact index for arrays More... | |
static bool | validDenseIndex (uint32_t din) |
static bool | validDetId (int istrip, int ixs, int iys, int iplane, int iz) |
check if a valid index combination More... | |
static bool | validHashIndex (int hi) |
static void | verify (int istrip, int ixs, int iys, int iplane, int iz) |
Static Public Attributes | |
static const int | ISTRIP_MAX =32 |
static const int | ISTRIP_MIN =1 |
static const int | IX_MAX =40 |
static const int | IX_MIN =1 |
static const int | IY_MAX =40 |
static const int | IY_MIN =1 |
static const int | IZ_NUM =2 |
static const int | PLANE_MAX =2 |
static const int | PLANE_MIN =1 |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Private Types | |
enum | { kXYMAX =1072, kXYMIN = 1, kXMAX = 40, kYMAX = 40, kXMIN = 1, kYMIN = 1, kNa =IZ_NUM, kNb =PLANE_MAX - PLANE_MIN + 1, kNc =kXYMAX - kXYMIN + 1, kNd =ISTRIP_MAX - ISTRIP_MIN + 1, kLd =kNd, kLc =kLd*kNc, kLb =kLc*kNb, kLa =kLb*kNa } |
Static Private Attributes | |
static const unsigned short | hx1 [kXYMAX] |
static const unsigned short | hx2 [kXYMAX] |
static const unsigned short | hxy1 [kXMAX][kYMAX] |
static const unsigned short | hxy2 [kXMAX][kYMAX] |
static const unsigned short | hy1 [kXYMAX] |
static const unsigned short | hy2 [kXYMAX] |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
anonymous enum |
Enumerator | |
---|---|
Subdet |
Definition at line 17 of file ESDetId.h.
|
private |
Enumerator | |
---|---|
kXYMAX | |
kXYMIN | |
kXMAX | |
kYMAX | |
kXMIN | |
kYMIN | |
kNa | |
kNb | |
kNc | |
kNd | |
kLd | |
kLc | |
kLb | |
kLa |
Definition at line 82 of file ESDetId.h.
anonymous enum |
Enumerator | |
---|---|
kSizeForDenseIndexing |
Definition at line 108 of file ESDetId.h.
|
inline |
|
inline |
constructor from strip, ix, iy, plane, and iz
Definition at line 25 of file ESDetId.h.
References DetId::id_, and verify().
|
inline |
constructor from a generic DetId
Definition at line 115 of file ESDetId.h.
References DetId::det(), DetId::Ecal, EcalPreshower, Exception, DetId::null(), and DetId::subdetId().
|
inline |
Definition at line 56 of file ESDetId.h.
References hashedIndex().
|
inlinestatic |
Definition at line 60 of file ESDetId.h.
References unhashIndex().
Referenced by CaloGenericDetId::CaloGenericDetId(), and ESHitResponse::ESHitResponse().
int ESDetId::hashedIndex | ( | ) | const |
get a compact index for arrays [TODO: NEEDS WORK]
Definition at line 44 of file ESDetId.cc.
Referenced by denseIndex().
assignment from a generic DetId
Definition at line 129 of file ESDetId.h.
References DetId::det(), DetId::Ecal, EcalPreshower, Exception, DetId::id_, DetId::null(), DetId::rawId(), and DetId::subdetId().
|
inline |
get the plane
Definition at line 46 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), PreshowerPhiClusterAlgo::makeOneCluster(), ESDigiToRaw::produce(), and CaloGenericDetId::validDetId().
|
inline |
get the sensor ix
Definition at line 48 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), ESDigiToRaw::produce(), and CaloGenericDetId::validDetId().
|
inline |
get the sensor iy
Definition at line 50 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), ESDigiToRaw::produce(), and CaloGenericDetId::validDetId().
|
inline |
get the strip
Definition at line 52 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), and CaloGenericDetId::validDetId().
|
inline |
get the subdetector
Definition at line 42 of file ESDetId.h.
References DetId::subdetId().
|
static |
get a DetId from a compact index for arrays
Definition at line 62 of file ESDetId.cc.
Referenced by detIdFromDenseIndex().
|
inlinestatic |
|
static |
check if a valid index combination
Definition at line 22 of file ESDetId.cc.
Referenced by EcalPreshowerTopology::decrementIx(), EcalPreshowerTopology::decrementIy(), EcalPreshowerTopology::decrementIz(), EcalPreshowerTopology::incrementIx(), EcalPreshowerTopology::incrementIy(), EcalPreshowerTopology::incrementIz(), and CaloGenericDetId::validDetId().
|
inlinestatic |
Definition at line 64 of file ESDetId.h.
References kSizeForDenseIndexing.
Referenced by validDenseIndex().
|
static |
Definition at line 6 of file ESDetId.cc.
Referenced by ESDetId().
|
inline |
get the zside
Definition at line 44 of file ESDetId.h.
References DetId::id_.
Referenced by ESPedestalTask::analyze(), ESTimingTask::analyze(), EcalPreshowerDigisValidation::analyze(), ESDigiToRaw::produce(), and CaloGenericDetId::validDetId().