CMS 3D CMS Logo

Public Member Functions | Protected Attributes

CaloNavigator< T > Class Template Reference

#include <CaloNavigator.h>

List of all members.

Public Member Functions

 CaloNavigator ()
 Default constructor.
 CaloNavigator (const T &home)
 CaloNavigator (const T &home, const CaloSubdetectorTopology *topology)
virtual T down () const
 move the navigator west
virtual T east () const
 move the navigator east
const CaloSubdetectorTopologygetTopology () const
 set the starting position
void home () const
 move the navigator back to the starting point
virtual T north () const
 move the navigator north
virtual T offsetBy (int deltaX, int deltaY) const
 Free movement of arbitray steps.
T operator* () const
 get the current position
T pos () const
 get the current position
void setHome (const T &startingPoint)
 set the starting position
void setTopology (const CaloSubdetectorTopology *)
 set the starting position
virtual T south () const
 move the navigator south
virtual T up () const
 move the navigator west
virtual T west () const
 move the navigator west
virtual ~CaloNavigator ()
 Default constructor.

Protected Attributes

T currentPoint_
const CaloSubdetectorTopologymyTopology_
T startingPoint_

Detailed Description

template<class T>
class CaloNavigator< T >

Definition at line 7 of file CaloNavigator.h.


Constructor & Destructor Documentation

template<class T>
CaloNavigator< T >::CaloNavigator ( ) [inline]

Default constructor.

Definition at line 11 of file CaloNavigator.h.

                  : myTopology_(0)
    {
    }
template<class T>
CaloNavigator< T >::CaloNavigator ( const T home) [inline]

Definition at line 15 of file CaloNavigator.h.

                               : myTopology_(0)
    {
      setHome(home);
    };
template<class T>
CaloNavigator< T >::CaloNavigator ( const T home,
const CaloSubdetectorTopology topology 
) [inline]

Definition at line 21 of file CaloNavigator.h.

                                                                        : myTopology_(topology) 
    {
      setHome(home);
    };
template<class T>
virtual CaloNavigator< T >::~CaloNavigator ( ) [inline, virtual]

Default constructor.

Definition at line 27 of file CaloNavigator.h.

{};

Member Function Documentation

template<class T>
virtual T CaloNavigator< T >::down ( ) const [inline, virtual]

move the navigator west

Definition at line 101 of file CaloNavigator.h.

template<class T>
virtual T CaloNavigator< T >::east ( ) const [inline, virtual]
template<class T>
const CaloSubdetectorTopology* CaloNavigator< T >::getTopology ( ) const [inline]

set the starting position

Definition at line 36 of file CaloNavigator.h.

    {
      return myTopology_;
    }
template<class T >
void CaloNavigator< T >::home ( ) const
template<class T>
virtual T CaloNavigator< T >::north ( ) const [inline, virtual]
template<class T>
virtual T CaloNavigator< T >::offsetBy ( int  deltaX,
int  deltaY 
) const [inline, virtual]
template<class T>
T CaloNavigator< T >::operator* ( void  ) const [inline]

get the current position

Definition at line 48 of file CaloNavigator.h.

{ return currentPoint_; } 
template<class T>
T CaloNavigator< T >::pos ( ) const [inline]
template<class T>
void CaloNavigator< T >::setHome ( const T startingPoint)
template<class T >
void CaloNavigator< T >::setTopology ( const CaloSubdetectorTopology topology)

set the starting position

Definition at line 149 of file CaloNavigator.h.

{
  if (myTopology_ == 0)
    myTopology_=topology;
  else
    return;
}
template<class T>
virtual T CaloNavigator< T >::south ( ) const [inline, virtual]
template<class T>
virtual T CaloNavigator< T >::up ( ) const [inline, virtual]

move the navigator west

Definition at line 91 of file CaloNavigator.h.

template<class T>
virtual T CaloNavigator< T >::west ( ) const [inline, virtual]

Member Data Documentation

template<class T>
T CaloNavigator< T >::currentPoint_ [mutable, protected]
template<class T>
const CaloSubdetectorTopology* CaloNavigator< T >::myTopology_ [protected]
template<class T>
T CaloNavigator< T >::startingPoint_ [mutable, protected]

Definition at line 132 of file CaloNavigator.h.