#include <CaloGenericDetId.h>
Public Member Functions | |
CaloGenericDetId (uint32_t rawid) | |
CaloGenericDetId (const DetId &id) | |
CaloGenericDetId (DetId::Detector iDet, int iSub, uint32_t iDenseIndex) | |
uint32_t | denseIndex () const |
bool | isCalo () const |
bool | isCaloTower () const |
bool | isCastor () const |
bool | isEB () const |
bool | isEcal () const |
bool | isEE () const |
bool | isES () const |
bool | isHcal () const |
bool | isZDC () const |
uint32_t | sizeForDenseIndexing () const |
bool | validDetId () 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... | |
Additional Inherited Members | |
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 } |
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 |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 12 of file CaloGenericDetId.h.
|
inline |
Definition at line 15 of file CaloGenericDetId.h.
|
inline |
Definition at line 17 of file CaloGenericDetId.h.
CaloGenericDetId::CaloGenericDetId | ( | DetId::Detector | iDet, |
int | iSub, | ||
uint32_t | iDenseIndex | ||
) |
Definition at line 6 of file CaloGenericDetId.cc.
References ESDetId::detIdFromDenseIndex(), HcalCastorDetId::detIdFromDenseIndex(), EBDetId::detIdFromDenseIndex(), HcalZDCDetId::detIdFromDenseIndex(), EEDetId::detIdFromDenseIndex(), Exception, DetId::id_, isCaloTower(), isCastor(), isEB(), isEE(), isES(), isHcal(), isZDC(), and DetId::rawId().
uint32_t CaloGenericDetId::denseIndex | ( | ) | const |
Definition at line 24 of file CaloGenericDetId.cc.
References Exception, isCaloTower(), isCastor(), isEB(), isEE(), isES(), isHcal(), isZDC(), and DetId::rawId().
Referenced by CaloSubdetectorGeometry::indexFor(), ZdcGeometry::newCell(), CastorGeometry::newCell(), and EcalPreshowerGeometry::present().
|
inline |
Definition at line 32 of file CaloGenericDetId.h.
References DetId::Calo, and DetId::det().
Referenced by isCaloTower(), isCastor(), and isZDC().
|
inline |
Definition at line 36 of file CaloGenericDetId.h.
References isCalo(), CaloTowerDetId::SubdetId, and DetId::subdetId().
Referenced by CaloTowerGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), CaloTowerGeometry::newCell(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 35 of file CaloGenericDetId.h.
References isCalo(), HcalCastorDetId::SubdetectorId, and DetId::subdetId().
Referenced by CastorGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), CastorGeometry::newCell(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 29 of file CaloGenericDetId.h.
References isEcal(), EBDetId::Subdet, and DetId::subdetId().
Referenced by Electron.Electron::absIsoWithFSR(), EcalBarrelGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 28 of file CaloGenericDetId.h.
References DetId::det(), and DetId::Ecal.
Referenced by isEB(), isEE(), and isES().
|
inline |
Definition at line 30 of file CaloGenericDetId.h.
References isEcal(), EEDetId::Subdet, and DetId::subdetId().
Referenced by EcalEndcapGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 31 of file CaloGenericDetId.h.
References isEcal(), ESDetId::Subdet, and DetId::subdetId().
Referenced by EcalPreshowerGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 33 of file CaloGenericDetId.h.
References DetId::det(), and DetId::Hcal.
Referenced by CaloGenericDetId(), denseIndex(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 34 of file CaloGenericDetId.h.
References isCalo(), HcalZDCDetId::SubdetectorId, and DetId::subdetId().
Referenced by ZdcGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), ZdcGeometry::newCell(), sizeForDenseIndexing(), and validDetId().
uint32_t CaloGenericDetId::sizeForDenseIndexing | ( | ) | const |
Definition at line 40 of file CaloGenericDetId.cc.
References Exception, isCaloTower(), isCastor(), isEB(), isEE(), isES(), isHcal(), isZDC(), HcalCastorDetId::kSizeForDenseIndexing, ESDetId::kSizeForDenseIndexing, EBDetId::kSizeForDenseIndexing, HcalZDCDetId::kSizeForDenseIndexing, and EEDetId::kSizeForDenseIndexing.
Referenced by CaloSubdetectorGeometry::sizeForDenseIndex().
bool CaloGenericDetId::validDetId | ( | ) | const |
Definition at line 56 of file CaloGenericDetId.cc.
References HcalZDCDetId::channel(), Exception, EBDetId::ieta(), EBDetId::iphi(), isCaloTower(), isCastor(), isEB(), isEE(), isES(), isHcal(), isZDC(), EEDetId::ix(), EEDetId::iy(), HcalCastorDetId::module(), ESDetId::plane(), DetId::rawId(), HcalCastorDetId::section(), HcalZDCDetId::section(), HcalCastorDetId::sector(), ESDetId::six(), ESDetId::siy(), ESDetId::strip(), ESDetId::validDetId(), HcalCastorDetId::validDetId(), EBDetId::validDetId(), HcalZDCDetId::validDetId(), EEDetId::validDetId(), ESDetId::zside(), HcalCastorDetId::zside(), and EEDetId::zside().