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 42 of file CaloRectangle.h.

Constructor & Destructor Documentation

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

Definition at line 46 of file CaloRectangle.h.

47  : home_(home)
48  , rectangle_(rectangle)
52  {}
CaloTopology const * topology(0)
const CaloRectangle rectangle_
Definition: CaloRectangle.h:74
CaloSubdetectorTopology const & topology_
Definition: CaloRectangle.h:75

Member Function Documentation

template<class T>
int CaloRectangleRange< T >::Iterator::iEtaOrIX ( ) const
inline
template<class T>
int CaloRectangleRange< T >::Iterator::iPhiOrIY ( ) const
inline
template<class T>
bool CaloRectangleRange< T >::Iterator::operator!= ( Iterator const &  other) const
inline
template<class T>
T CaloRectangleRange< T >::Iterator::operator* ( void  ) const
inline

Definition at line 68 of file CaloRectangle.h.

References offsetBy().

T offsetBy(T start, CaloSubdetectorTopology const &topo, int dIEtaOrIX, int dIPhiOrIY)
Definition: CaloRectangle.h:25
CaloSubdetectorTopology const & topology_
Definition: CaloRectangle.h:75
template<class T>
Iterator& CaloRectangleRange< T >::Iterator::operator++ ( void  )
inline

Definition at line 54 of file CaloRectangle.h.

54  {
57  iEtaOrIX_++;
58  } else ++iPhiOrIY_;
59  return *this;
60  }
const CaloRectangle rectangle_
Definition: CaloRectangle.h:74
const int iPhiOrIYMax
Definition: CaloRectangle.h:17
const int iPhiOrIYMin
Definition: CaloRectangle.h:16
template<class T>
bool CaloRectangleRange< T >::Iterator::operator== ( Iterator const &  other) const
inline

Member Data Documentation

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

Definition at line 72 of file CaloRectangle.h.

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

Definition at line 77 of file CaloRectangle.h.

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

Definition at line 78 of file CaloRectangle.h.

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

Definition at line 74 of file CaloRectangle.h.

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

Definition at line 75 of file CaloRectangle.h.