1 #ifndef RecoCaloTools_Navigation_CaloRectangle_H
2 #define RecoCaloTools_Navigation_CaloRectangle_H
25 for (
int i = 0;
i <
std::abs(dIEtaOrIX) && start !=
T(0);
i++) {
26 start = dIEtaOrIX > 0 ? topo.
goEast(start) : topo.
goWest(start);
29 for (
int i = 0;
i <
std::abs(dIPhiOrIY) && start !=
T(0);
i++) {
virtual DetId goSouth(const DetId &id) const
virtual DetId goWest(const DetId &id) const
CaloSubdetectorTopology const & topology_
CaloRectangleRange(int size, T home, CaloTopology const &topology)
const CaloRectangle rectangle_
virtual DetId goEast(const DetId &id) const
CaloRectangleRange(CaloRectangle rectangle, T home, CaloTopology const &topology)
const CaloRectangle rectangle_
auto operator()(T home, CaloTopology const &topology)
virtual DetId goNorth(const DetId &id) const
Abs< T >::type abs(const T &t)
T offsetBy(T start, CaloSubdetectorTopology const &topo, int dIEtaOrIX, int dIPhiOrIY)
Iterator(T const &home, int iEtaOrIX, int iPhiOrIY, CaloRectangle const rectangle, CaloSubdetectorTopology const &topology)
bool operator!=(Iterator const &other) const
bool operator==(Iterator const &other) const
tuple size
Write out results.
CaloSubdetectorTopology const & topology_