\hypertarget{classFluxHistoAction}{
\section{FluxHistoAction Class Reference}
\label{classFluxHistoAction}\index{FluxHistoAction@{FluxHistoAction}}
}
An action that fills a flux histogram.  


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

Inheritance diagram for FluxHistoAction::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{classFluxHistoAction}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hyperlink{classFluxHistoAction_2f215089b4dc3b414b29a88e32df820d}{FluxHistoAction} (const char $\ast$actionName, TString outFileBase, TString rigBinsFile)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
\hyperlink{classFluxHistoAction_2a38b72b56859e2f6eef38d800ca5c10}{$\sim$FluxHistoAction} ()
\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void \hyperlink{classFluxHistoAction_363f9657ac69e1051449ec1907c04809}{OnGood} (PamLevel2 $\ast$event)
\begin{CompactList}\small\item\em Fills histogram with the selected event. \item\end{CompactList}\item 
void \hyperlink{classFluxHistoAction_4565d0ea3ca0f895af489455dfd5ff04}{Finalize} ()
\begin{CompactList}\small\item\em Writes the histogram to the output files (ASCII and ROOT). \item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
TString \hyperlink{classFluxHistoAction_aa222dff82e9c14a330f95a9fc51d142}{\_\-outFileBase}
\item 
vector$<$ float $>$ \hyperlink{classFluxHistoAction_c739385ec91f9a66caa36af6da127aa1}{\_\-bins}
\item 
TH1I \hyperlink{classFluxHistoAction_ece98abe4d37ec7b9e872143203bc613}{\_\-rootHisto}
\item 
vector$<$ uint64\_\-t $>$ \hyperlink{classFluxHistoAction_39cb52b179b2d169f39d692ca3f077ce}{\_\-textHisto}
\end{CompactItemize}


\subsection{Detailed Description}
An action that fills a flux histogram. 

This action reads a rigidity binning from a file and fills a flux histogram (text and ROOT format). Currently, it fills an event-count histogram: in future implementations, it could also read live time, efficiency and geometrical factor from external files and fill a true flux histogram. 

Definition at line 24 of file FluxHistoAction.h.

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classFluxHistoAction_2f215089b4dc3b414b29a88e32df820d}{
\index{FluxHistoAction@{FluxHistoAction}!FluxHistoAction@{FluxHistoAction}}
\index{FluxHistoAction@{FluxHistoAction}!FluxHistoAction@{FluxHistoAction}}
\subsubsection[{FluxHistoAction}]{\setlength{\rightskip}{0pt plus 5cm}FluxHistoAction::FluxHistoAction (const char $\ast$ {\em actionName}, \/  TString {\em outFileBase}, \/  TString {\em rigBinsFile})}}
\label{classFluxHistoAction_2f215089b4dc3b414b29a88e32df820d}


Constructor. 

outFileBase is the base name for output file: \hyperlink{classFluxHistoAction_4565d0ea3ca0f895af489455dfd5ff04}{Finalize} will add .txt for ASCII output and .root for ROOT output. outFileBase has to contain the path (otherwise, files will be saved in the current directory). The file containing the rigidity bins must be a text file. It must contain both the lower and upper limits of the rigidity axis, so that if it contains N values it defines a set of N-1 bins.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em actionName}]The action's name. \item[{\em outFileBase}]The output file base name. \item[{\em rigBinsFile}]The file containing the rigidity bins \end{description}
\end{Desc}


Definition at line 12 of file FluxHistoAction.cpp.

References \_\-bins, \_\-rootHisto, and \_\-textHisto.\hypertarget{classFluxHistoAction_2a38b72b56859e2f6eef38d800ca5c10}{
\index{FluxHistoAction@{FluxHistoAction}!$\sim$FluxHistoAction@{$\sim$FluxHistoAction}}
\index{$\sim$FluxHistoAction@{$\sim$FluxHistoAction}!FluxHistoAction@{FluxHistoAction}}
\subsubsection[{$\sim$FluxHistoAction}]{\setlength{\rightskip}{0pt plus 5cm}FluxHistoAction::$\sim$FluxHistoAction ()\hspace{0.3cm}{\tt  \mbox{[}inline\mbox{]}}}}
\label{classFluxHistoAction_2a38b72b56859e2f6eef38d800ca5c10}


Destructor. 



Definition at line 43 of file FluxHistoAction.h.

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


Writes the histogram to the output files (ASCII and ROOT). 

The output consists of a text file and of a ROOT file where the 1-dimensional rigidity histogram (TH1F) is saved. The format of the text output is: (lower bin limit) (upper bin limit) (\# of events). 

Implements \hyperlink{classCollectionAction_c32b42fc08bc1be7b003579b633de041}{CollectionAction}.

Definition at line 79 of file FluxHistoAction.cpp.

References \_\-bins, \_\-outFileBase, \_\-rootHisto, \_\-textHisto, and CollectionAction::GetName().\hypertarget{classFluxHistoAction_363f9657ac69e1051449ec1907c04809}{
\index{FluxHistoAction@{FluxHistoAction}!OnGood@{OnGood}}
\index{OnGood@{OnGood}!FluxHistoAction@{FluxHistoAction}}
\subsubsection[{OnGood}]{\setlength{\rightskip}{0pt plus 5cm}void FluxHistoAction::OnGood (PamLevel2 $\ast$ {\em event})\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{classFluxHistoAction_363f9657ac69e1051449ec1907c04809}


Fills histogram 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 50 of file FluxHistoAction.cpp.

References \_\-bins, \_\-rootHisto, and \_\-textHisto.

\subsection{Member Data Documentation}
\hypertarget{classFluxHistoAction_c739385ec91f9a66caa36af6da127aa1}{
\index{FluxHistoAction@{FluxHistoAction}!\_\-bins@{\_\-bins}}
\index{\_\-bins@{\_\-bins}!FluxHistoAction@{FluxHistoAction}}
\subsubsection[{\_\-bins}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$float$>$ {\bf FluxHistoAction::\_\-bins}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classFluxHistoAction_c739385ec91f9a66caa36af6da127aa1}




Definition at line 62 of file FluxHistoAction.h.

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




Definition at line 61 of file FluxHistoAction.h.

Referenced by Finalize().\hypertarget{classFluxHistoAction_ece98abe4d37ec7b9e872143203bc613}{
\index{FluxHistoAction@{FluxHistoAction}!\_\-rootHisto@{\_\-rootHisto}}
\index{\_\-rootHisto@{\_\-rootHisto}!FluxHistoAction@{FluxHistoAction}}
\subsubsection[{\_\-rootHisto}]{\setlength{\rightskip}{0pt plus 5cm}TH1I {\bf FluxHistoAction::\_\-rootHisto}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classFluxHistoAction_ece98abe4d37ec7b9e872143203bc613}




Definition at line 63 of file FluxHistoAction.h.

Referenced by Finalize(), FluxHistoAction(), and OnGood().\hypertarget{classFluxHistoAction_39cb52b179b2d169f39d692ca3f077ce}{
\index{FluxHistoAction@{FluxHistoAction}!\_\-textHisto@{\_\-textHisto}}
\index{\_\-textHisto@{\_\-textHisto}!FluxHistoAction@{FluxHistoAction}}
\subsubsection[{\_\-textHisto}]{\setlength{\rightskip}{0pt plus 5cm}vector$<$uint64\_\-t$>$ {\bf FluxHistoAction::\_\-textHisto}\hspace{0.3cm}{\tt  \mbox{[}private\mbox{]}}}}
\label{classFluxHistoAction_39cb52b179b2d169f39d692ca3f077ce}




Definition at line 64 of file FluxHistoAction.h.

Referenced by Finalize(), FluxHistoAction(), and OnGood().

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