#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) | |
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 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_ |
Det id for a preshower (endcap) strip
anonymous enum |
Enumerator | |
---|---|
Subdet |
Definition at line 18 of file ESDetId.h.
|
private |
Enumerator | |
---|---|
kXYMAX | |
kXYMIN | |
kXMAX | |
kYMAX | |
kXMIN | |
kYMIN | |
kNa | |
kNb | |
kNc | |
kNd | |
kLd | |
kLc | |
kLb | |
kLa |
Definition at line 69 of file ESDetId.h.
anonymous enum |
Enumerator | |
---|---|
kSizeForDenseIndexing |
Definition at line 95 of file ESDetId.h.
ESDetId::ESDetId | ( | ) |
ESDetId::ESDetId | ( | uint32_t | rawid | ) |
ESDetId::ESDetId | ( | int | strip, |
int | ixs, | ||
int | iys, | ||
int | plane, | ||
int | iz | ||
) |
constructor from strip, ix, iy, plane, and iz
Definition at line 15 of file ESDetId.cc.
References edm::hlt::Exception, hxy1, hxy2, DetId::id_, and validDetId().
ESDetId::ESDetId | ( | const DetId & | id | ) |
constructor from a generic DetId
Definition at line 38 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 45 of file ESDetId.h.
References hashedIndex().
Referenced by EcalPreshowerGeometry::getClosestCellInPlane().
|
inlinestatic |
Definition at line 49 of file ESDetId.h.
References unhashIndex().
Referenced by CaloGenericDetId::CaloGenericDetId().
int ESDetId::hashedIndex | ( | ) | const |
get a compact index for arrays [TODO: NEEDS WORK]
Definition at line 85 of file ESDetId.cc.
References hxy1, hxy2, ExpressReco_HICollisions_FallBack::id, kLb, kLc, kLd, plane(), six(), siy(), strip(), and zside().
Referenced by denseIndex().
assignment from a generic DetId
Definition at line 72 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 35 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), PFRecHitProducerPS::createRecHits(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), EndcapPiZeroDiscriminatorAlgo::findPreshVector(), hashedIndex(), EcalPreshowerGeometry::initializeParms(), PreshowerClusterAlgo::makeOneCluster(), ESDigiToRaw::produce(), AlCaElectronsProducer::produce(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the sensor ix
Definition at line 37 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(), AlCaElectronsProducer::produce(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the sensor iy
Definition at line 39 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(), AlCaElectronsProducer::produce(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the strip
Definition at line 41 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(), AlCaElectronsProducer::produce(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the subdetector
Definition at line 31 of file ESDetId.h.
References DetId::subdetId().
|
static |
get a DetId from a compact index for arrays
Definition at line 103 of file ESDetId.cc.
References ESDetId(), hx1, hx2, hy1, hy2, ExpressReco_HICollisions_FallBack::id, kLb, kLc, kLd, and validHashIndex().
Referenced by detIdFromDenseIndex(), and ESTrivialConditionRetriever::getChannelStatusFromConfiguration().
|
inlinestatic |
|
static |
check if a valid index combination
Definition at line 50 of file ESDetId.cc.
References 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(), ESDetId(), EcalPreshowerGeometry::getClosestCellInPlane(), EcalPreshowerTopology::incrementIx(), EcalPreshowerTopology::incrementIy(), EcalPreshowerTopology::incrementIz(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inlinestatic |
Definition at line 53 of file ESDetId.h.
References kSizeForDenseIndexing.
Referenced by unhashIndex(), and validDenseIndex().
|
inline |
get the zside
Definition at line 33 of file ESDetId.h.
References DetId::id_.
Referenced by ESOccupancyTask::analyze(), ESPedestalTask::analyze(), ESTrendTask::analyze(), ESTimingTask::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalPreshowerDigisValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), hashedIndex(), EcalPreshowerGeometry::initializeParms(), ESDigiToRaw::produce(), AlCaElectronsProducer::produce(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
staticprivate |
Definition at line 86 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 90 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 85 of file ESDetId.h.
Referenced by ESDetId(), hashedIndex(), and validDetId().
|
staticprivate |
Definition at line 89 of file ESDetId.h.
Referenced by ESDetId(), hashedIndex(), and validDetId().
|
staticprivate |
Definition at line 87 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 91 of file ESDetId.h.
Referenced by unhashIndex().
|
static |
Definition at line 62 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalPreshowerGeometry::getClosestCellInPlane(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 61 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalPreshowerGeometry::getClosestCellInPlane(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 59 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 57 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 60 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 58 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), and validDetId().
|
static |
Definition at line 64 of file ESDetId.h.
Referenced by validDetId().
|
static |
Definition at line 63 of file ESDetId.h.
Referenced by validDetId().