![]() |
![]() |
#include <HcalDetId.h>
Public Member Functions | |
void | changeForm () |
int | crystal_ieta_high () const |
get the largest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only) More... | |
int | crystal_ieta_low () const |
get the smallest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only) More... | |
int | crystal_iphi_high () const |
get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) More... | |
int | crystal_iphi_low () const |
get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only) More... | |
int | depth () const |
get the tower depth More... | |
HcalDetId () | |
HcalDetId (uint32_t rawid) | |
HcalDetId (HcalSubdetector subdet, int tower_ieta, int tower_iphi, int depth) | |
HcalDetId (const DetId &id) | |
int | hfdepth () const |
get full depth information for HF More... | |
int | ieta () const |
get the cell ieta More... | |
int | ietaAbs () const |
get the absolute value of the cell ieta More... | |
int | iphi () const |
get the cell iphi More... | |
uint32_t | maskDepth () const |
get the tower depth More... | |
uint32_t | newForm () const |
bool | oldFormat () const |
bool | operator!= (DetId id) const |
bool | operator< (DetId id) const |
HcalDetId & | operator= (const DetId &id) |
bool | operator== (DetId id) const |
uint32_t | otherForm () const |
change format More... | |
HcalSubdetector | subdet () const |
get the subdetector More... | |
int | zside () const |
get the z-side of the cell (1/-1) More... | |
![]() | |
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 uint32_t | newForm (const uint32_t &) |
Static Public Attributes | |
static const int | kHcalDepthMask1 = 0x1F |
static const int | kHcalDepthMask2 = 0xF |
static const int | kHcalDepthOffset1 = 14 |
static const int | kHcalDepthOffset2 = 20 |
static const int | kHcalDepthSet1 = 0x1C000 |
static const int | kHcalDepthSet2 = 0xF00000 |
static const int | kHcalEtaMask1 = 0x3F |
static const int | kHcalEtaMask2 = 0x1FF |
static const int | kHcalEtaOffset1 = 7 |
static const int | kHcalEtaOffset2 = 10 |
static const int | kHcalIdFormat2 = 0x1000000 |
static const int | kHcalIdMask = 0xFE000000 |
static const int | kHcalPhiMask1 = 0x7F |
static const int | kHcalPhiMask2 = 0x3FF |
static const int | kHcalZsideMask1 = 0x2000 |
static const int | kHcalZsideMask2 = 0x80000 |
static const HcalDetId | Undefined |
![]() | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Private Member Functions | |
void | newFromOld (const uint32_t &) |
Static Private Member Functions | |
static void | unpackId (const uint32_t &, int &, int &, int &, int &) |
Additional Inherited Members | |
![]() | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5, Forward =6, VeryForward =7 } |
![]() | |
uint32_t | id_ |
Cell identifier class for the HCAL subdetectors, precision readout cells only
Definition at line 12 of file HcalDetId.h.
HcalDetId::HcalDetId | ( | ) |
Create a null cellid
Definition at line 8 of file HcalDetId.cc.
HcalDetId::HcalDetId | ( | uint32_t | rawid | ) |
Create cellid from raw id (0=invalid tower id)
Definition at line 11 of file HcalDetId.cc.
HcalDetId::HcalDetId | ( | HcalSubdetector | subdet, |
int | tower_ieta, | ||
int | tower_iphi, | ||
int | depth | ||
) |
Constructor from subdetector, signed tower ieta,iphi,and depth
Definition at line 14 of file HcalDetId.cc.
HcalDetId::HcalDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 21 of file HcalDetId.cc.
void HcalDetId::changeForm | ( | ) |
Definition at line 136 of file HcalDetId.cc.
|
inline |
get the largest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only)
Definition at line 74 of file HcalDetId.h.
References ieta(), and zside().
Referenced by CaloTowerConstituentsMap::constituentsOf().
|
inline |
get the smallest crystal_ieta of the crystal in front of this tower (HB and HE tower 17 only)
Definition at line 72 of file HcalDetId.h.
References ieta(), and zside().
Referenced by CaloTowerConstituentsMap::constituentsOf().
int HcalDetId::crystal_iphi_high | ( | ) | const |
get the largest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only)
Definition at line 163 of file HcalDetId.cc.
Referenced by CaloTowerConstituentsMap::constituentsOf().
int HcalDetId::crystal_iphi_low | ( | ) | const |
get the smallest crystal_iphi of the crystal in front of this tower (HB and HE tower 17 only)
Definition at line 157 of file HcalDetId.cc.
Referenced by CaloTowerConstituentsMap::constituentsOf().
int HcalDetId::depth | ( | ) | const |
get the tower depth
Definition at line 106 of file HcalDetId.cc.
Referenced by cms::HcalConstantsASCIIWriter::analyze(), hcaldqm::quantity::getBin_depth(), HcalChannelIterator::getDepth(), hcaldqm::quantity::getValue_depth(), hcalTransformedId(), PFHBHERecHitCreator::importRecHits(), PFHcalRecHitCreator< Digi, Geometry, Layer, Detector >::importRecHits(), FastHFShowerLibrary::modifyDepth(), and HcalSimParameterMap::simParameters().
int HcalDetId::hfdepth | ( | ) | const |
get full depth information for HF
Definition at line 111 of file HcalDetId.cc.
|
inline |
get the cell ieta
Definition at line 56 of file HcalDetId.h.
References ietaAbs(), and zside().
Referenced by cms::HcalConstantsASCIIWriter::analyze(), crystal_ieta_high(), crystal_ieta_low(), spr::getHotCell(), HcalChannelIterator::getIeta(), hcaldqm::quantity::getValue_ieta(), hcaldqm::quantity::getValue_SubdetPM(), hcalTransformedId(), and FastHFShowerLibrary::modifyDepth().
int HcalDetId::ietaAbs | ( | ) | const |
get the absolute value of the cell ieta
Definition at line 96 of file HcalDetId.cc.
Referenced by ieta(), HcalSimParameters::photoelectronsToAnalog(), HcalSimParameters::samplingFactor(), and CaloTowerConstituentsMap::towerOf().
int HcalDetId::iphi | ( | ) | const |
get the cell iphi
Definition at line 101 of file HcalDetId.cc.
Referenced by cms::HcalConstantsASCIIWriter::analyze(), hcaldqm::quantity::getBin_iphi(), spr::getHotCell(), HcalChannelIterator::getIphi(), hcaldqm::quantity::getValue_iphi(), hcalTransformedId(), FastHFShowerLibrary::modifyDepth(), and CaloTowerConstituentsMap::towerOf().
uint32_t HcalDetId::maskDepth | ( | ) | const |
get the tower depth
Definition at line 119 of file HcalDetId.cc.
uint32_t HcalDetId::newForm | ( | ) | const |
Definition at line 140 of file HcalDetId.cc.
|
static |
Definition at line 144 of file HcalDetId.cc.
|
private |
Definition at line 169 of file HcalDetId.cc.
|
inline |
bool HcalDetId::operator!= | ( | DetId | id | ) | const |
Definition at line 61 of file HcalDetId.cc.
bool HcalDetId::operator< | ( | DetId | id | ) | const |
Definition at line 70 of file HcalDetId.cc.
Assignment from a generic cell id
Definition at line 36 of file HcalDetId.cc.
bool HcalDetId::operator== | ( | DetId | id | ) | const |
Comparison operator
Definition at line 52 of file HcalDetId.cc.
uint32_t HcalDetId::otherForm | ( | ) | const |
change format
Definition at line 124 of file HcalDetId.cc.
|
inline |
get the subdetector
Definition at line 49 of file HcalDetId.h.
References DetId::subdetId().
Referenced by HFHitFilter::accepts(), HcalTimeSlewSim::delay(), hcaldqm::quantity::getBin_Subdet(), HcalChannelIterator::getHcalSubdetector(), spr::getHotCell(), hcaldqm::quantity::getValue_ieta(), hcaldqm::quantity::getValue_Subdet(), hcaldqm::quantity::getValue_SubdetPM(), hcalTransformedId(), FastHFShowerLibrary::modifyDepth(), HcalSimParameterMap::setFrameSize(), HcalTBSimParameterMap::simParameters(), HcalSimParameterMap::simParameters(), and CaloTowerConstituentsMap::towerOf().
|
staticprivate |
Definition at line 173 of file HcalDetId.cc.
int HcalDetId::zside | ( | ) | const |
get the z-side of the cell (1/-1)
Definition at line 91 of file HcalDetId.cc.
Referenced by CaloTowerConstituentsMap::constituentsOf(), crystal_ieta_high(), crystal_ieta_low(), HLTHcalSimpleRecHitFilter::hltFilter(), ieta(), and CaloTowerConstituentsMap::towerOf().
|
static |
Definition at line 25 of file HcalDetId.h.
|
static |
Definition at line 26 of file HcalDetId.h.
Referenced by CaloMiscalibMapHcal::prefillMap().
|
static |
Definition at line 23 of file HcalDetId.h.
|
static |
Definition at line 24 of file HcalDetId.h.
|
static |
Definition at line 27 of file HcalDetId.h.
|
static |
Definition at line 28 of file HcalDetId.h.
|
static |
Definition at line 19 of file HcalDetId.h.
|
static |
Definition at line 20 of file HcalDetId.h.
Referenced by CaloMiscalibMapHcal::prefillMap().
|
static |
Definition at line 17 of file HcalDetId.h.
|
static |
Definition at line 18 of file HcalDetId.h.
|
static |
Definition at line 29 of file HcalDetId.h.
Referenced by oldFormat().
|
static |
Definition at line 30 of file HcalDetId.h.
|
static |
Definition at line 15 of file HcalDetId.h.
|
static |
Definition at line 16 of file HcalDetId.h.
Referenced by CaloMiscalibMapHcal::prefillMap().
|
static |
Definition at line 21 of file HcalDetId.h.
|
static |
Definition at line 22 of file HcalDetId.h.
|
static |
Definition at line 80 of file HcalDetId.h.
Referenced by HcalRawDataClient::HashToHDI(), and CastorText2DetIdConverter::init().