#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 } |
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 |
|
inline |
constructor from strip, ix, iy, plane, and iz
Definition at line 25 of file ESDetId.h.
References DetId::id_, and verify().
ESDetId::ESDetId | ( | const DetId & | id | ) |
constructor from a generic DetId
Definition at line 6 of file ESDetId.cc.
References DetId::det(), DetId::Ecal, EcalPreshower, edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), 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 69 of file ESDetId.cc.
References hxy1, hxy2, cuy::ib, kLb, kLc, kLd, plane(), six(), siy(), strip(), and zside().
Referenced by denseIndex(), and ESRecHitSimAlgo::reconstruct().
assignment from a generic DetId
Definition at line 56 of file ESDetId.cc.
References DetId::det(), DetId::Ecal, EcalPreshower, edm::hlt::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(), EcalPreshowerRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), EndcapPiZeroDiscriminatorAlgo::findPreshVector(), hashedIndex(), EcalPreshowerGeometry::initializeParms(), PreshowerPhiClusterAlgo::makeOneCluster(), PreshowerClusterAlgo::makeOneCluster(), ESDigiToRaw::produce(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the sensor ix
Definition at line 48 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), hashedIndex(), ESDigiToRaw::produce(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the sensor iy
Definition at line 50 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), hashedIndex(), ESDigiToRaw::produce(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the strip
Definition at line 52 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), EndcapPiZeroDiscriminatorAlgo::findPreshVector(), hashedIndex(), PreshowerClusterAlgo::makeOneCluster(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
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 87 of file ESDetId.cc.
References ESDetId(), hx1, hx2, hy1, hy2, cuy::ib, kLb, kLc, kLd, and validHashIndex().
Referenced by detIdFromDenseIndex(), and ESTrivialConditionRetriever::getChannelStatusFromConfiguration().
|
inlinestatic |
|
static |
check if a valid index combination
Definition at line 34 of file ESDetId.cc.
References funct::abs(), hxy1, hxy2, ISTRIP_MAX, ISTRIP_MIN, IX_MAX, IX_MIN, IY_MAX, IY_MIN, PLANE_MAX, and PLANE_MIN.
Referenced by EcalPreshowerTopology::decrementIx(), EcalPreshowerTopology::decrementIy(), EcalPreshowerTopology::decrementIz(), EcalPreshowerGeometry::getClosestCellInPlane(), EcalPreshowerTopology::incrementIx(), EcalPreshowerTopology::incrementIy(), EcalPreshowerTopology::incrementIz(), CaloGenericDetId::validDetId(), verify(), and ESUnpacker::word2digi().
|
inlinestatic |
Definition at line 64 of file ESDetId.h.
References kSizeForDenseIndexing.
Referenced by unhashIndex(), and validDenseIndex().
|
static |
Definition at line 18 of file ESDetId.cc.
References edm::hlt::Exception, hxy1, hxy2, and validDetId().
Referenced by ESDetId().
|
inline |
get the zside
Definition at line 44 of file ESDetId.h.
References DetId::id_.
Referenced by ESOccupancyTask::analyze(), ESPedestalTask::analyze(), ESTimingTask::analyze(), ESTrendTask::analyze(), EcalPreshowerDigisValidation::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), hashedIndex(), EcalPreshowerGeometry::initializeParms(), ESDigiToRaw::produce(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
staticprivate |
Definition at line 99 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 103 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 98 of file ESDetId.h.
Referenced by hashedIndex(), validDetId(), and verify().
|
staticprivate |
Definition at line 102 of file ESDetId.h.
Referenced by hashedIndex(), validDetId(), and verify().
|
staticprivate |
Definition at line 100 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 104 of file ESDetId.h.
Referenced by unhashIndex().
|
static |
Definition at line 75 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalPreshowerGeometry::getClosestCellInPlane(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 74 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalPreshowerGeometry::getClosestCellInPlane(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 72 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 70 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 73 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 71 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 77 of file ESDetId.h.
Referenced by validDetId().
|
static |
Definition at line 76 of file ESDetId.h.
Referenced by validDetId().