\hypertarget{encode_8h}{
\section{encode.h File Reference}
\label{encode_8h}\index{encode.h@{encode.h}}
}
Definitions for the encoding routines. 

{\tt \#include \char`\"{}LSEC/compact.h\char`\"{}}\par
{\tt \#include \char`\"{}EDS/EBF\_\-dir.h\char`\"{}}\par


Include dependency graph for encode.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=178pt]{encode_8h__incl}
\end{center}
\end{figure}


This graph shows which files directly or indirectly include this file:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=99pt]{encode_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
unsigned \hyperlink{encode_8h_a0}{LSEC\_\-encode\-Acd} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir, unsigned char $\ast$buf)
\begin{CompactList}\small\item\em Encode the ACD event data. \item\end{CompactList}\item 
unsigned \hyperlink{encode_8h_a1}{LSEC\_\-encode\-Cal} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir, unsigned char $\ast$buf)
\begin{CompactList}\small\item\em Encode the CAL portion of the event. \item\end{CompactList}\item 
unsigned \hyperlink{encode_8h_a2}{LSEC\_\-encode\-Tkr} (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$cpc, EBF\_\-dir $\ast$dir, unsigned char $\ast$buf)
\begin{CompactList}\small\item\em Encode the TKR portion of the event. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Definitions for the encoding routines. 

\begin{Desc}
\item[Author:]James Swain \& Owen Saxton\end{Desc}
\begin{Desc}
\item[Id]\hyperlink{encode_8h}{encode.h},v 1.3 2008/07/16 20:49:58 saxton Exp \end{Desc}


\subsection{Function Documentation}
\hypertarget{encode_8h_a0}{
\index{encode.h@{encode.h}!LSEC_encodeAcd@{LSEC\_\-encodeAcd}}
\index{LSEC_encodeAcd@{LSEC\_\-encodeAcd}!encode.h@{encode.h}}
\subsubsection[LSEC\_\-encodeAcd]{\setlength{\rightskip}{0pt plus 5cm}unsigned LSEC\_\-encode\-Acd (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir}, unsigned char $\ast$ {\em buf})}}
\label{encode_8h_a0}


Encode the ACD event data. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure\item[{\em buf}]Start of the buffer to place compressed data\item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Size of the compressed event, in 32 bit words, or 0 if there is an error\end{Desc}
\hypertarget{encode_8h_a1}{
\index{encode.h@{encode.h}!LSEC_encodeCal@{LSEC\_\-encodeCal}}
\index{LSEC_encodeCal@{LSEC\_\-encodeCal}!encode.h@{encode.h}}
\subsubsection[LSEC\_\-encodeCal]{\setlength{\rightskip}{0pt plus 5cm}unsigned LSEC\_\-encode\-Cal (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir}, unsigned char $\ast$ {\em buf})}}
\label{encode_8h_a1}


Encode the CAL portion of the event. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure\item[{\em buf}]Start of the buffer to place compressed data\item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Size of the compressed event, in 32 bit words, or 0 if there is an error\end{Desc}
\hypertarget{encode_8h_a2}{
\index{encode.h@{encode.h}!LSEC_encodeTkr@{LSEC\_\-encodeTkr}}
\index{LSEC_encodeTkr@{LSEC\_\-encodeTkr}!encode.h@{encode.h}}
\subsubsection[LSEC\_\-encodeTkr]{\setlength{\rightskip}{0pt plus 5cm}unsigned LSEC\_\-encode\-Tkr (\hyperlink{structLSEC__compaction__}{LSEC\_\-compaction} $\ast$ {\em cpc}, EBF\_\-dir $\ast$ {\em dir}, unsigned char $\ast$ {\em buf})}}
\label{encode_8h_a2}


Encode the TKR portion of the event. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cpc}]Compaction structure\item[{\em buf}]Start of the buffer to place compressed data\item[{\em dir}]Pointer to a directory of the event\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Size of the compressed event, in 32 bit words, or 0 if there is an error\end{Desc}
