#include <CaloTowerTopology.h>
Public Member Functions | |
CaloTowerTopology (const HcalTopology *topology) | |
standard constructor More... | |
int | convertCTtoHcal (int ct_ieta) const |
int | convertHcaltoCT (int hcal_ieta, HcalSubdetector subdet) const |
uint32_t | denseIndex (const DetId &id) const |
CaloTowerDetId | detIdFromDenseIndex (uint32_t din) const |
virtual std::vector< DetId > | down (const DetId &id) const |
virtual std::vector< DetId > | east (const DetId &id) const |
int | firstHBRing () const |
int | firstHEDoublePhiRing () const |
int | firstHEQuadPhiRing () const |
int | firstHERing () const |
int | firstHFQuadPhiRing () const |
int | firstHFRing () const |
int | firstHORing () const |
int | lastHBRing () const |
int | lastHERing () const |
int | lastHFRing () const |
int | lastHORing () const |
virtual std::vector< DetId > | north (const DetId &id) const |
uint32_t | sizeForDenseIndexing () const |
virtual std::vector< DetId > | south (const DetId &id) const |
virtual std::vector< DetId > | up (const DetId &id) const |
virtual bool | valid (const DetId &id) const |
is this detid present in the Topology? More... | |
bool | validDenseIndex (uint32_t din) const |
virtual bool | validDetId (const CaloTowerDetId &id) const |
virtual std::vector< DetId > | west (const DetId &id) const |
virtual | ~CaloTowerTopology () |
virtual destructor More... | |
Public Member Functions inherited from CaloSubdetectorTopology | |
CaloSubdetectorTopology () | |
standard constructor More... | |
virtual DetId | denseId2detId (unsigned int) const |
return a linear packed id More... | |
virtual bool | denseIdConsistent (int topoVer) const |
return whether this topology is consistent with the numbering in the given topology More... | |
virtual unsigned int | detId2denseId (const DetId &) const |
return a linear packed id More... | |
virtual std::vector< DetId > | getAllNeighbours (const DetId &id) const |
virtual std::vector< DetId > | getNeighbours (const DetId &id, const CaloDirection &dir) const |
virtual std::vector< DetId > | getWindow (const DetId &id, const int &northSouthSize, const int &eastWestSize) const |
virtual DetId | goDown (const DetId &id) const |
virtual DetId | goEast (const DetId &id) const |
virtual DetId | goNorth (const DetId &id) const |
virtual DetId | goSouth (const DetId &id) const |
virtual DetId | goUp (const DetId &id) const |
virtual DetId | goWest (const DetId &id) const |
virtual unsigned int | ncells () const |
return a count of valid cells (for dense indexing use) More... | |
virtual int | topoVersion () const |
return a version which identifies the given topology More... | |
virtual | ~CaloSubdetectorTopology () |
virtual destructor More... | |
Private Attributes | |
int | firstHBRing_ |
int | firstHEDoublePhiRing_ |
int | firstHEQuadPhiRing_ |
int | firstHERing_ |
int | firstHFQuadPhiRing_ |
int | firstHFRing_ |
int | firstHORing_ |
const HcalTopology * | hcaltopo |
uint32_t | kSizeForDenseIndexing |
int | lastHBRing_ |
int | lastHERing_ |
int | lastHFRing_ |
int | lastHORing_ |
int | nDoublePhi_ |
int | nQuadPhi_ |
int | nSinglePhi_ |
Additional Inherited Members | |
Protected Types inherited from CaloSubdetectorTopology | |
typedef std::pair< int, int > | Coordinate |
Protected Member Functions inherited from CaloSubdetectorTopology | |
Coordinate | getNeighbourIndex (const Coordinate &coord, const CaloDirection &dir) const |
Definition at line 13 of file CaloTowerTopology.h.
CaloTowerTopology::CaloTowerTopology | ( | const HcalTopology * | topology | ) |
standard constructor
Definition at line 5 of file CaloTowerTopology.cc.
References HcalTopology::firstHBRing(), firstHBRing_, HcalTopology::firstHEDoublePhiRing(), firstHEDoublePhiRing_, HcalTopology::firstHEQuadPhiRing(), firstHEQuadPhiRing_, HcalTopology::firstHERing(), firstHERing_, HcalTopology::firstHFQuadPhiRing(), firstHFQuadPhiRing_, HcalTopology::firstHFRing(), firstHFRing_, HcalTopology::firstHORing(), firstHORing_, hcaltopo, kSizeForDenseIndexing, HcalTopology::lastHBRing(), lastHBRing_, HcalTopology::lastHERing(), lastHERing_, HcalTopology::lastHFRing(), lastHFRing_, HcalTopology::lastHORing(), lastHORing_, nDoublePhi_, nQuadPhi_, and nSinglePhi_.
|
inlinevirtual |
int CaloTowerTopology::convertCTtoHcal | ( | int | ct_ieta | ) | const |
Definition at line 47 of file CaloTowerTopology.cc.
References HcalTopology::firstHBRing(), firstHBRing_, HcalTopology::firstHERing(), firstHERing_, HcalTopology::firstHFRing(), firstHFRing_, hcaltopo, lastHBRing_, lastHERing_, and lastHFRing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), CaloTowersCreationAlgo::hadShwrPos(), and CaloTowerHardcodeGeometryLoader::makeCell().
int CaloTowerTopology::convertHcaltoCT | ( | int | hcal_ieta, |
HcalSubdetector | subdet | ||
) | const |
Definition at line 55 of file CaloTowerTopology.cc.
References HcalTopology::firstHBRing(), firstHBRing_, HcalTopology::firstHERing(), firstHERing_, HcalTopology::firstHFRing(), firstHFRing_, HcalTopology::firstHORing(), firstHORing_, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, hcaltopo, HcalTopology::lastHBRing(), HcalTopology::lastHERing(), HcalTopology::lastHFRing(), and HcalTopology::lastHORing().
Referenced by CaloTowerConstituentsMapBuilder::assignEEtoHE(), and CaloTowerConstituentsMap::towerOf().
uint32_t CaloTowerTopology::denseIndex | ( | const DetId & | id | ) | const |
Definition at line 198 of file CaloTowerTopology.cc.
References firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ietaAbs(), CaloTowerDetId::iphi(), kSizeForDenseIndexing, nDoublePhi_, nSinglePhi_, and CaloTowerDetId::zside().
Referenced by HLTJets::analyze(), CaloTowersCreationAlgo::convert(), CaloTowersCreationAlgo::find(), CaloTowerGeometry::getGeometry(), CaloTowerGeometry::indexFor(), and CaloTowerGeometry::newCell().
CaloTowerDetId CaloTowerTopology::detIdFromDenseIndex | ( | uint32_t | din | ) | const |
Definition at line 209 of file CaloTowerTopology.cc.
References firstHEDoublePhiRing_, firstHFQuadPhiRing_, kSizeForDenseIndexing, nDoublePhi_, nSinglePhi_, and validDenseIndex().
Referenced by CaloTowerHardcodeGeometryLoader::makeCell(), and CaloTowersCreationAlgo::makeEcalBadChs().
Get the neighbors of the given cell in down direction (inward)
Implements CaloSubdetectorTopology.
Definition at line 194 of file CaloTowerTopology.cc.
Get the neighbors of the given cell in east direction
Implements CaloSubdetectorTopology.
Definition at line 90 of file CaloTowerTopology.cc.
References createTree::dd, firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ieta(), CaloTowerDetId::iphi(), and lastHFRing_.
Referenced by CaloRecoTauAlgorithm::getCaloTowerneighbourDetIds().
|
inline |
|
inline |
Definition at line 44 of file CaloTowerTopology.h.
References firstHEDoublePhiRing_.
Referenced by CaloTowerGeometry::alignmentTransformIndexLocal().
|
inline |
|
inline |
Definition at line 38 of file CaloTowerTopology.h.
References firstHERing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), CaloTowerHardcodeGeometryLoader::makeCell(), and CaloTowersCreationAlgo::rescaleTowers().
|
inline |
Definition at line 46 of file CaloTowerTopology.h.
References firstHFQuadPhiRing_.
Referenced by CaloTowerGeometry::alignmentTransformIndexLocal().
|
inline |
Definition at line 40 of file CaloTowerTopology.h.
References firstHFRing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), CaloTowersCreationAlgo::convert(), CaloTowersCreationAlgo::find(), CaloTowersCreationAlgo::hadShwrPos(), and CaloTowersCreationAlgo::rescaleTowers().
|
inline |
|
inline |
Definition at line 37 of file CaloTowerTopology.h.
References lastHBRing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), CaloTowersCreationAlgo::convert(), and CaloTowersCreationAlgo::rescaleTowers().
|
inline |
Definition at line 39 of file CaloTowerTopology.h.
References lastHERing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), CaloTowersCreationAlgo::convert(), CaloTowersCreationAlgo::hadShwrPos(), CaloTowerHardcodeGeometryLoader::makeCell(), and CaloTowersCreationAlgo::rescaleTowers().
|
inline |
Definition at line 41 of file CaloTowerTopology.h.
References lastHFRing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), CaloTowersCreationAlgo::convert(), and CaloTowersCreationAlgo::rescaleTowers().
|
inline |
Definition at line 43 of file CaloTowerTopology.h.
References lastHORing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), CaloTowersCreationAlgo::convert(), and CaloTowersCreationAlgo::rescaleTowers().
Get the neighbors of the given cell in north direction
Implements CaloSubdetectorTopology.
Definition at line 156 of file CaloTowerTopology.cc.
References createTree::dd, firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ieta(), CaloTowerDetId::ietaAbs(), and CaloTowerDetId::iphi().
Referenced by CaloRecoTauAlgorithm::getCaloTowerneighbourDetIds().
|
inline |
Definition at line 56 of file CaloTowerTopology.h.
References kSizeForDenseIndexing.
Referenced by CaloTowersCreationAlgo::find(), CaloTowerHardcodeGeometryLoader::load(), CaloTowersCreationAlgo::makeEcalBadChs(), CaloTowersCreationAlgo::setGeometry(), and CaloTowerGeometry::sizeForDenseIndex().
Get the neighbors of the given cell in south direction
Implements CaloSubdetectorTopology.
Definition at line 174 of file CaloTowerTopology.cc.
References createTree::dd, firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ieta(), CaloTowerDetId::ietaAbs(), and CaloTowerDetId::iphi().
Referenced by CaloRecoTauAlgorithm::getCaloTowerneighbourDetIds().
Get the neighbors of the given cell in up direction (outward)
Implements CaloSubdetectorTopology.
Definition at line 190 of file CaloTowerTopology.cc.
|
virtual |
is this detid present in the Topology?
Reimplemented from CaloSubdetectorTopology.
Definition at line 72 of file CaloTowerTopology.cc.
References assert(), DetId::Calo, CaloTowerDetId::SubdetId, and validDetId().
|
inline |
Definition at line 55 of file CaloTowerTopology.h.
References kSizeForDenseIndexing.
Referenced by detIdFromDenseIndex().
|
virtual |
Definition at line 77 of file CaloTowerTopology.cc.
References firstHBRing_, firstHEDoublePhiRing_, firstHFQuadPhiRing_, and lastHFRing_.
Referenced by valid().
Get the neighbors of the given cell in west direction
Implements CaloSubdetectorTopology.
Definition at line 122 of file CaloTowerTopology.cc.
References createTree::dd, firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ieta(), CaloTowerDetId::iphi(), and lastHFRing_.
Referenced by CaloRecoTauAlgorithm::getCaloTowerneighbourDetIds().
|
private |
Definition at line 61 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), convertCTtoHcal(), convertHcaltoCT(), firstHBRing(), and validDetId().
|
private |
Definition at line 65 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), denseIndex(), detIdFromDenseIndex(), east(), firstHEDoublePhiRing(), north(), south(), validDetId(), and west().
|
private |
Definition at line 65 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), and firstHEQuadPhiRing().
|
private |
Definition at line 62 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), convertCTtoHcal(), convertHcaltoCT(), and firstHERing().
|
private |
Definition at line 65 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), denseIndex(), detIdFromDenseIndex(), east(), firstHFQuadPhiRing(), north(), south(), validDetId(), and west().
|
private |
Definition at line 63 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), convertCTtoHcal(), convertHcaltoCT(), and firstHFRing().
|
private |
Definition at line 64 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), convertHcaltoCT(), and firstHORing().
|
private |
Definition at line 60 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), convertCTtoHcal(), and convertHcaltoCT().
|
private |
Definition at line 67 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), denseIndex(), detIdFromDenseIndex(), sizeForDenseIndexing(), and validDenseIndex().
|
private |
Definition at line 61 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), convertCTtoHcal(), and lastHBRing().
|
private |
Definition at line 62 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), convertCTtoHcal(), and lastHERing().
|
private |
Definition at line 63 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), convertCTtoHcal(), east(), lastHFRing(), validDetId(), and west().
|
private |
Definition at line 64 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), and lastHORing().
|
private |
Definition at line 66 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), denseIndex(), and detIdFromDenseIndex().
|
private |
Definition at line 66 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology().
|
private |
Definition at line 66 of file CaloTowerTopology.h.
Referenced by CaloTowerTopology(), denseIndex(), and detIdFromDenseIndex().