1 #ifndef RECOCALOTOOLS_NAVIGATION_CALONAVIGATOR_H
2 #define RECOCALOTOOLS_NAVIGATION_CALONAVIGATOR_H 1
6 template <
class T,
class TOPO = CaloSubdetectorTopology>
12 inline void setHome(
const T& startingPoint);
21 inline void home()
const;
89 template <
class T,
class TOPO>
91 startingPoint_ = startingPoint;
95 template <
class T,
class TOPO>
97 currentPoint_ = startingPoint_;
100 template <
class T,
class TOPO>
102 if (myTopology_ == 0)
103 myTopology_ = topology;
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