1 // Yo emacs, this is -*- C++ -*-.
4 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
7 // $Id: SlidingWindowFinder.icc,v 1.1 2006-12-15 17:30:25 ssnyder Exp $
9 * @file SlidingWindowFinder.icc
10 * @author H. Ma, S. Rajagopalan, scott snyder <snyder@bnl.gov>
12 * @brief Sliding window cluster finder, inline implementations.
17 * @brief Return the eta position of the last cluster found.
19 inline int SlidingWindowFinder::eta() const
27 * @brief Return the phi position of the last cluster found.
29 inline int SlidingWindowFinder::phi() const
37 * @brief Return a starting iterator over the cells in the last found cluster.
40 SlidingWindowFinder::data_iterator SlidingWindowFinder::cell_begin() const
43 return m_cells.begin();
48 * @brief Return an ending iterator over the cells in the last found cluster.
51 SlidingWindowFinder::data_iterator SlidingWindowFinder::cell_end() const
59 * @brief Return the cell pointer from a cell iterator.
61 inline const CaloCell*
62 SlidingWindowFinder::getCell(const data_iterator& iter) const
64 return (*(this->getCellContainer(iter)))[this->getCellIndex(iter)];
69 * @brief Return the container pointer from a cell iterator.
71 inline const CaloCellContainer*
72 SlidingWindowFinder::getCellContainer(const data_iterator& iter) const
79 * @brief Return the cell index from a cell iterator.
82 SlidingWindowFinder::getCellIndex(const data_iterator& iter) const