#include <CaloTowerDetId.h>
Public Types | |
enum | { kMaxIEta = 41, kMaxIPhi = 72, kBarNPhi = kMaxIPhi, kEndNPhi = kMaxIPhi/2, kForNPhi = kMaxIPhi/4, kBarIEta = 20, kEndIEta = 39, kForIEta = kMaxIEta, kBarNEta = kBarIEta, kEndNEta = kEndIEta - kBarNEta, kForNEta = kForIEta - kEndIEta, kBarNTot = kBarNPhi*kBarNEta, kEndNTot = kEndNPhi*kEndNEta, kForNTot = kForNPhi*kForNEta, kAllNTot = kBarNTot + kEndNTot + kForNTot, kNIndex = 2*kAllNTot } |
enum | { kSizeForDenseIndexing = kNIndex } |
Public Types inherited from DetId | |
enum | Detector { Tracker =1, Muon =2, Ecal =3, Hcal =4, Calo =5 } |
Public Member Functions | |
CaloTowerDetId () | |
CaloTowerDetId (uint32_t rawid) | |
CaloTowerDetId (int tower_ieta, int tower_iphi) | |
CaloTowerDetId (const DetId &id) | |
uint32_t | denseIndex () const |
int | ieta () const |
get the tower ieta More... | |
int | ietaAbs () const |
get the absolute value of the tower ieta More... | |
int | iphi () const |
get the tower iphi More... | |
CaloTowerDetId & | operator= (const DetId &id) |
int | zside () const |
get the z-side of the tower (1/-1) More... | |
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 CaloTowerDetId | detIdFromDenseIndex (uint32_t din) |
static bool | validDenseIndex (uint32_t din) |
static bool | validDetId (int ie, int ip) |
Static Public Attributes | |
static const int | SubdetId = 1 |
Static Public Attributes inherited from DetId | |
static const int | kDetOffset = 28 |
static const int | kSubdetOffset = 25 |
Additional Inherited Members | |
Protected Attributes inherited from DetId | |
uint32_t | id_ |
CaloTowerDetId uses DetId::Det of Calo and subdetId() of 1.
Definition at line 14 of file CaloTowerDetId.h.
anonymous enum |
Enumerator | |
---|---|
kMaxIEta | |
kMaxIPhi | |
kBarNPhi | |
kEndNPhi | |
kForNPhi | |
kBarIEta | |
kEndIEta | |
kForIEta | |
kBarNEta | |
kEndNEta | |
kForNEta | |
kBarNTot | |
kEndNTot | |
kForNTot | |
kAllNTot | |
kNIndex |
Definition at line 46 of file CaloTowerDetId.h.
anonymous enum |
Enumerator | |
---|---|
kSizeForDenseIndexing |
Definition at line 63 of file CaloTowerDetId.h.
CaloTowerDetId::CaloTowerDetId | ( | ) |
Create a null cellid
Definition at line 5 of file CaloTowerDetId.cc.
Referenced by detIdFromDenseIndex().
|
explicit |
CaloTowerDetId::CaloTowerDetId | ( | int | tower_ieta, |
int | tower_iphi | ||
) |
Constructor from signed tower ieta and iphi
Definition at line 12 of file CaloTowerDetId.cc.
References DetId::id_.
CaloTowerDetId::CaloTowerDetId | ( | const DetId & | id | ) |
Constructor from a generic cell id
Definition at line 18 of file CaloTowerDetId.cc.
References DetId::Calo, DetId::det(), edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), SubdetId, and DetId::subdetId().
uint32_t CaloTowerDetId::denseIndex | ( | ) | const |
Definition at line 57 of file CaloTowerDetId.cc.
References ietaAbs(), iphi(), kAllNTot, kBarIEta, kBarNPhi, kBarNTot, kEndIEta, kEndNPhi, kEndNTot, kForNPhi, and zside().
Referenced by EcalTBHodoscopeGeometry::newCell().
|
static |
Definition at line 69 of file CaloTowerDetId.cc.
References CaloTowerDetId(), kAllNTot, kBarIEta, kBarNPhi, kBarNTot, kEndIEta, kEndNPhi, kEndNTot, kForNPhi, and validDenseIndex().
Referenced by CaloGenericDetId::CaloGenericDetId().
|
inline |
get the tower ieta
Definition at line 32 of file CaloTowerDetId.h.
References ietaAbs(), and zside().
Referenced by CaloTowerAnalyzer::analyze(), CaloTowersAnalyzer::analyze(), CaloTowersValidation::analyze(), CaloTowersCreationAlgo::assignHit(), CaloTowerTopology::east(), FastL1Region::FillEMCrystals(), TrackDetMatchInfo::findMaxDeposition(), FastL1RegionMap::getRegionEtaPhiIndex(), FastL1RegionMap::getRegionIndex(), FastL1RegionMap::getRegionTowerIndex(), CaloTowersCreationAlgo::hadShwrPos(), PileUpSubtractor::ieta(), CaloTower::ieta(), DetIdInfo::info(), fireworks::info(), FastL1GlobalAlgo::isEMCand(), CaloTowersCreationAlgo::makeHcalDropChMap(), JetMaker::makeSpecific(), reco::makeSpecific(), CaloTowerTopology::north(), TrackDetMatchInfo::nXnEnergy(), HodoscopeDetId::planeId(), CaloTowerTopology::south(), CaloTowerTopology::valid(), CaloGenericDetId::validDetId(), and CaloTowerTopology::west().
|
inline |
get the absolute value of the tower ieta
Definition at line 30 of file CaloTowerDetId.h.
References DetId::id_.
Referenced by denseIndex(), CaloTower::energyInHB(), CaloTower::energyInHE(), CaloTower::energyInHF(), CaloTower::energyInHO(), PhysicsTowerOrganizer::findNeighbors(), CaloTower::hadEnergyHeInnerLayer(), CaloTower::hadEnergyHeOuterLayer(), CaloTowersCreationAlgo::hadShwrPos(), ieta(), CaloTower::ietaAbs(), CaloTowerTopology::north(), CaloTower::numCrystals(), CaloTower::outerEnergy(), CaloTower::outerEt(), CaloTowersCreationAlgo::rescaleTowers(), and CaloTowerTopology::south().
int CaloTowerDetId::iphi | ( | ) | const |
get the tower iphi
Definition at line 33 of file CaloTowerDetId.cc.
References DetId::id_.
Referenced by CaloTowerAnalyzer::analyze(), CaloTowersCreationAlgo::assignHit(), denseIndex(), CaloTowerTopology::east(), HodoscopeDetId::fibrId(), FastL1Region::FillEMCrystals(), TrackDetMatchInfo::findMaxDeposition(), PhysicsTowerOrganizer::findNeighbors(), FastL1RegionMap::getRegionEtaPhiIndex(), FastL1RegionMap::getRegionIndex(), FastL1RegionMap::getRegionTowerIndex(), CaloTowersCreationAlgo::hadShwrPos(), DetIdInfo::info(), fireworks::info(), PileUpSubtractor::iphi(), CaloTower::iphi(), FastL1GlobalAlgo::isEMCand(), CaloTowersCreationAlgo::makeHcalDropChMap(), CaloTowerTopology::north(), TrackDetMatchInfo::nXnEnergy(), CaloTowerTopology::south(), CaloTowerTopology::valid(), CaloGenericDetId::validDetId(), and CaloTowerTopology::west().
CaloTowerDetId & CaloTowerDetId::operator= | ( | const DetId & | id | ) |
Assignment from a generic cell id
Definition at line 25 of file CaloTowerDetId.cc.
References DetId::Calo, DetId::det(), edm::hlt::Exception, DetId::id_, DetId::null(), DetId::rawId(), SubdetId, and DetId::subdetId().
|
inlinestatic |
Definition at line 44 of file CaloTowerDetId.h.
References kSizeForDenseIndexing.
Referenced by detIdFromDenseIndex().
|
static |
Definition at line 39 of file CaloTowerDetId.cc.
References abs, kBarIEta, kBarNPhi, kEndIEta, kForIEta, kMaxIEta, and kMaxIPhi.
Referenced by CaloGenericDetId::validDetId().
|
inline |
get the z-side of the tower (1/-1)
Definition at line 28 of file CaloTowerDetId.h.
References DetId::id_.
Referenced by CaloTowersCreationAlgo::assignHit(), denseIndex(), PhysicsTowerOrganizer::findNeighbors(), ieta(), CaloTowersCreationAlgo::makeHcalDropChMap(), and CaloTower::zside().
|
static |
Definition at line 36 of file CaloTowerDetId.h.
Referenced by CaloRecoTauAlgorithm::buildCaloTau(), CaloTowerDetId(), CaloGenericDetId::isCaloTower(), operator=(), CaloTowersCreationAlgo::setGeometry(), and reco::writeSpecific().