24 if (bankName ==
"None") {
27 size_t parentIndex = compInfo.
indexOfAny(bankName);
31 return col < Edge || col >= (grid.nX - Edge) || row < Edge || row >= (grid.nY - Edge);
35 auto children = compInfo.
children(parentIndex);
37 if (!children.empty() && compInfo.
name(children[0]) ==
"sixteenpack") {
39 children = compInfo.
children(children[0]);
41 auto grandchildren = compInfo.
children(children[0]);
44 auto NROWS =
static_cast<int>(grandchildren.size());
45 auto NCOLS =
static_cast<int>(children.size());
47 return col - startI < Edge || col - startI >= (NCOLS - Edge) || row - startI < Edge ||
48 row - startI >= (NROWS - Edge);
ComponentInfo : Provides a component centric view on to the instrument.
size_t indexOfAny(const std::string &name) const
bool isGridDetector(size_t const componentIndex) const
const std::vector< size_t > & children(size_t componentIndex) const
Beamline::PixelGridComponent pixelGridComponent(const size_t componentIndex) const
const std::string & name(const size_t componentIndex) const
MANTID_GEOMETRY_DLL bool edgePixel(ComponentInfo const &info, const std::string &bankName, int col, int row, int Edge)
Function to find peaks near detector edge.