\section{marlintpc\-:\-:Neighbouring\-Pad\-Handler Class Reference}
\label{classmarlintpc_1_1NeighbouringPadHandler}\index{marlintpc\-::\-Neighbouring\-Pad\-Handler@{marlintpc\-::\-Neighbouring\-Pad\-Handler}}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\bf Neighbouring\-Pad\-Handler} ()\label{classmarlintpc_1_1NeighbouringPadHandler_a517dbee22fdb8d1e7ebad010244167eb}

\begin{DoxyCompactList}\small\item\em Constructor. The maps with information about neighbours are initialized here. \end{DoxyCompactList}\item 
bool {\bf are\-Neighbouring\-Pads} (int module\-Index, int pad\-Index1, int pad\-Index2) const \label{classmarlintpc_1_1NeighbouringPadHandler_a6d8c18db3634033e702923bbfc9f8f92}

\begin{DoxyCompactList}\small\item\em The test function. It returns true, if. \end{DoxyCompactList}\item 
int {\bf get\-Smallest\-Neighbouring\-Pad\-Index} (int module\-Index, int pad\-Index) const 
\begin{DoxyCompactList}\small\item\em Returns the smallest pad index of all the neighbouring pads of the given one. \end{DoxyCompactList}\item 
int {\bf get\-Largest\-Neighbouring\-Pad\-Index} (int module\-Index, int pad\-Index) const 
\begin{DoxyCompactList}\small\item\em Returns the largest pad index of all the neighbouring pads of the given one. \end{DoxyCompactList}\item 
std\-::vector$<$ int $>$ {\bf get\-Preceding\-Neighbouring\-Pads} (int module\-Index, int pad\-Index) const \label{classmarlintpc_1_1NeighbouringPadHandler_a2535d4bfa503c7ab54dbd9304d4c0438}

\begin{DoxyCompactList}\small\item\em Returns a vector with all the neighbouring pads with a smaller pad index. \end{DoxyCompactList}\item 
std\-::vector$<$ int $>$ {\bf get\-Succeeding\-Neighbouring\-Pads} (int module\-Index, int pad\-Index) const \label{classmarlintpc_1_1NeighbouringPadHandler_a0a644bf83eed46d74cae7330f27d1b74}

\begin{DoxyCompactList}\small\item\em Returns a vector with all the neighbouring pads with a larger pad index. \end{DoxyCompactList}\item 
{\bf Neighbouring\-Pads\-Object} $\ast$ {\bf get\-Neighbouring\-Pads\-Object} (int module\-Index, int pad\-Index)\label{classmarlintpc_1_1NeighbouringPadHandler_ae68df3e9d7f1d1d009b1f2b6841799e8}

\begin{DoxyCompactList}\small\item\em Returns a pointer to the \doxyref{Neighbouring\-Pads\-Object}{p.}{classmarlintpc_1_1NeighbouringPadsObject} of the specified pad-\/ and module index. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::map$<$ int, std\-::map$<$ int, \\*
{\bf Neighbouring\-Pads\-Object} $>$ $>$ {\bf \-\_\-end\-Plate\-Map}\label{classmarlintpc_1_1NeighbouringPadHandler_aca1f824c59aebd9c2b5ee8275263ae68}

\begin{DoxyCompactList}\small\item\em Map of all pads of the G\-E\-A\-R geometry. First index is for modules, second for pads. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\index{marlintpc\-::\-Neighbouring\-Pad\-Handler@{marlintpc\-::\-Neighbouring\-Pad\-Handler}!get\-Largest\-Neighbouring\-Pad\-Index@{get\-Largest\-Neighbouring\-Pad\-Index}}
\index{get\-Largest\-Neighbouring\-Pad\-Index@{get\-Largest\-Neighbouring\-Pad\-Index}!marlintpc::NeighbouringPadHandler@{marlintpc\-::\-Neighbouring\-Pad\-Handler}}
\subsubsection[{get\-Largest\-Neighbouring\-Pad\-Index}]{\setlength{\rightskip}{0pt plus 5cm}int marlintpc\-::\-Neighbouring\-Pad\-Handler\-::get\-Largest\-Neighbouring\-Pad\-Index (
\begin{DoxyParamCaption}
\item[{int}]{module\-Index, }
\item[{int}]{pad\-Index}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1NeighbouringPadHandler_a11a03604b175fb8852e3d7906e95a0f0}


Returns the largest pad index of all the neighbouring pads of the given one. 

This can be used to break the search early, if objects are sorted by pad index. 

Referenced by marlintpc\-::\-Electron\-Cloud\-Finder\-Processor\-::process\-Event().

\index{marlintpc\-::\-Neighbouring\-Pad\-Handler@{marlintpc\-::\-Neighbouring\-Pad\-Handler}!get\-Smallest\-Neighbouring\-Pad\-Index@{get\-Smallest\-Neighbouring\-Pad\-Index}}
\index{get\-Smallest\-Neighbouring\-Pad\-Index@{get\-Smallest\-Neighbouring\-Pad\-Index}!marlintpc::NeighbouringPadHandler@{marlintpc\-::\-Neighbouring\-Pad\-Handler}}
\subsubsection[{get\-Smallest\-Neighbouring\-Pad\-Index}]{\setlength{\rightskip}{0pt plus 5cm}int marlintpc\-::\-Neighbouring\-Pad\-Handler\-::get\-Smallest\-Neighbouring\-Pad\-Index (
\begin{DoxyParamCaption}
\item[{int}]{module\-Index, }
\item[{int}]{pad\-Index}
\end{DoxyParamCaption}
) const}\label{classmarlintpc_1_1NeighbouringPadHandler_a7b49fa6fdad7ee0a8291bebdfd765680}


Returns the smallest pad index of all the neighbouring pads of the given one. 

This can be used to break the search early, if objects are sorted by pad index. 

Referenced by marlintpc\-::\-Electron\-Cloud\-Finder\-Processor\-::process\-Event().



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Neighbouring\-Pad\-Handler.\-h\item 
Neighbouring\-Pad\-Handler.\-cc\end{DoxyCompactItemize}
