\hypertarget{classSaveEventsAction}{
\section{SaveEventsAction Class Reference}
\label{classSaveEventsAction}\index{SaveEventsAction@{SaveEventsAction}}
}
An action that saves the selected events.  


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

Inheritance diagram for SaveEventsAction::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classSaveEventsAction}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classSaveEventsAction_c758fdbf708778a0c0497bb65fefa75a}{SaveEventsAction} (const char $\ast$actionName, TString outFileName, TString outOptions=TString(\char`\"{}\char`\"{}))
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
\hyperlink{classSaveEventsAction_08ebe8957cdc27c39a622779b0114440}{$\sim$SaveEventsAction} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void \hyperlink{classSaveEventsAction_3a59e42181c79dcd192b0be3d14a34c2}{Setup} (PamLevel2 $\ast$events)
\begin{CompactList}\small\item\em The setup procedure. \item\end{CompactList}\item 
void \hyperlink{classSaveEventsAction_47e8259afe7a68ba3c0adf3bd79fe52a}{OnGood} (PamLevel2 $\ast$event)
\begin{CompactList}\small\item\em Fills the tree with the selected event. \item\end{CompactList}\item 
void \hyperlink{classSaveEventsAction_790f534c0a888c2a57814cd859b97270}{Finalize} ()
\begin{CompactList}\small\item\em Writes the tree of saved events to the output file. \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
TFile $\ast$ \hyperlink{classSaveEventsAction_955b11224d55598002d469b07632551f}{\_\-outTreeFile}
\item 
PamLevel2 $\ast$ \hyperlink{classSaveEventsAction_3e30ca3f79e10b745b10026ce4dcaddc}{\_\-events}
\item 
TString \hyperlink{classSaveEventsAction_0c1166571d97d354708f7c3fbe62d1f9}{\_\-outOptions}
\end{CompactItemize}


\subsection{Detailed Description}
An action that saves the selected events. 

This action saves the selected events into a ROOT file. 

Definition at line 19 of file SaveEventsAction.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classSaveEventsAction_c758fdbf708778a0c0497bb65fefa75a}{
\index{SaveEventsAction@{SaveEventsAction}!SaveEventsAction@{SaveEventsAction}}
\index{SaveEventsAction@{SaveEventsAction}!SaveEventsAction@{SaveEventsAction}}
\subsubsection[{SaveEventsAction}]{\setlength{\rightskip}{0pt plus 5cm}SaveEventsAction::SaveEventsAction (const char $\ast$ {\em actionName}, \/  TString {\em outFileName}, \/  TString {\em outOptions} = {\tt TString(\char`\"{}\char`\"{})})}}
\label{classSaveEventsAction_c758fdbf708778a0c0497bb65fefa75a}


Constructor. 

outOptions is to be passed as the argument of a PamLevel2::SetWhichTrees() call, so it must be encoded in a compatible format. See the PamLevel2 documentation.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em actionName}]The action's name. \item[{\em outFileName}]The output file name, with path (absolute or relative). \item[{\em outOptions}]The output options. \end{description}
\end{Desc}


Definition at line 12 of file SaveEventsAction.cpp.

References \_\-outTreeFile.\hypertarget{classSaveEventsAction_08ebe8957cdc27c39a622779b0114440}{
\index{SaveEventsAction@{SaveEventsAction}!$\sim$SaveEventsAction@{$\sim$SaveEventsAction}}
\index{$\sim$SaveEventsAction@{$\sim$SaveEventsAction}!SaveEventsAction@{SaveEventsAction}}
\subsubsection[{$\sim$SaveEventsAction}]{\setlength{\rightskip}{0pt plus 5cm}SaveEventsAction::$\sim$SaveEventsAction ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classSaveEventsAction_08ebe8957cdc27c39a622779b0114440}


Destructor. 



Definition at line 34 of file SaveEventsAction.h.

\subsection{Member Function Documentation}
\hypertarget{classSaveEventsAction_790f534c0a888c2a57814cd859b97270}{
\index{SaveEventsAction@{SaveEventsAction}!Finalize@{Finalize}}
\index{Finalize@{Finalize}!SaveEventsAction@{SaveEventsAction}}
\subsubsection[{Finalize}]{\setlength{\rightskip}{0pt plus 5cm}void SaveEventsAction::Finalize ()\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{classSaveEventsAction_790f534c0a888c2a57814cd859b97270}


Writes the tree of saved events to the output file. 



Implements \hyperlink{classCollectionAction_c32b42fc08bc1be7b003579b633de041}{CollectionAction}.

Definition at line 43 of file SaveEventsAction.cpp.

References \_\-events, and \_\-outTreeFile.\hypertarget{classSaveEventsAction_47e8259afe7a68ba3c0adf3bd79fe52a}{
\index{SaveEventsAction@{SaveEventsAction}!OnGood@{OnGood}}
\index{OnGood@{OnGood}!SaveEventsAction@{SaveEventsAction}}
\subsubsection[{OnGood}]{\setlength{\rightskip}{0pt plus 5cm}void SaveEventsAction::OnGood (PamLevel2 $\ast$ {\em event})\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{classSaveEventsAction_47e8259afe7a68ba3c0adf3bd79fe52a}


Fills the tree with the selected event. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em event}]The selected event. \end{description}
\end{Desc}


Implements \hyperlink{classCollectionAction_801dd664020b71e8a3232e5a584d96a0}{CollectionAction}.

Definition at line 38 of file SaveEventsAction.cpp.\hypertarget{classSaveEventsAction_3a59e42181c79dcd192b0be3d14a34c2}{
\index{SaveEventsAction@{SaveEventsAction}!Setup@{Setup}}
\index{Setup@{Setup}!SaveEventsAction@{SaveEventsAction}}
\subsubsection[{Setup}]{\setlength{\rightskip}{0pt plus 5cm}void SaveEventsAction::Setup (PamLevel2 $\ast$ {\em events})\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{classSaveEventsAction_3a59e42181c79dcd192b0be3d14a34c2}


The setup procedure. 

This routine will set the trees to be saved, by calling PamLevel2::SetWhichTrees().

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em events}]The events pointer. \end{description}
\end{Desc}


Reimplemented from \hyperlink{classCollectionAction_13adbcacf5e088f7979f0644a65372b4}{CollectionAction}.

Definition at line 31 of file SaveEventsAction.cpp.

References \_\-events, \_\-outOptions, and \_\-outTreeFile.

\subsection{Member Data Documentation}
\hypertarget{classSaveEventsAction_3e30ca3f79e10b745b10026ce4dcaddc}{
\index{SaveEventsAction@{SaveEventsAction}!\_\-events@{\_\-events}}
\index{\_\-events@{\_\-events}!SaveEventsAction@{SaveEventsAction}}
\subsubsection[{\_\-events}]{\setlength{\rightskip}{0pt plus 5cm}PamLevel2$\ast$ {\bf SaveEventsAction::\_\-events}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classSaveEventsAction_3e30ca3f79e10b745b10026ce4dcaddc}




Definition at line 57 of file SaveEventsAction.h.

Referenced by Finalize(), and Setup().\hypertarget{classSaveEventsAction_0c1166571d97d354708f7c3fbe62d1f9}{
\index{SaveEventsAction@{SaveEventsAction}!\_\-outOptions@{\_\-outOptions}}
\index{\_\-outOptions@{\_\-outOptions}!SaveEventsAction@{SaveEventsAction}}
\subsubsection[{\_\-outOptions}]{\setlength{\rightskip}{0pt plus 5cm}TString {\bf SaveEventsAction::\_\-outOptions}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classSaveEventsAction_0c1166571d97d354708f7c3fbe62d1f9}




Definition at line 58 of file SaveEventsAction.h.

Referenced by Setup().\hypertarget{classSaveEventsAction_955b11224d55598002d469b07632551f}{
\index{SaveEventsAction@{SaveEventsAction}!\_\-outTreeFile@{\_\-outTreeFile}}
\index{\_\-outTreeFile@{\_\-outTreeFile}!SaveEventsAction@{SaveEventsAction}}
\subsubsection[{\_\-outTreeFile}]{\setlength{\rightskip}{0pt plus 5cm}TFile$\ast$ {\bf SaveEventsAction::\_\-outTreeFile}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classSaveEventsAction_955b11224d55598002d469b07632551f}




Definition at line 56 of file SaveEventsAction.h.

Referenced by Finalize(), SaveEventsAction(), and Setup().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
CollectionActions/SaveEventsAction/\hyperlink{SaveEventsAction_8h}{SaveEventsAction.h}\item 
CollectionActions/SaveEventsAction/\hyperlink{SaveEventsAction_8cpp}{SaveEventsAction.cpp}\end{CompactItemize}
