\hypertarget{ASC_8h}{
\section{ASC.h File Reference}
\label{ASC_8h}\index{ASC.h@{ASC.h}}
}
ACD Software Rate Counters, interface file. 

{\tt \#include \char`\"{}EMP/LSD\_\-sdi.h\char`\"{}}\par


Include dependency graph for ASC.h:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=110pt]{ASC_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=96pt]{ASC_8h__dep__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{CompactItemize}
\item 
struct \hyperlink{struct__ASC__handlerConstructCfg}{\_\-ASC\_\-handler\-Construct\-Cfg}
\begin{CompactList}\small\item\em Defines the configuration parameters for the Construct routine. \item\end{CompactList}\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{ASC_8h_a0}{
typedef \_\-EBF\_\-gem {\bf EBF\_\-gem}}
\label{ASC_8h_a0}

\item 
\hypertarget{ASC_8h_a1}{
typedef \_\-EDR\_\-acd {\bf EDR\_\-acd}}
\label{ASC_8h_a1}

\item 
\hypertarget{ASC_8h_a2}{
typedef \hyperlink{struct__ASC}{\_\-ASC} {\bf ASC}}
\label{ASC_8h_a2}

\item 
typedef \hyperlink{struct__ASC__counters}{\_\-ASC\_\-counters} \hyperlink{ASC_8h_a3}{ASC\_\-counters}
\begin{CompactList}\small\item\em Typedef for struct {\em ASC\_\-counters\/}. \item\end{CompactList}\item 
\hypertarget{ASC_8h_a4}{
typedef \hyperlink{struct__ASC__stats}{\_\-ASC\_\-stats} \hyperlink{ASC_8h_a4}{ASC\_\-stats}}
\label{ASC_8h_a4}

\begin{CompactList}\small\item\em Typedef for struct \hyperlink{struct__ASC__stats}{\_\-ASC\_\-stats}. \item\end{CompactList}\item 
\hypertarget{ASC_8h_a5}{
typedef \_\-EDS\_\-DB\_\-Handler\-Construct\-Services {\bf EDS\_\-DB\_\-Handler\-Construct\-Services}}
\label{ASC_8h_a5}

\item 
\hypertarget{ASC_8h_a6}{
typedef \hyperlink{struct__ASC__handlerConstructCfg}{\_\-ASC\_\-handler\-Construct\-Cfg} \hyperlink{ASC_8h_a6}{ASC\_\-handler\-Construct\-Cfg}}
\label{ASC_8h_a6}

\begin{CompactList}\small\item\em Typedef for struct \hyperlink{struct__ASC__handlerConstructCfg}{\_\-ASC\_\-handler\-Construct\-Cfg}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{ASC_8h_a7}{ASC\_\-clear} (\hyperlink{struct__ASC__counters}{ASC\_\-counters} $\ast$counters)
\begin{CompactList}\small\item\em Clears the specified statistics counters. \item\end{CompactList}\item 
\hypertarget{ASC_8h_a8}{
int {\bf ASC\_\-accumulate} (\hyperlink{struct__ASC__counters}{ASC\_\-counters} $\ast$counters, const unsigned int $\ast$edata, int esize)}
\label{ASC_8h_a8}

\item 
const EDS\_\-DB\_\-Handler\-Construct\-Services $\ast$ \hyperlink{ASC_8h_a9}{ASC\_\-construct\-Services\-Get} (\hyperlink{struct__ASC__handlerConstructCfg}{ASC\_\-handler\-Construct\-Cfg} $\ast$cfg)
\begin{CompactList}\small\item\em Routine called by LPA (via EMP\_\-DB) to get constructionr info for ASC. \item\end{CompactList}\item 
\hypertarget{ASC_8h_a10}{
\hyperlink{struct__ASC__counters}{ASC\_\-counters} $\ast$ {\bf ASC\_\-locate\-Counters} (\hyperlink{struct__ASC}{ASC} $\ast$asc)}
\label{ASC_8h_a10}

\item 
\hypertarget{ASC_8h_a11}{
\hyperlink{struct__ASC__stats}{ASC\_\-stats} $\ast$ {\bf ASC\_\-locate\-Stats} (\hyperlink{struct__ASC}{ASC} $\ast$asc)}
\label{ASC_8h_a11}

\item 
\hypertarget{ASC_8h_a12}{
void {\bf ASC\_\-get\-Stats} (\hyperlink{struct__ASC}{ASC} $\ast$asc, \hyperlink{struct__ASC__stats}{ASC\_\-stats} $\ast$stats)}
\label{ASC_8h_a12}

\item 
\hypertarget{ASC_8h_a13}{
void {\bf ASC\_\-clear\-Stats} (\hyperlink{struct__ASC}{ASC} $\ast$asc)}
\label{ASC_8h_a13}

\item 
\hypertarget{ASC_8h_a14}{
void {\bf ASC\_\-show\-Stats} (\hyperlink{struct__ASC}{ASC} $\ast$asc)}
\label{ASC_8h_a14}

\item 
\hypertarget{ASC_8h_a15}{
unsigned int {\bf ASC\_\-stats\-Sizeof} (void)}
\label{ASC_8h_a15}

\item 
\hypertarget{ASC_8h_a16}{
void {\bf ASC\_\-stats\-Sub} (\hyperlink{struct__ASC__stats}{ASC\_\-stats} $\ast$result, const \hyperlink{struct__ASC__stats}{ASC\_\-stats} $\ast$stats, const \hyperlink{struct__ASC__stats}{ASC\_\-stats} $\ast$base)}
\label{ASC_8h_a16}

\item 
\hypertarget{ASC_8h_a17}{
void {\bf ASC\_\-accumulate\-U} (\hyperlink{struct__ASC__counters}{ASC\_\-counters} $\ast$counters, const EBF\_\-gem $\ast$gem, const EDR\_\-acd $\ast$acd)}
\label{ASC_8h_a17}

\item 
const unsigned int $\ast$ \hyperlink{ASC_8h_a18}{ASC\_\-aem\_\-locate} (const unsigned int $\ast$edata, int esize)
\begin{CompactList}\small\item\em Locates AEM contribution in an event. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
ACD Software Rate Counters, interface file. 

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


\footnotesize\begin{verbatim}    CVS $Id: ASC.h,v 1.6 2006/03/01 01:44:36 russell Exp $
\end{verbatim}
\normalsize


\begin{Desc}
\item[SYNOPSIS]Defines the the interface for controlling the ACD software rate counters\end{Desc}


\subsection{Typedef Documentation}
\hypertarget{ASC_8h_a3}{
\index{ASC.h@{ASC.h}!ASC_counters@{ASC\_\-counters}}
\index{ASC_counters@{ASC\_\-counters}!ASC.h@{ASC.h}}
\subsubsection[ASC\_\-counters]{\setlength{\rightskip}{0pt plus 5cm}\hyperlink{struct__ASC__counters}{ASC\_\-counters}}}
\label{ASC_8h_a3}


Typedef for struct {\em ASC\_\-counters\/}. 

\begin{Desc}
\item[Note:]See the documentation of the enum \_\-ASC\_\-SUMMARY for an explanation of the summary statistics block.\end{Desc}


\subsection{Function Documentation}
\hypertarget{ASC_8h_a18}{
\index{ASC.h@{ASC.h}!ASC_aem_locate@{ASC\_\-aem\_\-locate}}
\index{ASC_aem_locate@{ASC\_\-aem\_\-locate}!ASC.h@{ASC.h}}
\subsubsection[ASC\_\-aem\_\-locate]{\setlength{\rightskip}{0pt plus 5cm}const unsigned int $\ast$ ASC\_\-aem\_\-locate (const unsigned int $\ast$ {\em edata}, int {\em esize})}}
\label{ASC_8h_a18}


Locates AEM contribution in an event. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em A}]pointer to the AEM contribution. \item[{\em NULL}]is return if the AEM contribution cannnot be found\end{description}
\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em edata}]Pointer to the event data structure \item[{\em esize}]Size, in bytes, of the event\end{description}
\end{Desc}
\hypertarget{ASC_8h_a7}{
\index{ASC.h@{ASC.h}!ASC_clear@{ASC\_\-clear}}
\index{ASC_clear@{ASC\_\-clear}!ASC.h@{ASC.h}}
\subsubsection[ASC\_\-clear]{\setlength{\rightskip}{0pt plus 5cm}ASC\_\-clear (\hyperlink{struct__ASC__counters}{ASC\_\-counters} $\ast$ {\em counters})}}
\label{ASC_8h_a7}


Clears the specified statistics counters. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em counters}]The statistics counters to be cleared\end{description}
\end{Desc}
\begin{Desc}
\item[Warning:]Currently this is a NON-interlocked operation.\end{Desc}
\hypertarget{ASC_8h_a9}{
\index{ASC.h@{ASC.h}!ASC_constructServicesGet@{ASC\_\-constructServicesGet}}
\index{ASC_constructServicesGet@{ASC\_\-constructServicesGet}!ASC.h@{ASC.h}}
\subsubsection[ASC\_\-constructServicesGet]{\setlength{\rightskip}{0pt plus 5cm}const EDS\_\-DB\_\-Handler\-Construct\-Services$\ast$ ASC\_\-construct\-Services\-Get (\hyperlink{struct__ASC__handlerConstructCfg}{ASC\_\-handler\-Construct\-Cfg} $\ast$ {\em cfg})}}
\label{ASC_8h_a9}


Routine called by LPA (via EMP\_\-DB) to get constructionr info for ASC. 

\begin{Desc}
\item[Returns:]Pointer to EDS\_\-DB\_\-Handler\-Construct\-Services structure\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em cfg}]The handler construction configuration\end{description}
\end{Desc}
