\section{Merge\-Collections Class Reference}
\label{classMergeCollections}\index{Merge\-Collections@{Merge\-Collections}}


Helper processor that merges several input collections into a transient subset collections.  




{\ttfamily \#include $<$Merge\-Collections.\-h$>$}

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

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

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

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

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

\begin{DoxyCompactList}\small\item\em Called after data processing for clean up. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
String\-Vec {\bf \-\_\-in\-Col\-Names}\label{classMergeCollections_a95794f0518fdc68c1489dbd6ca99d368}

\begin{DoxyCompactList}\small\item\em Input collection name. \end{DoxyCompactList}\item 
Int\-Vec {\bfseries \-\_\-in\-Col\-I\-Ds}\label{classMergeCollections_ad157788e52aa8e968f206bc156274a9e}

\item 
std\-::string {\bfseries \-\_\-out\-Col\-Name}\label{classMergeCollections_a8ad3c0b07fa136df82216f5444608f36}

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

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

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Helper processor that merges several input collections into a transient subset collections. 

The names and optionally the I\-Ds of the merged collections are stored in collection parameters Merged\-Collection\-Names and Merged\-Collection\-I\-Ds.


\begin{DoxyParams}{Parameters}
{\em Input\-Collections} & Name of the input collections \\
\hline
{\em Input\-Collection\-I\-Ds} & Optional I\-Ds for input collections -\/ if given, I\-Ds will be added to all objects in merged collections as ext$<$\-Coll\-I\-D$>$()"
\begin{DoxyItemize}
\item it is the users responsibility to ensure uniqueness of the I\-Ds across the event ( and that I\-D != 0 ) 
\end{DoxyItemize}\\
\hline
{\em Output\-Collection} & Name of the output collection\\
\hline
\end{DoxyParams}
\begin{DoxyAuthor}{Author}
F. Gaede, D\-E\-S\-Y 

B. Vormwald, D\-E\-S\-Y 
\end{DoxyAuthor}


\subsection{Member Function Documentation}
\index{Merge\-Collections@{Merge\-Collections}!init@{init}}
\index{init@{init}!MergeCollections@{Merge\-Collections}}
\subsubsection[{init}]{\setlength{\rightskip}{0pt plus 5cm}void Merge\-Collections\-::init (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}\label{classMergeCollections_af19fd84d49a54139bf671f2fe84b4174}


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 
Merge\-Collections.\-h\item 
Merge\-Collections.\-cc\end{DoxyCompactItemize}
