CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
CaloTowerTopology Class Referencefinal

#include <CaloTowerTopology.h>

Inheritance diagram for CaloTowerTopology:
CaloSubdetectorTopology

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< DetIddown (const DetId &id) const
 
virtual std::vector< DetIdeast (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< DetIdnorth (const DetId &id) const
 
uint32_t sizeForDenseIndexing () const
 
virtual std::vector< DetIdsouth (const DetId &id) const
 
virtual std::vector< DetIdup (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< DetIdwest (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< DetIdgetAllNeighbours (const DetId &id) const
 
virtual std::vector< DetIdgetNeighbours (const DetId &id, const CaloDirection &dir) const
 
virtual std::vector< DetIdgetWindow (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 HcalTopologyhcaltopo
 
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
 

Detailed Description

Author
J. Mans - Minnesota

Definition at line 13 of file CaloTowerTopology.h.

Constructor & Destructor Documentation

CaloTowerTopology::CaloTowerTopology ( const HcalTopology topology)

standard constructor

Definition at line 5 of file CaloTowerTopology.cc.

virtual CaloTowerTopology::~CaloTowerTopology ( )
inlinevirtual

virtual destructor

Definition at line 18 of file CaloTowerTopology.h.

18 { }

Member Function Documentation

int CaloTowerTopology::convertCTtoHcal ( int  ct_ieta) const
int CaloTowerTopology::convertHcaltoCT ( int  hcal_ieta,
HcalSubdetector  subdet 
) const
uint32_t CaloTowerTopology::denseIndex ( const DetId id) const
CaloTowerDetId CaloTowerTopology::detIdFromDenseIndex ( uint32_t  din) const

Definition at line 209 of file CaloTowerTopology.cc.

Referenced by CaloTowerHardcodeGeometryLoader::makeCell().

std::vector< DetId > CaloTowerTopology::down ( const DetId id) const
virtual

Get the neighbors of the given cell in down direction (inward)

Implements CaloSubdetectorTopology.

Definition at line 194 of file CaloTowerTopology.cc.

std::vector< DetId > CaloTowerTopology::east ( const DetId id) const
virtual

Get the neighbors of the given cell in east direction

Implements CaloSubdetectorTopology.

Definition at line 90 of file CaloTowerTopology.cc.

int CaloTowerTopology::firstHBRing ( ) const
inline

Definition at line 36 of file CaloTowerTopology.h.

References firstHBRing_.

36 {return firstHBRing_;}
int CaloTowerTopology::firstHEDoublePhiRing ( ) const
inline
int CaloTowerTopology::firstHEQuadPhiRing ( ) const
inline

Definition at line 45 of file CaloTowerTopology.h.

References firstHEQuadPhiRing_.

int CaloTowerTopology::firstHERing ( ) const
inline
int CaloTowerTopology::firstHFQuadPhiRing ( ) const
inline
int CaloTowerTopology::firstHFRing ( ) const
inline

Definition at line 40 of file CaloTowerTopology.h.

References firstHFRing_.

Referenced by CaloTowerConstituentsMap::constituentsOf().

40 {return firstHFRing_;}
int CaloTowerTopology::firstHORing ( ) const
inline

Definition at line 42 of file CaloTowerTopology.h.

References firstHORing_.

42 {return firstHORing_;}
int CaloTowerTopology::lastHBRing ( ) const
inline

Definition at line 37 of file CaloTowerTopology.h.

References lastHBRing_.

Referenced by CaloTowerConstituentsMap::constituentsOf().

37 {return lastHBRing_;}
int CaloTowerTopology::lastHERing ( ) const
inline
int CaloTowerTopology::lastHFRing ( ) const
inline

Definition at line 41 of file CaloTowerTopology.h.

References lastHFRing_.

Referenced by CaloTowerConstituentsMap::constituentsOf().

41 {return lastHFRing_;}
int CaloTowerTopology::lastHORing ( ) const
inline

Definition at line 43 of file CaloTowerTopology.h.

References lastHORing_.

Referenced by CaloTowerConstituentsMap::constituentsOf().

43 {return lastHORing_;}
std::vector< DetId > CaloTowerTopology::north ( const DetId id) const
virtual

Get the neighbors of the given cell in north direction

Implements CaloSubdetectorTopology.

Definition at line 156 of file CaloTowerTopology.cc.

uint32_t CaloTowerTopology::sizeForDenseIndexing ( ) const
inline
std::vector< DetId > CaloTowerTopology::south ( const DetId id) const
virtual

Get the neighbors of the given cell in south direction

Implements CaloSubdetectorTopology.

Definition at line 174 of file CaloTowerTopology.cc.

std::vector< DetId > CaloTowerTopology::up ( const DetId id) const
virtual

Get the neighbors of the given cell in up direction (outward)

Implements CaloSubdetectorTopology.

Definition at line 190 of file CaloTowerTopology.cc.

bool CaloTowerTopology::valid ( const DetId id) const
virtual

is this detid present in the Topology?

Reimplemented from CaloSubdetectorTopology.

Definition at line 72 of file CaloTowerTopology.cc.

bool CaloTowerTopology::validDenseIndex ( uint32_t  din) const
inline

Definition at line 55 of file CaloTowerTopology.h.

References kSizeForDenseIndexing.

55 { return ( din < kSizeForDenseIndexing ); }
uint32_t kSizeForDenseIndexing
bool CaloTowerTopology::validDetId ( const CaloTowerDetId id) const
virtual

Definition at line 77 of file CaloTowerTopology.cc.

std::vector< DetId > CaloTowerTopology::west ( const DetId id) const
virtual

Get the neighbors of the given cell in west direction

Implements CaloSubdetectorTopology.

Definition at line 122 of file CaloTowerTopology.cc.

Member Data Documentation

int CaloTowerTopology::firstHBRing_
private

Definition at line 61 of file CaloTowerTopology.h.

Referenced by firstHBRing().

int CaloTowerTopology::firstHEDoublePhiRing_
private

Definition at line 65 of file CaloTowerTopology.h.

Referenced by firstHEDoublePhiRing().

int CaloTowerTopology::firstHEQuadPhiRing_
private

Definition at line 65 of file CaloTowerTopology.h.

Referenced by firstHEQuadPhiRing().

int CaloTowerTopology::firstHERing_
private

Definition at line 62 of file CaloTowerTopology.h.

Referenced by firstHERing().

int CaloTowerTopology::firstHFQuadPhiRing_
private

Definition at line 65 of file CaloTowerTopology.h.

Referenced by firstHFQuadPhiRing().

int CaloTowerTopology::firstHFRing_
private

Definition at line 63 of file CaloTowerTopology.h.

Referenced by firstHFRing().

int CaloTowerTopology::firstHORing_
private

Definition at line 64 of file CaloTowerTopology.h.

Referenced by firstHORing().

const HcalTopology* CaloTowerTopology::hcaltopo
private

Definition at line 60 of file CaloTowerTopology.h.

uint32_t CaloTowerTopology::kSizeForDenseIndexing
private

Definition at line 67 of file CaloTowerTopology.h.

Referenced by sizeForDenseIndexing(), and validDenseIndex().

int CaloTowerTopology::lastHBRing_
private

Definition at line 61 of file CaloTowerTopology.h.

Referenced by lastHBRing().

int CaloTowerTopology::lastHERing_
private

Definition at line 62 of file CaloTowerTopology.h.

Referenced by lastHERing().

int CaloTowerTopology::lastHFRing_
private

Definition at line 63 of file CaloTowerTopology.h.

Referenced by lastHFRing().

int CaloTowerTopology::lastHORing_
private

Definition at line 64 of file CaloTowerTopology.h.

Referenced by lastHORing().

int CaloTowerTopology::nDoublePhi_
private

Definition at line 66 of file CaloTowerTopology.h.

int CaloTowerTopology::nQuadPhi_
private

Definition at line 66 of file CaloTowerTopology.h.

int CaloTowerTopology::nSinglePhi_
private

Definition at line 66 of file CaloTowerTopology.h.