\hypertarget{classCaloNHitCut}{
\section{CaloNHitCut Class Reference}
\label{classCaloNHitCut}\index{CaloNHitCut@{CaloNHitCut}}
}
The number of hits cut for the calorimeter. An event survives this selection if the number of hit planes in the calorimeter is greater than some value. To save computing time, the class assumes that the track is externally computed for each event and stored in \hyperlink{classCaloAxis}{CaloAxis} objects; pointers to these objects are passed as arguments to the constructor. The Check method will then ignore the PamLevel2 $\ast$event and assume that the current content of the \hyperlink{classCaloAxis}{CaloAxis} objects are relative to the current event. It is an user's task to ensure that these assumptions are fulfilled every time Check or ApplyCut are called.  


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

Inheritance diagram for CaloNHitCut::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classCaloNHitCut}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classCaloNHitCut_220d9db8d015f09a97bb7a222f059cd2}{CaloNHitCut} (const char $\ast$cutName, \hyperlink{classCaloAxis}{CaloAxis} $\ast$xCaloAxis, \hyperlink{classCaloAxis}{CaloAxis} $\ast$yCaloAxis, int nMinHit=10)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
\hyperlink{classCaloNHitCut_97d9858496d6c3f8a47aa2c60d844065}{$\sim$CaloNHitCut} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
int \hyperlink{classCaloNHitCut_54aae0d5514f7bda15297b9cfdceee68}{Check} (PamLevel2 $\ast$event)
\begin{CompactList}\small\item\em The number of hit planes check. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
\hyperlink{classCaloAxis}{CaloAxis} $\ast$ \hyperlink{classCaloNHitCut_30652791bd9af9d61c5a156fc85f922a}{\_\-xCaloAxis}
\item 
\hyperlink{classCaloAxis}{CaloAxis} $\ast$ \hyperlink{classCaloNHitCut_a2561d175842814d056ffbd99b50ea6e}{\_\-yCaloAxis}
\item 
int \hyperlink{classCaloNHitCut_4a261716ce5e71159d2da6414a819a9a}{\_\-nMinHit}
\end{CompactItemize}


\subsection{Detailed Description}
The number of hits cut for the calorimeter. An event survives this selection if the number of hit planes in the calorimeter is greater than some value. To save computing time, the class assumes that the track is externally computed for each event and stored in \hyperlink{classCaloAxis}{CaloAxis} objects; pointers to these objects are passed as arguments to the constructor. The Check method will then ignore the PamLevel2 $\ast$event and assume that the current content of the \hyperlink{classCaloAxis}{CaloAxis} objects are relative to the current event. It is an user's task to ensure that these assumptions are fulfilled every time Check or ApplyCut are called. 

CUT DEPENDENCIES: \hyperlink{classCaloTrackCut}{CaloTrackCut} for the existence of the track (it can also provide the \hyperlink{classCaloAxis}{CaloAxis} objects). 

Definition at line 29 of file CaloNHitCut.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classCaloNHitCut_220d9db8d015f09a97bb7a222f059cd2}{
\index{CaloNHitCut@{CaloNHitCut}!CaloNHitCut@{CaloNHitCut}}
\index{CaloNHitCut@{CaloNHitCut}!CaloNHitCut@{CaloNHitCut}}
\subsubsection[{CaloNHitCut}]{\setlength{\rightskip}{0pt plus 5cm}CaloNHitCut::CaloNHitCut (const char $\ast$ {\em cutName}, \/  {\bf CaloAxis} $\ast$ {\em xCaloAxis}, \/  {\bf CaloAxis} $\ast$ {\em yCaloAxis}, \/  int {\em nMinHit} = {\tt 10})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classCaloNHitCut_220d9db8d015f09a97bb7a222f059cd2}


Constructor. 

The \hyperlink{classCaloAxis}{CaloAxis} arguments are pointers to objects which contain the calorimeter track information for current event.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cutName}]The cut name. \item[{\em xCaloAxis}]The pointer to the \hyperlink{classCaloAxis}{CaloAxis} object for X axis. \item[{\em yCaloAxis}]The pointer to the \hyperlink{classCaloAxis}{CaloAxis} object for Y axis. \item[{\em nMinHit}]The minimum number of hits. \end{description}
\end{Desc}


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


Destructor. 



Definition at line 47 of file CaloNHitCut.h.

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


The number of hit planes check. 

The check is done by looking if there is a charge release near the track, using the \hyperlink{classCaloAxis}{CaloAxis} class. If a charge greater than 0 is found by invoking \hyperlink{classCaloAxis_fa2726b36147a39e2c64d4808aa435e3}{CaloAxis::GetQ} for at least nMinHit planes (both for X and Y) the condition is fulfilled.

\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 track hits at least nMinHit planes both in X and Y. 

0 otherwise. \end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{classCaloNHitCut_220d9db8d015f09a97bb7a222f059cd2}{CaloNHitCut::CaloNHitCut} \end{Desc}


Implements \hyperlink{classPamCut_a874600461950d1f2b75ce3938f91cbe}{PamCut}.

Definition at line 12 of file CaloNHitCut.cpp.

References \_\-nMinHit, \_\-xCaloAxis, \_\-yCaloAxis, CUTOK, and CaloAxis::GetQ().

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




Definition at line 65 of file CaloNHitCut.h.

Referenced by Check().\hypertarget{classCaloNHitCut_30652791bd9af9d61c5a156fc85f922a}{
\index{CaloNHitCut@{CaloNHitCut}!\_\-xCaloAxis@{\_\-xCaloAxis}}
\index{\_\-xCaloAxis@{\_\-xCaloAxis}!CaloNHitCut@{CaloNHitCut}}
\subsubsection[{\_\-xCaloAxis}]{\setlength{\rightskip}{0pt plus 5cm}{\bf CaloAxis}$\ast$ {\bf CaloNHitCut::\_\-xCaloAxis}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classCaloNHitCut_30652791bd9af9d61c5a156fc85f922a}




Definition at line 64 of file CaloNHitCut.h.

Referenced by Check().\hypertarget{classCaloNHitCut_a2561d175842814d056ffbd99b50ea6e}{
\index{CaloNHitCut@{CaloNHitCut}!\_\-yCaloAxis@{\_\-yCaloAxis}}
\index{\_\-yCaloAxis@{\_\-yCaloAxis}!CaloNHitCut@{CaloNHitCut}}
\subsubsection[{\_\-yCaloAxis}]{\setlength{\rightskip}{0pt plus 5cm}{\bf CaloAxis} $\ast$ {\bf CaloNHitCut::\_\-yCaloAxis}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classCaloNHitCut_a2561d175842814d056ffbd99b50ea6e}




Definition at line 64 of file CaloNHitCut.h.

Referenced by Check().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
CaloCuts/CaloNHitCut/\hyperlink{CaloNHitCut_8h}{CaloNHitCut.h}\item 
CaloCuts/CaloNHitCut/\hyperlink{CaloNHitCut_8cpp}{CaloNHitCut.cpp}\end{CompactItemize}
