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 home() const
move the navigator back to the starting point
T north() const
move the navigator north
T south() const
move the navigator south
T pos() const
get the current position
void setHome(const T &startingPoint)
set the starting position
Abs< T >::type abs(const T &t)
T down() const
move the navigator west
T operator*() const
get the current position
T offsetBy(int deltaX, int deltaY) const
Free movement of arbitray steps.
T east() const
move the navigator east
const TOPO * getTopology() const
set the starting position
T west() const
move the navigator west
CaloNavigator(const T &home, const TOPO *topology)
T up() const
move the navigator west
void setTopology(const TOPO *)
set the starting position