Go to the documentation of this file. 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;
T up() const
move the navigator west
T north() const
move the navigator north
T east() const
move the navigator east
void setTopology(const TOPO *)
set the starting position
CaloNavigator(const T &home, const TOPO *topology)
void setHome(const T &startingPoint)
set the starting position
void home() const
move the navigator back to the starting point
T west() const
move the navigator west
T south() const
move the navigator south
T pos() const
get the current position
const TOPO * getTopology() const
set the starting position
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.
Abs< T >::type abs(const T &t)