\hypertarget{classTofPatternCut}{
\section{TofPatternCut Class Reference}
\label{classTofPatternCut}\index{TofPatternCut@{TofPatternCut}}
}
The Tof-pattern cut.  


{\tt \#include $<$TofPatternCut.h$>$}

Inheritance diagram for TofPatternCut::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classTofPatternCut}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classTofPatternCut_5cf2ebf9ca7566342f3d66f54ab94eb6}{TofPatternCut} (const char $\ast$cutName)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
\hyperlink{classTofPatternCut_a94b0405411dd9b6f04c7a83af64c120}{$\sim$TofPatternCut} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
int \hyperlink{classTofPatternCut_b960628bc87a72be3c8aedab6b036dce}{Check} (PamLevel2 $\ast$event)
\begin{CompactList}\small\item\em The ToF-pattern check. \item\end{CompactList}\item 
int \hyperlink{classTofPatternCut_2f9755367321e7f86f862506865f260c}{GetNHitPMTsOutsideTrack} (PamLevel2 $\ast$event, int plane)
\begin{CompactList}\small\item\em Counts the number of hit PMTs (with tdc signal) outside track. \item\end{CompactList}\item 
void \hyperlink{classTofPatternCut_f80259c2dd81a57a9d7cf2b651d0300e}{SetStandalone} (int yes)
\begin{CompactList}\small\item\em Set standalone ToF track. \item\end{CompactList}\item 
void \hyperlink{classTofPatternCut_573d063e2149ad14c831fe28c6df8542}{SetTrackNumber} (int n)
\begin{CompactList}\small\item\em Set (physical) track number (0,1,...). Default is 0 (the first). \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
bool \hyperlink{classTofPatternCut_28f5094cd7898788d4e490e75384b538}{\_\-standalone}
\item 
int \hyperlink{classTofPatternCut_9c8d4ac314f4f3a0b62fae04ecc32fd7}{\_\-notrk}
\end{CompactItemize}


\subsection{Detailed Description}
The Tof-pattern cut. 

Requirements:\begin{itemize}
\item not more than 1 hit paddle on S11 S12 S21 S22;\item at least 1 hit paddle on S1 and S2;\item not more than 3 hit PMTs (only TDC hits with tdc$<$4095) outside track; on S11 and S12;\item if there is a hit paddle, the PMTs (TDC hits) must be associated to the track;\item if no PMTs (TDC hits) are associated to the track, there must be no hit paddles. \end{itemize}


Definition at line 25 of file TofPatternCut.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classTofPatternCut_5cf2ebf9ca7566342f3d66f54ab94eb6}{
\index{TofPatternCut@{TofPatternCut}!TofPatternCut@{TofPatternCut}}
\index{TofPatternCut@{TofPatternCut}!TofPatternCut@{TofPatternCut}}
\subsubsection[{TofPatternCut}]{\setlength{\rightskip}{0pt plus 5cm}TofPatternCut::TofPatternCut (const char $\ast$ {\em cutName})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classTofPatternCut_5cf2ebf9ca7566342f3d66f54ab94eb6}


Constructor. 



Definition at line 29 of file TofPatternCut.h.\hypertarget{classTofPatternCut_a94b0405411dd9b6f04c7a83af64c120}{
\index{TofPatternCut@{TofPatternCut}!$\sim$TofPatternCut@{$\sim$TofPatternCut}}
\index{$\sim$TofPatternCut@{$\sim$TofPatternCut}!TofPatternCut@{TofPatternCut}}
\subsubsection[{$\sim$TofPatternCut}]{\setlength{\rightskip}{0pt plus 5cm}TofPatternCut::$\sim$TofPatternCut ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classTofPatternCut_a94b0405411dd9b6f04c7a83af64c120}


Destructor. 



Definition at line 33 of file TofPatternCut.h.

\subsection{Member Function Documentation}
\hypertarget{classTofPatternCut_b960628bc87a72be3c8aedab6b036dce}{
\index{TofPatternCut@{TofPatternCut}!Check@{Check}}
\index{Check@{Check}!TofPatternCut@{TofPatternCut}}
\subsubsection[{Check}]{\setlength{\rightskip}{0pt plus 5cm}int TofPatternCut::Check (PamLevel2 $\ast$ {\em event})\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{classTofPatternCut_b960628bc87a72be3c8aedab6b036dce}


The ToF-pattern check. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em event}]The event to analyze. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]\hyperlink{CommonDefs_8h_c857f4b76ae431837cbf61fd74863b6c}{CUTOK} if the event pattern matches the required characteristics. \end{Desc}


Implements \hyperlink{classPamCut_a874600461950d1f2b75ce3938f91cbe}{PamCut}.

Definition at line 12 of file TofPatternCut.cpp.

References \_\-notrk, \_\-standalone, CUTOK, and GetNHitPMTsOutsideTrack().\hypertarget{classTofPatternCut_2f9755367321e7f86f862506865f260c}{
\index{TofPatternCut@{TofPatternCut}!GetNHitPMTsOutsideTrack@{GetNHitPMTsOutsideTrack}}
\index{GetNHitPMTsOutsideTrack@{GetNHitPMTsOutsideTrack}!TofPatternCut@{TofPatternCut}}
\subsubsection[{GetNHitPMTsOutsideTrack}]{\setlength{\rightskip}{0pt plus 5cm}int TofPatternCut::GetNHitPMTsOutsideTrack (PamLevel2 $\ast$ {\em event}, \/  int {\em plane})}}
\label{classTofPatternCut_2f9755367321e7f86f862506865f260c}


Counts the number of hit PMTs (with tdc signal) outside track. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em event}]The event to analyze. \item[{\em plane}]Plane number (0-5 = S11-S32). \end{description}
\end{Desc}


to avoid adc pile-up 

Definition at line 182 of file TofPatternCut.cpp.

References \_\-notrk, and \_\-standalone.

Referenced by Check().\hypertarget{classTofPatternCut_f80259c2dd81a57a9d7cf2b651d0300e}{
\index{TofPatternCut@{TofPatternCut}!SetStandalone@{SetStandalone}}
\index{SetStandalone@{SetStandalone}!TofPatternCut@{TofPatternCut}}
\subsubsection[{SetStandalone}]{\setlength{\rightskip}{0pt plus 5cm}void TofPatternCut::SetStandalone (int {\em yes})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classTofPatternCut_f80259c2dd81a57a9d7cf2b651d0300e}


Set standalone ToF track. 



Definition at line 51 of file TofPatternCut.h.

References \_\-standalone.\hypertarget{classTofPatternCut_573d063e2149ad14c831fe28c6df8542}{
\index{TofPatternCut@{TofPatternCut}!SetTrackNumber@{SetTrackNumber}}
\index{SetTrackNumber@{SetTrackNumber}!TofPatternCut@{TofPatternCut}}
\subsubsection[{SetTrackNumber}]{\setlength{\rightskip}{0pt plus 5cm}void TofPatternCut::SetTrackNumber (int {\em n})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classTofPatternCut_573d063e2149ad14c831fe28c6df8542}


Set (physical) track number (0,1,...). Default is 0 (the first). 



Definition at line 59 of file TofPatternCut.h.

References \_\-notrk.

\subsection{Member Data Documentation}
\hypertarget{classTofPatternCut_9c8d4ac314f4f3a0b62fae04ecc32fd7}{
\index{TofPatternCut@{TofPatternCut}!\_\-notrk@{\_\-notrk}}
\index{\_\-notrk@{\_\-notrk}!TofPatternCut@{TofPatternCut}}
\subsubsection[{\_\-notrk}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf TofPatternCut::\_\-notrk}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classTofPatternCut_9c8d4ac314f4f3a0b62fae04ecc32fd7}




Definition at line 67 of file TofPatternCut.h.

Referenced by Check(), GetNHitPMTsOutsideTrack(), and SetTrackNumber().\hypertarget{classTofPatternCut_28f5094cd7898788d4e490e75384b538}{
\index{TofPatternCut@{TofPatternCut}!\_\-standalone@{\_\-standalone}}
\index{\_\-standalone@{\_\-standalone}!TofPatternCut@{TofPatternCut}}
\subsubsection[{\_\-standalone}]{\setlength{\rightskip}{0pt plus 5cm}bool {\bf TofPatternCut::\_\-standalone}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classTofPatternCut_28f5094cd7898788d4e490e75384b538}




Definition at line 66 of file TofPatternCut.h.

Referenced by Check(), GetNHitPMTsOutsideTrack(), and SetStandalone().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
TofCuts/TofPatternCut/\hyperlink{TofPatternCut_8h}{TofPatternCut.h}\item 
TofCuts/TofPatternCut/\hyperlink{TofPatternCut_8cpp}{TofPatternCut.cpp}\end{CompactItemize}
