\section{Select\-Nth\-Events\-Processor Class Reference}
\label{classSelectNthEventsProcessor}\index{Select\-Nth\-Events\-Processor@{Select\-Nth\-Events\-Processor}}


Select a number n to use only every nth event by throwing a Skip\-Event\-Exception for all other ones.  




{\ttfamily \#include $<$Select\-Nth\-Events\-Processor.\-h$>$}

Inheritance diagram for Select\-Nth\-Events\-Processor\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classSelectNthEventsProcessor}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Processor $\ast$ {\bfseries new\-Processor} ()\label{classSelectNthEventsProcessor_aac769402cd69422d2e99dddf4f1c8ba6}

\item 
virtual void {\bf init} ()
\begin{DoxyCompactList}\small\item\em Called at the begin of the job before anything is read. \end{DoxyCompactList}\item 
virtual void {\bf process\-Run\-Header} (L\-C\-Run\-Header $\ast$run)\label{classSelectNthEventsProcessor_a0c95b7b33dc40abfb1f2c63a7170da79}

\begin{DoxyCompactList}\small\item\em Called for every run. \end{DoxyCompactList}\item 
virtual void {\bf process\-Event} (L\-C\-Event $\ast$evt)\label{classSelectNthEventsProcessor_a9b3952d02ddc811604883bd085463fcd}

\begin{DoxyCompactList}\small\item\em Called for every event -\/ the working horse. \end{DoxyCompactList}\item 
virtual void {\bfseries check} (L\-C\-Event $\ast$evt)\label{classSelectNthEventsProcessor_a23ad6b6f189ed4f418e41bdc6b9b4dc5}

\item 
virtual void {\bf end} ()\label{classSelectNthEventsProcessor_a108585e9fd7fdaf44e87fc9609605320}

\begin{DoxyCompactList}\small\item\em Called after data processing for clean up. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
int {\bfseries \-\_\-n\-Run}\label{classSelectNthEventsProcessor_a31eefc109dbbe7bc2e9c8799fcacb02a}

\item 
int {\bfseries \-\_\-n\-Evt}\label{classSelectNthEventsProcessor_a3def53a8c09fe3a2bf6ad53824036468}

\item 
int {\bfseries \-\_\-n\-Evt\-Proc}\label{classSelectNthEventsProcessor_ac3e218cff9dd584e28477103b766d536}

\item 
int {\bfseries \-\_\-n\-Evt\-Skip}\label{classSelectNthEventsProcessor_abe02ece3726f108c3fef6d2bbd383019}

\item 
int {\bfseries \-\_\-n\-Event\-To\-Select}\label{classSelectNthEventsProcessor_a06e26259bf74085c4e085c0b21123e83}

\item 
int {\bfseries \-\_\-selection\-Offset}\label{classSelectNthEventsProcessor_af9a06384dde04bd74c5ca5a8a4fa28c8}

\item 
bool {\bfseries \-\_\-invert\-Selection}\label{classSelectNthEventsProcessor_a68b0e3701c7a5dce503908e08c3558dd}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Select a number n to use only every nth event by throwing a Skip\-Event\-Exception for all other ones. 

All further processors in the chain will not process the skipped events. This selection can be inverted.


\begin{DoxyParams}{Parameters}
{\em n\-Event\-To\-Select} & Integer number. Every nth event is processed by the chain, all other events are skipped. \\
\hline
{\em Invert\-Selection} & Inverts the selection. If true, every nth event is skipped, all other events are processed.\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
U Einhaus, D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}
\doxyref{Select\-Nth\-Events\-Processor.\-h}{p.}{SelectNthEventsProcessor_8h_source},v 0.\-1 2015-\/06-\/30 
\end{DoxyParagraph}


\subsection{Member Function Documentation}
\index{Select\-Nth\-Events\-Processor@{Select\-Nth\-Events\-Processor}!init@{init}}
\index{init@{init}!SelectNthEventsProcessor@{Select\-Nth\-Events\-Processor}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void Select\-Nth\-Events\-Processor\-::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSelectNthEventsProcessor_a9f260a5edb2e0c612bc846aaf5a27414}


Called at the begin of the job before anything is read. 

Use to initialize the processor, e.\-g. book histograms. 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Select\-Nth\-Events\-Processor.\-h\item 
Select\-Nth\-Events\-Processor.\-cc\end{DoxyCompactItemize}
