\section{Marlin\-Util Class Reference}
\label{classMarlinUtil}\index{Marlin\-Util@{Marlin\-Util}}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static void {\bfseries print\-M\-C\-Particle} (M\-C\-Particle $\ast$M\-C\-P, bool print\-Daughters=false)\label{classMarlinUtil_aa3f7f4e249467033d78866bcc7300059}

\item 
static std\-::string {\bfseries get\-M\-C\-Name} (int P\-D\-G\-Code)\label{classMarlinUtil_a0326e0b90efbce88cc92aad0bbc1cb21}

\item 
static int {\bfseries get\-P\-D\-G\-Code} (std\-::string name)\label{classMarlinUtil_a4ed53070dcfc4e80fc8abb06d18cc21d}

\item 
static M\-C\-Particle\-Vec {\bfseries get\-All\-M\-C\-Parents} (M\-C\-Particle $\ast$mc\-Part)\label{classMarlinUtil_a18f4b250015cea466d8dfc8915b86ca4}

\item 
static M\-C\-Particle\-Vec {\bfseries get\-All\-M\-C\-Daughters} (M\-C\-Particle $\ast$mc\-Part)\label{classMarlinUtil_a55122ce6d1d5bde80f2fc905d95691e5}

\item 
static bool {\bfseries is\-Daughter\-Of} (M\-C\-Particle $\ast$daughter, M\-C\-Particle $\ast$parent)\label{classMarlinUtil_a478ba217a5acc12d1056297aa4214c72}

\item 
static bool {\bfseries Decay\-Chain\-In\-Tree} (std\-::vector$<$ int $>$ Decay\-Channel, L\-C\-Event $\ast$evt)\label{classMarlinUtil_abbde5bd86a8a1e55253b4262fb6c7077}

\item 
static void {\bf get\-M\-C\-\_\-\-Balance} (L\-C\-Event $\ast$evt, double $\ast$accumulated\-Energies)
\begin{DoxyCompactList}\small\item\em Function to get the accumulated sum of the energy per event and the number of particles within different categories at I\-P. \end{DoxyCompactList}\item 
static void {\bfseries print\-Track} (Track $\ast$track, double b\-Field=4.\-0)\label{classMarlinUtil_acb9ab4b2bb5d9333a0739785d91718d0}

\item 
static const double $\ast$ {\bfseries get\-Momentum} (Track $\ast$track, double b\-Field=4.\-0)\label{classMarlinUtil_ae19cd16409ff913a9627a96b2d706f6f}

\item 
static const double {\bfseries get\-Abs\-Momentum} (Track $\ast$track, double b\-Field=4.\-0)\label{classMarlinUtil_ab0ca49219032ffd344f2d28dca887c66}

\item 
static void {\bfseries print\-Cluster} (Cluster $\ast$cluster)\label{classMarlinUtil_aeb7d5bb19ee5ab5a38e46e9cef8a736b}

\item 
static void {\bfseries print\-Reco\-Particle} (Reconstructed\-Particle $\ast$reco\-Particle, double b\-Field=4.\-0)\label{classMarlinUtil_ab69e16e3f2a6deacb925af6cc9438819}

\item 
static int {\bfseries count\-All\-Sim\-Tracker\-Hits} (L\-C\-Event $\ast$evt, M\-C\-Particle $\ast$M\-C\-P)\label{classMarlinUtil_aae868783db4215e8248db58f9c81d4f7}

\item 
static int {\bfseries count\-All\-Sim\-Calorimeter\-Hits} (L\-C\-Event $\ast$evt, M\-C\-Particle $\ast$M\-C\-P, double \&accumulated\-Sim\-Calo\-Energy)\label{classMarlinUtil_a6b6a61ea0b1100107b5e89ca7ad54e8d}

\item 
static double {\bfseries get\-Energy\-Deposited\-In\-Full\-Calorimeter} (L\-C\-Event $\ast$evt)\label{classMarlinUtil_aa32b9f52bb6ef21060e85f081ef695a5}

\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\index{Marlin\-Util@{Marlin\-Util}!get\-M\-C\-\_\-\-Balance@{get\-M\-C\-\_\-\-Balance}}
\index{get\-M\-C\-\_\-\-Balance@{get\-M\-C\-\_\-\-Balance}!MarlinUtil@{Marlin\-Util}}
\subsubsection[{get\-M\-C\-\_\-\-Balance}]{\setlength{\rightskip}{0pt plus 5cm}void Marlin\-Util\-::get\-M\-C\-\_\-\-Balance (
\begin{DoxyParamCaption}
\item[{L\-C\-Event $\ast$}]{evt, }
\item[{double $\ast$}]{accumulated\-Energies}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}\label{classMarlinUtil_a9b56bb1c47b04562d295c844bebc8d86}


Function to get the accumulated sum of the energy per event and the number of particles within different categories at I\-P. 

The return values are given in the array accumulated\-Energies of size 21 with the following content. Only M\-C particles with generator status 1 are considered\-:

accumulated\-Energies[0] \-: energy of M\-C particles which is possible to measure in calorimeter (This means muons are presented as 1.\-6 Ge\-V each) accumulated\-Energies[1] \-: energy lost in tube accumulated\-Energies[2] \-: energy of neutrinos accumulated\-Energies[3] \-: energy of electrons accumulated\-Energies[4] \-: energy of muons accumulated\-Energies[5] \-: energy of photons accumulated\-Energies[6] \-: energy of pi0s accumulated\-Energies[7] \-: energy of long lived neutral hadrons accumulated\-Energies[8] \-: energy of short lived neutral hadrons accumulated\-Energies[9] \-: energy of charged hadrons accumulated\-Energies[10] \-: number of M\-C particles which are possible to measure accumulated\-Energies[11] \-: number of M\-C particles lost in tube accumulated\-Energies[12] \-: number of neutrinos accumulated\-Energies[13] \-: number of electrons accumulated\-Energies[14] \-: number of muons accumulated\-Energies[15] \-: number of photons accumulated\-Energies[16] \-: number of pi0s accumulated\-Energies[17] \-: number of long lived hadrons accumulated\-Energies[18] \-: number of short lived hadrons accumulated\-Energies[19] \-: number of charged hadrons accumulated\-Energies[20] \-: energy of M\-C particles which is possible to measure (real sum [see 0]) 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
Marlin\-Util.\-h\item 
Marlin\-Util.\-cc\end{DoxyCompactItemize}
