\section{Split\-Collection\-By\-Layer Class Reference}
\label{classSplitCollectionByLayer}\index{Split\-Collection\-By\-Layer@{Split\-Collection\-By\-Layer}}


Utility processor that allows to split a collection of Hits into several collections based on the layer information in the cell\-I\-D word.  




{\ttfamily \#include $<$Split\-Collection\-By\-Layer.\-h$>$}

Inheritance diagram for Split\-Collection\-By\-Layer\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classSplitCollectionByLayer}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct {\bf Out\-Col\-Info}
\begin{DoxyCompactList}\small\item\em helper struct \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Processor $\ast$ {\bfseries new\-Processor} ()\label{classSplitCollectionByLayer_a1703b48e1d61fede6ae60ceb25b61ea3}

\item 
virtual const std\-::string \& {\bfseries name} () const \label{classSplitCollectionByLayer_a53e96ef11724e984de89b1ffb7312863}

\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{classSplitCollectionByLayer_a89016be64bca2dff442014f81061e220}

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

\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{classSplitCollectionByLayer_aac9c939fdbd8991f33f69cf63d3a1447}

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

\begin{DoxyCompactList}\small\item\em Called after data processing for clean up. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Types}
\begin{DoxyCompactItemize}
\item 
enum {\bf Hit\-Type} \{ \\*
{\bfseries Sim\-Tracker\-Hit\-Type} = 1, 
{\bfseries Tracker\-Hit\-Type}, 
{\bfseries Sim\-Calorimeter\-Hit\-Type}, 
{\bfseries Calorimeter\-Hit\-Type}, 
\\*
{\bfseries Unkown\-Type}
 \}
\begin{DoxyCompactList}\small\item\em Enum used for hit types. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
std\-::string {\bfseries \-\_\-col\-Name}\label{classSplitCollectionByLayer_a96d0fa987f368e7762c09f3428cfea1e}

\item 
String\-Vec {\bf \-\_\-out\-Col\-And\-Layers}\label{classSplitCollectionByLayer_a40d73f8115e5378d052644b13e4917dc}

\begin{DoxyCompactList}\small\item\em Output collections and layers\-: \end{DoxyCompactList}\item 
std\-::vector$<$ {\bf Out\-Col\-Info} $>$ {\bfseries \-\_\-out\-Cols}\label{classSplitCollectionByLayer_a00d16abf19a2d89cd54a7255eb3433be}

\item 
{\bf Hit\-Type} {\bfseries \-\_\-type}\label{classSplitCollectionByLayer_a001a3e050e7b8c68315439a59324fe04}

\item 
int {\bfseries \-\_\-n\-Run}\label{classSplitCollectionByLayer_a377b166dfdc1322055206918ab0de339}

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

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Utility processor that allows to split a collection of Hits into several collections based on the layer information in the cell\-I\-D word. 

Works for all four lcio hit classes.

Input\-Collection name of the hit collection with (Sim)Tracker\-Hits/(Sim)Calorimeter\-Hits  Output\-Collections ( Col\-Name Start\-Layer End\-Layer )

\begin{DoxyAuthor}{Author}
F. Gaede, C\-E\-R\-N/\-D\-E\-S\-Y 
\end{DoxyAuthor}
\begin{DoxyDate}{Date}
30 Oct 2014 
\end{DoxyDate}
\begin{DoxyVersion}{Version}

\end{DoxyVersion}
\begin{DoxyParagraph}{Id\-:}

\end{DoxyParagraph}


\subsection{Member Function Documentation}
\index{Split\-Collection\-By\-Layer@{Split\-Collection\-By\-Layer}!init@{init}}
\index{init@{init}!SplitCollectionByLayer@{Split\-Collection\-By\-Layer}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void Split\-Collection\-By\-Layer\-::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classSplitCollectionByLayer_a1fc4497f410abc2e8696e175f4312a22}


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

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

References \-\_\-out\-Col\-And\-Layers.



The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Split\-Collection\-By\-Layer.\-h\item 
Split\-Collection\-By\-Layer.\-cc\end{DoxyCompactItemize}
