\hypertarget{histogram_8c}{
\section{histogram.c File Reference}
\label{histogram_8c}\index{histogram.c@{histogram.c}}
}
Iterate over the event and fill the histograms of the compaction. 

{\tt \#include \char`\"{}LSEC/LSEC\_\-msgs.h\char`\"{}}\par
{\tt \#include \char`\"{}LSEC/enums.h\char`\"{}}\par
{\tt \#include \char`\"{}compact\_\-p.h\char`\"{}}\par
{\tt \#include \char`\"{}compress.ic\char`\"{}}\par
{\tt \#include \char`\"{}raw.h\char`\"{}}\par
{\tt \#include \char`\"{}acdraw.h\char`\"{}}\par
{\tt \#include \char`\"{}gemraw.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/EBF\_\-gem.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/EBF\_\-cal.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/EBF\_\-tkr.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/EBF\_\-tem.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/FFS.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/EBF\_\-gem\-Locate.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/ACD\_\-unpack.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/ACD\_\-rec.h\char`\"{}}\par
{\tt \#include $<$string.h$>$}\par


Include dependency graph for histogram.c:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=309pt]{histogram_8c__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static void \hyperlink{histogram_8c_a0}{tkr\-Twr\-Histogram} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-tkr $\ast$ttr)
\begin{CompactList}\small\item\em Histogram over a tracker tower. \item\end{CompactList}\item 
void \hyperlink{histogram_8c_a1}{histogram\-Gem} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir)
\begin{CompactList}\small\item\em Perform the desired action upon the GEM. \item\end{CompactList}\item 
static void \hyperlink{histogram_8c_a2}{histogram\-Acd} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir)
\begin{CompactList}\small\item\em Perform the desired action on the ACD. \item\end{CompactList}\item 
static void \hyperlink{histogram_8c_a3}{histogram\-Cal} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir)
\begin{CompactList}\small\item\em Histogram the CAL portion of the event. \item\end{CompactList}\item 
static void \hyperlink{histogram_8c_a4}{histogram\-Tkr} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir)
\begin{CompactList}\small\item\em Perform the desired action on the tracker event contribution. \item\end{CompactList}\item 
void \hyperlink{histogram_8c_a5}{LSEC\_\-histogram\-Acd} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir)
\begin{CompactList}\small\item\em Perform the desired action on the ACD. \item\end{CompactList}\item 
void \hyperlink{histogram_8c_a6}{LSEC\_\-histogram\-Cal} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir)
\begin{CompactList}\small\item\em Perform the desired action on the ACD. \item\end{CompactList}\item 
void \hyperlink{histogram_8c_a7}{LSEC\_\-histogram\-Tkr} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir)
\begin{CompactList}\small\item\em Perform the desired action on the ACD. \item\end{CompactList}\item 
void \hyperlink{histogram_8c_a8}{LSEC\_\-histogram\-Cal\-Means} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir)
\begin{CompactList}\small\item\em Perform the preliminary analysis of the calorimeter log values, to obtain the means. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Iterate over the event and fill the histograms of the compaction. 

\begin{Desc}
\item[Author:]James Swain -- \href{mailto:jswain@slac.stanford.edu}{\tt jswain@slac.stanford.edu}\end{Desc}


\subsection{Function Documentation}
\hypertarget{histogram_8c_a2}{
\index{histogram.c@{histogram.c}!histogramAcd@{histogramAcd}}
\index{histogramAcd@{histogramAcd}!histogram.c@{histogram.c}}
\subsubsection[histogramAcd]{\setlength{\rightskip}{0pt plus 5cm}void histogram\-Acd (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{histogram_8c_a2}


Perform the desired action on the ACD. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\hypertarget{histogram_8c_a3}{
\index{histogram.c@{histogram.c}!histogramCal@{histogramCal}}
\index{histogramCal@{histogramCal}!histogram.c@{histogram.c}}
\subsubsection[histogramCal]{\setlength{\rightskip}{0pt plus 5cm}void histogram\-Cal (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{histogram_8c_a3}


Histogram the CAL portion of the event. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\hypertarget{histogram_8c_a1}{
\index{histogram.c@{histogram.c}!histogramGem@{histogramGem}}
\index{histogramGem@{histogramGem}!histogram.c@{histogram.c}}
\subsubsection[histogramGem]{\setlength{\rightskip}{0pt plus 5cm}void histogram\-Gem (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir})}}
\label{histogram_8c_a1}


Perform the desired action upon the GEM. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em dir}]Pointer to the directory of the current event\end{description}
\end{Desc}
\hypertarget{histogram_8c_a4}{
\index{histogram.c@{histogram.c}!histogramTkr@{histogramTkr}}
\index{histogramTkr@{histogramTkr}!histogram.c@{histogram.c}}
\subsubsection[histogramTkr]{\setlength{\rightskip}{0pt plus 5cm}void histogram\-Tkr (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{histogram_8c_a4}


Perform the desired action on the tracker event contribution. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\hypertarget{histogram_8c_a5}{
\index{histogram.c@{histogram.c}!LSEC_histogramAcd@{LSEC\_\-histogramAcd}}
\index{LSEC_histogramAcd@{LSEC\_\-histogramAcd}!histogram.c@{histogram.c}}
\subsubsection[LSEC\_\-histogramAcd]{\setlength{\rightskip}{0pt plus 5cm}void LSEC\_\-histogram\-Acd (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir})}}
\label{histogram_8c_a5}


Perform the desired action on the ACD. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\hypertarget{histogram_8c_a6}{
\index{histogram.c@{histogram.c}!LSEC_histogramCal@{LSEC\_\-histogramCal}}
\index{LSEC_histogramCal@{LSEC\_\-histogramCal}!histogram.c@{histogram.c}}
\subsubsection[LSEC\_\-histogramCal]{\setlength{\rightskip}{0pt plus 5cm}void LSEC\_\-histogram\-Cal (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir})}}
\label{histogram_8c_a6}


Perform the desired action on the ACD. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\hypertarget{histogram_8c_a8}{
\index{histogram.c@{histogram.c}!LSEC_histogramCalMeans@{LSEC\_\-histogramCalMeans}}
\index{LSEC_histogramCalMeans@{LSEC\_\-histogramCalMeans}!histogram.c@{histogram.c}}
\subsubsection[LSEC\_\-histogramCalMeans]{\setlength{\rightskip}{0pt plus 5cm}void LSEC\_\-histogram\-Cal\-Means (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir})}}
\label{histogram_8c_a8}


Perform the preliminary analysis of the calorimeter log values, to obtain the means. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em dir}]Pointer to the event to analyse\end{description}
\end{Desc}
\hypertarget{histogram_8c_a7}{
\index{histogram.c@{histogram.c}!LSEC_histogramTkr@{LSEC\_\-histogramTkr}}
\index{LSEC_histogramTkr@{LSEC\_\-histogramTkr}!histogram.c@{histogram.c}}
\subsubsection[LSEC\_\-histogramTkr]{\setlength{\rightskip}{0pt plus 5cm}void LSEC\_\-histogram\-Tkr (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir})}}
\label{histogram_8c_a7}


Perform the desired action on the ACD. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\hypertarget{histogram_8c_a0}{
\index{histogram.c@{histogram.c}!tkrTwrHistogram@{tkrTwrHistogram}}
\index{tkrTwrHistogram@{tkrTwrHistogram}!histogram.c@{histogram.c}}
\subsubsection[tkrTwrHistogram]{\setlength{\rightskip}{0pt plus 5cm}void tkr\-Twr\-Histogram (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-tkr $\ast$ {\em ttr})\hspace{0.3cm}{\tt  \mbox{[}inline, static\mbox{]}}}}
\label{histogram_8c_a0}


Histogram over a tracker tower. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure \item[{\em ttr}]The TKR twr record to histogram over\end{description}
\end{Desc}
