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

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.

CaloTopology const * topology(0)
const CaloRectangle rectangle_
Definition: CaloRectangle.h:71
CaloSubdetectorTopology const & topology_
Definition: CaloRectangle.h:72

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

References offsetBy().

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

Definition at line 47 of file CaloRectangle.h.

47  {
50  iEtaOrIX_++;
51  } else
52  ++iPhiOrIY_;
53  return *this;
54  }
const CaloRectangle rectangle_
Definition: CaloRectangle.h:71
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 69 of file CaloRectangle.h.

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

Definition at line 74 of file CaloRectangle.h.

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

Definition at line 75 of file CaloRectangle.h.

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

Definition at line 71 of file CaloRectangle.h.

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

Definition at line 72 of file CaloRectangle.h.