\hypertarget{catechise_8c}{
\section{catechise.c File Reference}
\label{catechise_8c}\index{catechise.c@{catechise.c}}
}
Examine the collected events to form the tables against which the data will be encoded. 

{\tt \#include \char`\"{}LCI/LCI\_\-msgs.h\char`\"{}}\par
{\tt \#include \char`\"{}collect.h\char`\"{}}\par
{\tt \#include \char`\"{}macros\_\-p.h\char`\"{}}\par
{\tt \#include \char`\"{}LSEC/compact.h\char`\"{}}\par
{\tt \#include \char`\"{}LSEC/LSEC\_\-ctx.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/EBF\_\-dir.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/EBF\_\-cid.h\char`\"{}}\par
{\tt \#include \char`\"{}MSG/MSG\_\-pubdefs.h\char`\"{}}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned \hyperlink{catechise_8c_fbb33eac23b14e3cc637c03686728542}{LCI\_\-catechise} (LSEC\_\-compaction $\ast$cpc, \hyperlink{struct__LCI__collection}{LCI\_\-collection} $\ast$src, unsigned mode)
\begin{CompactList}\small\item\em Analyse the event collection and generate the histograms to encode against. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Examine the collected events to form the tables against which the data will be encoded. 

\begin{Desc}
\item[Author:]James Swain \& Owen Saxton\end{Desc}
\begin{Desc}
\item[Id]\end{Desc}


\subsection{Function Documentation}
\hypertarget{catechise_8c_fbb33eac23b14e3cc637c03686728542}{
\index{catechise.c@{catechise.c}!LCI_catechise@{LCI\_\-catechise}}
\index{LCI_catechise@{LCI\_\-catechise}!catechise.c@{catechise.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}unsigned LCI\_\-catechise (LSEC\_\-compaction $\ast$ {\em cpc}, {\bf LCI\_\-collection} $\ast$ {\em src}, unsigned {\em mode})}}
\label{catechise_8c_fbb33eac23b14e3cc637c03686728542}


Analyse the event collection and generate the histograms to encode against. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Pointer to an LSEC\_\-compaction structure\item[{\em src}]Pointer to the source of data to compact (a collection)\item[{\em mode}]Calibration mode (ACD, CAL or TKR)\end{description}
\end{Desc}
\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em LCI\_\-SUCCESS}]If all goes well \item[{\em LCI\_\-NOTABLE}]If the compression is invoked with empty tables. \item[{\em LCI\_\-MODE}]Returned (but not reported) if the calibration mode is bad. \end{description}
\end{Desc}
