#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 |
std::vector< DetId > | down (const DetId &id) const override |
std::vector< DetId > | east (const DetId &id) const override |
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 |
std::vector< DetId > | north (const DetId &id) const override |
uint32_t | sizeForDenseIndexing () const |
std::vector< DetId > | south (const DetId &id) const override |
std::vector< DetId > | up (const DetId &id) const override |
bool | valid (const DetId &id) const override |
is this detid present in the Topology? More... | |
bool | validDenseIndex (uint32_t din) const |
virtual bool | validDetId (const CaloTowerDetId &id) const |
std::vector< DetId > | west (const DetId &id) const override |
~CaloTowerTopology () override | |
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 | nEtaHE_ |
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 8 of file CaloTowerTopology.cc.
References gather_cfg::cout, HcalTopology::firstHBRing(), firstHBRing_, HcalTopology::firstHEDoublePhiRing(), firstHEDoublePhiRing_, HcalTopology::firstHEQuadPhiRing(), firstHEQuadPhiRing_, HcalTopology::firstHERing(), firstHERing_, HcalTopology::firstHFQuadPhiRing(), firstHFQuadPhiRing_, HcalTopology::firstHFRing(), firstHFRing_, HcalTopology::firstHORing(), firstHORing_, hcaltopo, HcalTopology::isBH(), kSizeForDenseIndexing, HcalTopology::lastHBRing(), lastHBRing_, HcalTopology::lastHERing(), lastHERing_, HcalTopology::lastHFRing(), lastHFRing_, HcalTopology::lastHORing(), lastHORing_, hpstanc_transforms::max, nDoublePhi_, nEtaHE_, nQuadPhi_, and nSinglePhi_.
|
inlineoverride |
virtual destructor
Definition at line 18 of file CaloTowerTopology.h.
References down(), east(), north(), south(), up(), valid(), validDetId(), and west().
int CaloTowerTopology::convertCTtoHcal | ( | int | ct_ieta | ) | const |
Definition at line 67 of file CaloTowerTopology.cc.
References HcalTopology::firstHBRing(), firstHBRing_, HcalTopology::firstHERing(), firstHERing_, HcalTopology::firstHFRing(), firstHFRing_, hcaltopo, lastHBRing_, lastHERing_, and lastHFRing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), firstHFQuadPhiRing(), CaloTowersCreationAlgo::hadShwrPos(), and CaloTowerHardcodeGeometryLoader::makeCell().
int CaloTowerTopology::convertHcaltoCT | ( | int | hcal_ieta, |
HcalSubdetector | subdet | ||
) | const |
Definition at line 75 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(), HcalTopology::lastHORing(), and nEtaHE_.
Referenced by CaloTowerConstituentsMapBuilder::assignEEtoHE(), firstHFQuadPhiRing(), and CaloTowerConstituentsMap::towerOf().
uint32_t CaloTowerTopology::denseIndex | ( | const DetId & | id | ) | const |
Definition at line 218 of file CaloTowerTopology.cc.
References firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ietaAbs(), CaloTowerDetId::iphi(), kSizeForDenseIndexing, nDoublePhi_, nSinglePhi_, and CaloTowerDetId::zside().
Referenced by CaloTowersCreationAlgo::convert(), CaloTowersCreationAlgo::find(), firstHFQuadPhiRing(), CaloTowerGeometry::getGeometry(), CaloTowerGeometry::indexFor(), CaloTowerGeometry::newCell(), HLTHcalTowerNoiseCleaner::produce(), HLTHcalTowerNoiseCleanerWithrechit::produce(), and CaloGeometryDBEP< T, U >::produceAligned().
CaloTowerDetId CaloTowerTopology::detIdFromDenseIndex | ( | uint32_t | din | ) | const |
Definition at line 229 of file CaloTowerTopology.cc.
References firstHEDoublePhiRing_, firstHFQuadPhiRing_, kSizeForDenseIndexing, nDoublePhi_, nSinglePhi_, and validDenseIndex().
Referenced by firstHFQuadPhiRing(), CaloTowerHardcodeGeometryLoader::makeCell(), CaloTowersCreationAlgo::makeEcalBadChs(), and CaloGeometryDBEP< T, U >::produceAligned().
Get the neighbors of the given cell in down direction (inward)
Implements CaloSubdetectorTopology.
Definition at line 214 of file CaloTowerTopology.cc.
Referenced by ~CaloTowerTopology().
Get the neighbors of the given cell in east direction
Implements CaloSubdetectorTopology.
Definition at line 110 of file CaloTowerTopology.cc.
References createTree::dd, firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ieta(), CaloTowerDetId::iphi(), and lastHFRing_.
Referenced by CaloRecoTauAlgorithm::getCaloTowerneighbourDetIds(), and ~CaloTowerTopology().
|
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 convertCTtoHcal(), convertHcaltoCT(), denseIndex(), detIdFromDenseIndex(), cropTnPTrees::din, and 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(), CaloTowerHardcodeGeometryLoader::load(), and CaloTowersCreationAlgo::rescaleTowers().
|
inline |
Definition at line 39 of file CaloTowerTopology.h.
References lastHERing_.
Referenced by CaloTowerConstituentsMap::constituentsOf(), CaloTowersCreationAlgo::convert(), CaloTowersCreationAlgo::hadShwrPos(), CaloTowerHardcodeGeometryLoader::load(), 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 176 of file CaloTowerTopology.cc.
References createTree::dd, firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ieta(), CaloTowerDetId::ietaAbs(), and CaloTowerDetId::iphi().
Referenced by CaloRecoTauAlgorithm::getCaloTowerneighbourDetIds(), and ~CaloTowerTopology().
|
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 194 of file CaloTowerTopology.cc.
References createTree::dd, firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ieta(), CaloTowerDetId::ietaAbs(), and CaloTowerDetId::iphi().
Referenced by CaloRecoTauAlgorithm::getCaloTowerneighbourDetIds(), and ~CaloTowerTopology().
Get the neighbors of the given cell in up direction (outward)
Implements CaloSubdetectorTopology.
Definition at line 210 of file CaloTowerTopology.cc.
Referenced by ~CaloTowerTopology().
|
overridevirtual |
is this detid present in the Topology?
Reimplemented from CaloSubdetectorTopology.
Definition at line 92 of file CaloTowerTopology.cc.
References DetId::Calo, CaloTowerDetId::SubdetId, and validDetId().
Referenced by ~CaloTowerTopology().
|
inline |
Definition at line 55 of file CaloTowerTopology.h.
References kSizeForDenseIndexing.
Referenced by detIdFromDenseIndex().
|
virtual |
Definition at line 97 of file CaloTowerTopology.cc.
References firstHBRing_, firstHEDoublePhiRing_, firstHFQuadPhiRing_, and lastHFRing_.
Referenced by valid(), and ~CaloTowerTopology().
Get the neighbors of the given cell in west direction
Implements CaloSubdetectorTopology.
Definition at line 142 of file CaloTowerTopology.cc.
References createTree::dd, firstHEDoublePhiRing_, firstHFQuadPhiRing_, CaloTowerDetId::ieta(), CaloTowerDetId::iphi(), and lastHFRing_.
Referenced by CaloRecoTauAlgorithm::getCaloTowerneighbourDetIds(), and ~CaloTowerTopology().
|
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(), and convertHcaltoCT().
|
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().