1 #ifndef RECOCALOTOOLS_NAVIGATION_CALONAVIGATOR_H 2 #define RECOCALOTOOLS_NAVIGATION_CALONAVIGATOR_H 1 7 template <
class T,
class TOPO=CaloSubdetectorTopology>
17 inline void setHome(
const T& startingPoint);
29 inline void home()
const ;
84 if(deltaX > 0)
east();
90 if(deltaY > 0)
north();
104 template <
class T,
class TOPO>
112 template <
class T,
class TOPO>
119 template <
class T,
class TOPO>
CaloTopology const * topology(0)
void setHome(const T &startingPoint)
set the starting position
T offsetBy(int deltaX, int deltaY) const
Free movement of arbitray steps.
T down() const
move the navigator west
T west() const
move the navigator west
Abs< T >::type abs(const T &t)
T south() const
move the navigator south
T pos() const
get the current position
T operator*() const
get the current position
T east() const
move the navigator east
void home() const
move the navigator back to the starting point
T up() const
move the navigator west
T north() const
move the navigator north
const TOPO * getTopology() const
set the starting position
CaloNavigator(const T &home, const TOPO *topology)
void setTopology(const TOPO *)
set the starting position