\hypertarget{classDataQualCut}{
\section{DataQualCut Class Reference}
\label{classDataQualCut}\index{DataQualCut@{DataQualCut}}
}
The event and data quality cut. This cut ensures that all the data relative to the various detectors is present in the current event and that it has been correctly read.  


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

Inheritance diagram for DataQualCut::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classDataQualCut}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classDataQualCut_6fbac99a5b8eac12684bf1e998626424}{DataQualCut} (const char $\ast$cutName, unsigned int cutMask=ALL)
\begin{CompactList}\small\item\em Constructor. \hyperlink{DataQualCut_8h}{DataQualCut.h}. \item\end{CompactList}\item 
\hyperlink{classDataQualCut_355daf1e01209166cc5799e08b93c80a}{$\sim$DataQualCut} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
int \hyperlink{classDataQualCut_38d0e630a49d113ba6f7d7cc44a663e6}{Check} (PamLevel2 $\ast$event)
\begin{CompactList}\small\item\em The event and data quality check. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
unsigned int \hyperlink{classDataQualCut_af85b516384facada4cf06256d6e070a}{\_\-cutMask}
\end{CompactItemize}


\subsection{Detailed Description}
The event and data quality cut. This cut ensures that all the data relative to the various detectors is present in the current event and that it has been correctly read. 

Definition at line 20 of file DataQualCut.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classDataQualCut_6fbac99a5b8eac12684bf1e998626424}{
\index{DataQualCut@{DataQualCut}!DataQualCut@{DataQualCut}}
\index{DataQualCut@{DataQualCut}!DataQualCut@{DataQualCut}}
\subsubsection[{DataQualCut}]{\setlength{\rightskip}{0pt plus 5cm}DataQualCut::DataQualCut (const char $\ast$ {\em cutName}, \/  unsigned int {\em cutMask} = {\tt ALL})\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classDataQualCut_6fbac99a5b8eac12684bf1e998626424}


Constructor. \hyperlink{DataQualCut_8h}{DataQualCut.h}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cutName}]The cut's name. \item[{\em cutMask}]An integer whose binary code would provide a mask for the cuts to apply; use a DETECTORCODE or a combination of them to enable the corresponding checks. Default: ALL (meaning all Level 2 detectors except S4 and ND). \end{description}
\end{Desc}


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


Destructor. 



Definition at line 36 of file DataQualCut.h.

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


The event and data quality check. 

This method checks if the pointers to the various detectors level 2 data are present and if the data has been correctly unpacked, in this order: Tracker, Calo, ToF, AC, Trigger, Orbital Info. If it finds missing or corrupted data, it will stop the check and return a code corresponding to the missing/corrupted detector data.

\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 all the checked data are present and not corrupted. 

\hyperlink{CommonDefs_8h_0fda80c273d9a34e86f5f4a24f9a7b3ca35aac3cb4f8be8dfc8c5c471d537511}{TRK} if Tracker data is missing or corrupted. 

\hyperlink{CommonDefs_8h_0fda80c273d9a34e86f5f4a24f9a7b3c81bd89f7ff2c29f0171c22f7c47c3e9f}{CALO} if Calo level2 data is missing or corrupted. 

\hyperlink{CommonDefs_8h_0fda80c273d9a34e86f5f4a24f9a7b3ca7f5c1a17fce9b3e67e6e07a5e4c11b6}{CALO\_\-L1} if Calo level1 data is missing 

\hyperlink{CommonDefs_8h_0fda80c273d9a34e86f5f4a24f9a7b3cc18e0fdb830eeb3a7f657a75000744db}{TOF} if ToF data is missing or corrupted. 

\hyperlink{CommonDefs_8h_0fda80c273d9a34e86f5f4a24f9a7b3c3e553562ab1f48e96e9d0640526237b8}{AC} if AC data is missing or corrupted. 

\hyperlink{CommonDefs_8h_0fda80c273d9a34e86f5f4a24f9a7b3c55e5ba1b4d86a4bcc4c1789a8f7b75e5}{TRIG} if Trigger data is missing or corrupted. 

\hyperlink{CommonDefs_8h_0fda80c273d9a34e86f5f4a24f9a7b3cad58394ab5225c7978a38cc22fdbfa35}{ORB} if Orbital Info data is missing. \end{Desc}


Implements \hyperlink{classPamCut_a874600461950d1f2b75ce3938f91cbe}{PamCut}.

Definition at line 12 of file DataQualCut.cpp.

References \_\-cutMask, AC, CALO, CALO\_\-L1, CUTOK, ORB, TOF, TRIG, and TRK.

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




Definition at line 60 of file DataQualCut.h.

Referenced by Check().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
MiscCuts/DataQualCut/\hyperlink{DataQualCut_8h}{DataQualCut.h}\item 
MiscCuts/DataQualCut/\hyperlink{DataQualCut_8cpp}{DataQualCut.cpp}\end{CompactItemize}
