#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, HGCalEE = 8, HGCalHSi = 9, HGCalHSc = 10, HGCalTrigger = 11 } |
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 | |
constexpr Detector | det () const |
get the detector field from this detid More... | |
constexpr | DetId () |
Create an empty or null id (also for persistence) More... | |
constexpr | DetId (uint32_t id) |
Create an id from a raw number. More... | |
constexpr | DetId (Detector det, int subdet) |
Create an id, filling the detector and subdetector fields as specified. More... | |
constexpr bool | null () const |
is this a null id ? More... | |
constexpr | operator uint32_t () const |
constexpr bool | operator!= (DetId id) const |
inequality More... | |
constexpr uint32_t | operator() () const |
constexpr bool | operator< (DetId id) const |
comparison More... | |
constexpr bool | operator== (DetId id) const |
equality More... | |
constexpr uint32_t | rawId () const |
get the raw id More... | |
constexpr 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 | kDetMask = 0xF |
static const int | kDetOffset = 28 |
static const int | kSubdetMask = 0x7 |
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 75 of file ESDetId.h.
anonymous enum |
Enumerator | |
---|---|
kSizeForDenseIndexing |
Definition at line 102 of file ESDetId.h.
|
inline |
|
inline |
Constructor from a raw value
Definition at line 21 of file ESDetId.h.
|
inline |
constructor from strip, ix, iy, plane, and iz
Definition at line 24 of file ESDetId.h.
References DetId::id_, and verify().
|
inline |
constructor from a generic DetId
Definition at line 107 of file ESDetId.h.
References DetId::det(), DetId::Ecal, EcalPreshower, Exception, DetId::null(), and DetId::subdetId().
|
inline |
Definition at line 51 of file ESDetId.h.
References hashedIndex().
|
inlinestatic |
Definition at line 55 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 21 of file ESDetId.cc.
References hxy1, hxy2, cuy::ib, gpuClustering::id, kLb, kLc, kLd, plane(), six(), siy(), strip(), and zside().
Referenced by denseIndex(), and ESRecHitSimAlgo::reconstruct().
assignment from a generic DetId
Definition at line 115 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 41 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(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the sensor ix
Definition at line 43 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), hashedIndex(), ESDigiToRaw::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the sensor iy
Definition at line 45 of file ESDetId.h.
References DetId::id_.
Referenced by EcalPreshowerDigisValidation::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), hashedIndex(), ESDigiToRaw::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the strip
Definition at line 47 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(), PreshowerClusterAlgo::makeOneCluster(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
inline |
get the subdetector
Definition at line 37 of file ESDetId.h.
References DetId::subdetId().
|
static |
get a DetId from a compact index for arrays
Definition at line 32 of file ESDetId.cc.
References ESDetId(), hx1, hx2, hy1, hy2, cuy::ib, gpuClustering::id, kLb, kLc, kLd, and validHashIndex().
Referenced by detIdFromDenseIndex(), and ESTrivialConditionRetriever::getChannelStatusFromConfiguration().
|
inlinestatic |
|
static |
check if a valid index combination
Definition at line 15 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(), StoreESCondition::readESChannelStatusFromFile(), StoreESCondition::readESIntercalibConstantsFromFile(), StoreESCondition::readESPedestalsFromFile(), CaloGenericDetId::validDetId(), verify(), and ESUnpacker::word2digi().
|
inlinestatic |
Definition at line 59 of file ESDetId.h.
References kSizeForDenseIndexing.
Referenced by unhashIndex(), and validDenseIndex().
|
static |
Definition at line 6 of file ESDetId.cc.
References Exception, hxy1, hxy2, and validDetId().
Referenced by ESDetId().
|
inline |
get the zside
Definition at line 39 of file ESDetId.h.
References DetId::id_.
Referenced by ESOccupancyTask::analyze(), ESPedestalTask::analyze(), ESTimingTask::analyze(), ESTrendTask::analyze(), EcalPreshowerRecHitsValidation::analyze(), EcalPreshowerDigisValidation::analyze(), EcalDigisValidation::analyze(), EcalMixingModuleValidation::analyze(), ESDataFormatterV1_1::DigiToRaw(), ESDataFormatterV4::DigiToRaw(), hashedIndex(), EcalPreshowerGeometry::initializeParms(), ESDigiToRaw::produce(), SelectedElectronFEDListProducer< TEle, TCand >::produce(), EcalSimHitsValidProducer::update(), CaloGenericDetId::validDetId(), and ESUnpacker::word2digi().
|
staticprivate |
Definition at line 94 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 98 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 93 of file ESDetId.h.
Referenced by hashedIndex(), validDetId(), and verify().
|
staticprivate |
Definition at line 97 of file ESDetId.h.
Referenced by hashedIndex(), validDetId(), and verify().
|
staticprivate |
Definition at line 95 of file ESDetId.h.
Referenced by unhashIndex().
|
staticprivate |
Definition at line 99 of file ESDetId.h.
Referenced by unhashIndex().
|
static |
Definition at line 69 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalPreshowerGeometry::getClosestCellInPlane(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), StoreESCondition::readESChannelStatusFromFile(), StoreESCondition::readESPedestalsFromFile(), and validDetId().
|
static |
Definition at line 68 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), EcalPreshowerGeometry::getClosestCellInPlane(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), StoreESCondition::readESChannelStatusFromFile(), StoreESCondition::readESPedestalsFromFile(), and validDetId().
|
static |
Definition at line 66 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), StoreESCondition::readESChannelStatusFromFile(), StoreESCondition::readESPedestalsFromFile(), and validDetId().
|
static |
Definition at line 64 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), StoreESCondition::readESChannelStatusFromFile(), StoreESCondition::readESPedestalsFromFile(), and validDetId().
|
static |
Definition at line 67 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), StoreESCondition::readESChannelStatusFromFile(), StoreESCondition::readESPedestalsFromFile(), and validDetId().
|
static |
Definition at line 65 of file ESDetId.h.
Referenced by ESTrivialConditionRetriever::getChannelStatusFromConfiguration(), ESTrivialConditionRetriever::produceESChannelStatus(), ESTrivialConditionRetriever::produceESIntercalibConstants(), ESTrivialConditionRetriever::produceESPedestals(), ESTrivialConditionRetriever::produceESWeightStripGroups(), StoreESCondition::readESChannelStatusFromFile(), StoreESCondition::readESPedestalsFromFile(), and validDetId().
|
static |
Definition at line 72 of file ESDetId.h.
Referenced by StoreESCondition::readESPedestalsFromFile().
|
static |
Definition at line 71 of file ESDetId.h.
Referenced by StoreESCondition::readESPedestalsFromFile(), and validDetId().
|
static |
Definition at line 70 of file ESDetId.h.
Referenced by StoreESCondition::readESPedestalsFromFile(), and validDetId().