CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
CaloRectangleRange< T >::Iterator Class Reference

#include <CaloRectangle.h>

Public Member Functions

int iEtaOrIX () const
 
int iPhiOrIY () const
 
 Iterator (T const &home, int iEtaOrIX, int iPhiOrIY, CaloRectangle const rectangle, CaloSubdetectorTopology const &topology)
 
bool operator!= (Iterator const &other) const
 
T operator* () const
 
Iteratoroperator++ ()
 
bool operator== (Iterator const &other) const
 

Private Attributes

const T home_
 
int iEtaOrIX_
 
int iPhiOrIY_
 
const CaloRectangle rectangle_
 
CaloSubdetectorTopology const & topology_
 

Detailed Description

template<class T>
class CaloRectangleRange< T >::Iterator

Definition at line 38 of file CaloRectangle.h.

Constructor & Destructor Documentation

◆ Iterator()

template<class T >
CaloRectangleRange< T >::Iterator::Iterator ( T const &  home,
int  iEtaOrIX,
int  iPhiOrIY,
CaloRectangle const  rectangle,
CaloSubdetectorTopology const &  topology 
)
inline

Definition at line 40 of file CaloRectangle.h.

45  : home_(home), rectangle_(rectangle), topology_(topology), iEtaOrIX_(iEtaOrIX), iPhiOrIY_(iPhiOrIY) {}

Member Function Documentation

◆ iEtaOrIX()

template<class T >
int CaloRectangleRange< T >::Iterator::iEtaOrIX ( ) const
inline

Definition at line 56 of file CaloRectangle.h.

56 { return iEtaOrIX_; }

References CaloRectangleRange< T >::Iterator::iEtaOrIX_.

◆ iPhiOrIY()

template<class T >
int CaloRectangleRange< T >::Iterator::iPhiOrIY ( ) const
inline

Definition at line 57 of file CaloRectangle.h.

57 { return iPhiOrIY_; }

References CaloRectangleRange< T >::Iterator::iPhiOrIY_.

◆ operator!=()

template<class T >
bool CaloRectangleRange< T >::Iterator::operator!= ( Iterator const &  other) const
inline

Definition at line 62 of file CaloRectangle.h.

62  {
63  return iEtaOrIX_ != other.iEtaOrIX() || iPhiOrIY_ != other.iPhiOrIY();
64  }

References CaloRectangleRange< T >::Iterator::iEtaOrIX_, CaloRectangleRange< T >::Iterator::iPhiOrIY_, and trackingPlots::other.

◆ operator*()

template<class T >
T CaloRectangleRange< T >::Iterator::operator* ( void  ) const
inline

◆ operator++()

template<class T >
Iterator& CaloRectangleRange< T >::Iterator::operator++ ( void  )
inline

◆ operator==()

template<class T >
bool CaloRectangleRange< T >::Iterator::operator== ( Iterator const &  other) const
inline

Definition at line 59 of file CaloRectangle.h.

59  {
60  return iEtaOrIX_ == other.iEtaOrIX() && iPhiOrIY_ == other.iPhiOrIY();
61  }

References CaloRectangleRange< T >::Iterator::iEtaOrIX_, CaloRectangleRange< T >::Iterator::iPhiOrIY_, and trackingPlots::other.

Member Data Documentation

◆ home_

template<class T >
const T CaloRectangleRange< T >::Iterator::home_
private

Definition at line 69 of file CaloRectangle.h.

Referenced by CaloRectangleRange< T >::Iterator::operator*().

◆ iEtaOrIX_

template<class T >
int CaloRectangleRange< T >::Iterator::iEtaOrIX_
private

◆ iPhiOrIY_

template<class T >
int CaloRectangleRange< T >::Iterator::iPhiOrIY_
private

◆ rectangle_

template<class T >
const CaloRectangle CaloRectangleRange< T >::Iterator::rectangle_
private

Definition at line 71 of file CaloRectangle.h.

Referenced by CaloRectangleRange< T >::Iterator::operator++().

◆ topology_

template<class T >
CaloSubdetectorTopology const& CaloRectangleRange< T >::Iterator::topology_
private

Definition at line 72 of file CaloRectangle.h.

Referenced by CaloRectangleRange< T >::Iterator::operator*().

CaloRectangleRange::Iterator::rectangle_
const CaloRectangle rectangle_
Definition: CaloRectangle.h:71
CaloRectangleRange::Iterator::iPhiOrIY
int iPhiOrIY() const
Definition: CaloRectangle.h:57
CaloRectangle::iPhiOrIYMin
const int iPhiOrIYMin
Definition: CaloRectangle.h:16
CaloRectangleRange::Iterator::topology_
CaloSubdetectorTopology const & topology_
Definition: CaloRectangle.h:72
CaloRectangle::iPhiOrIYMax
const int iPhiOrIYMax
Definition: CaloRectangle.h:17
trackingPlots.other
other
Definition: trackingPlots.py:1460
CaloRectangleRange::Iterator::iPhiOrIY_
int iPhiOrIY_
Definition: CaloRectangle.h:75
CaloRectangleRange::Iterator::iEtaOrIX
int iEtaOrIX() const
Definition: CaloRectangle.h:56
CaloRectangleRange::Iterator::iEtaOrIX_
int iEtaOrIX_
Definition: CaloRectangle.h:74
offsetBy
T offsetBy(T start, CaloSubdetectorTopology const &topo, int dIEtaOrIX, int dIPhiOrIY)
Definition: CaloRectangle.h:24
CaloRectangleRange::Iterator::home_
const T home_
Definition: CaloRectangle.h:69