#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 | |
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... | |
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 } |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
Definition at line 12 of file CaloGenericDetId.h.
|
inline |
|
inline |
Definition at line 18 of file CaloGenericDetId.h.
References CaloGenericDetId(), denseIndex(), sizeForDenseIndexing(), and validDetId().
CaloGenericDetId::CaloGenericDetId | ( | DetId::Detector | iDet, |
int | iSub, | ||
uint32_t | iDenseIndex | ||
) |
Definition at line 6 of file CaloGenericDetId.cc.
References HcalZDCDetId::detIdFromDenseIndex(), ESDetId::detIdFromDenseIndex(), HcalCastorDetId::detIdFromDenseIndex(), EBDetId::detIdFromDenseIndex(), EEDetId::detIdFromDenseIndex(), Exception, DetId::id_, isCaloTower(), isCastor(), isEB(), isEE(), isES(), isHcal(), isZDC(), and DetId::rawId().
uint32_t CaloGenericDetId::denseIndex | ( | ) | const |
Definition at line 29 of file CaloGenericDetId.cc.
References Exception, isCaloTower(), isCastor(), isEB(), isEE(), isES(), isHcal(), isZDC(), and DetId::rawId().
Referenced by CaloGenericDetId(), CaloSubdetectorGeometry::indexFor(), ZdcGeometry::newCell(), CastorGeometry::newCell(), and EcalPreshowerGeometry::present().
|
inline |
Definition at line 34 of file CaloGenericDetId.h.
References DetId::Calo, and DetId::det().
Referenced by isCaloTower(), isCastor(), and isZDC().
|
inline |
Definition at line 38 of file CaloGenericDetId.h.
References isCalo(), operator<<(), alignCSCRings::s, CaloTowerDetId::SubdetId, and DetId::subdetId().
Referenced by CaloTowerGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), CaloTowerGeometry::newCell(), operator<<(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 37 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 31 of file CaloGenericDetId.h.
References isEcal(), EBDetId::Subdet, and DetId::subdetId().
Referenced by Electron.Electron::absIsoWithFSR(), EcalBarrelGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), operator<<(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 30 of file CaloGenericDetId.h.
References DetId::det(), and DetId::Ecal.
Referenced by isEB(), isEE(), and isES().
|
inline |
Definition at line 32 of file CaloGenericDetId.h.
References isEcal(), EEDetId::Subdet, and DetId::subdetId().
Referenced by EcalEndcapGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), operator<<(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 33 of file CaloGenericDetId.h.
References isEcal(), ESDetId::Subdet, and DetId::subdetId().
Referenced by EcalPreshowerGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), operator<<(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 35 of file CaloGenericDetId.h.
References DetId::det(), and DetId::Hcal.
Referenced by CaloGenericDetId(), denseIndex(), operator<<(), sizeForDenseIndexing(), and validDetId().
|
inline |
Definition at line 36 of file CaloGenericDetId.h.
References isCalo(), HcalZDCDetId::SubdetectorId, and DetId::subdetId().
Referenced by ZdcGeometry::alignmentTransformIndexLocal(), CaloGenericDetId(), denseIndex(), ZdcGeometry::newCell(), operator<<(), sizeForDenseIndexing(), and validDetId().
uint32_t CaloGenericDetId::sizeForDenseIndexing | ( | ) | const |
Definition at line 48 of file CaloGenericDetId.cc.
References Exception, isCaloTower(), isCastor(), isEB(), isEE(), isES(), isHcal(), isZDC(), HcalZDCDetId::kSizeForDenseIndexing, HcalCastorDetId::kSizeForDenseIndexing, ESDetId::kSizeForDenseIndexing, EBDetId::kSizeForDenseIndexing, and EEDetId::kSizeForDenseIndexing.
Referenced by CaloGenericDetId(), and CaloSubdetectorGeometry::sizeForDenseIndex().
bool CaloGenericDetId::validDetId | ( | ) | const |
Definition at line 67 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(), HcalZDCDetId::section(), HcalCastorDetId::section(), HcalCastorDetId::sector(), ESDetId::six(), ESDetId::siy(), ESDetId::strip(), HcalZDCDetId::validDetId(), ESDetId::validDetId(), HcalCastorDetId::validDetId(), EBDetId::validDetId(), EEDetId::validDetId(), ESDetId::zside(), HcalCastorDetId::zside(), and EEDetId::zside().
Referenced by CaloGenericDetId().