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


\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{struct__ASC__cno}{\_\-ASC\_\-cno}
\begin{CompactList}\small\item\em Accumulates the counts for the CNO vector. \item\end{CompactList}\item 
struct \hyperlink{struct__ASC__patterns}{\_\-ASC\_\-patterns}
\begin{CompactList}\small\item\em Accumulates the pattern counts for one ACD FREE board channel. \item\end{CompactList}\item 
struct \hyperlink{struct__ASC__list}{\_\-ASC\_\-list}
\begin{CompactList}\small\item\em The ACD vector counts for each of the 32 ACD readout channels is in a list. \item\end{CompactList}\item 
struct \hyperlink{struct__ASC__cnts}{\_\-ASC\_\-cnts}
\begin{CompactList}\small\item\em Statistics for each of the 4 lists. \item\end{CompactList}\item 
struct \hyperlink{struct__ASC__counters}{\_\-ASC\_\-counters}
\begin{CompactList}\small\item\em All ACD counts. \item\end{CompactList}\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
\hypertarget{ASC_8h_22ad7397c2b9ce050858b4bf3735ead5}{
typedef struct \hyperlink{struct__ASC__cno}{\_\-ASC\_\-cno} \hyperlink{ASC_8h_22ad7397c2b9ce050858b4bf3735ead5}{ASC\_\-cno}}
\label{ASC_8h_22ad7397c2b9ce050858b4bf3735ead5}

\begin{CompactList}\small\item\em Typedef for the struct {\em \hyperlink{struct__ASC__cno}{\_\-ASC\_\-cno}\/}. \item\end{CompactList}\item 
typedef struct \hyperlink{struct__ASC__patterns}{\_\-ASC\_\-patterns} \hyperlink{ASC_8h_18b020d4b96dad619414d19316cdd1df}{ASC\_\-patterns}
\begin{CompactList}\small\item\em Typedef for the struct {\em \hyperlink{struct__ASC__patterns}{\_\-ASC\_\-patterns}\/}. \item\end{CompactList}\item 
typedef struct \hyperlink{struct__ASC__list}{\_\-ASC\_\-list} \hyperlink{ASC_8h_51c5afafce4a1c47144c364d67c753b7}{ASC\_\-list}
\begin{CompactList}\small\item\em Typedef for struct {\em ASC\_\-list\/}. \item\end{CompactList}\item 
\hypertarget{ASC_8h_2829bc35007fe536cb3b7e6fbd5bb9a2}{
typedef struct \hyperlink{struct__ASC__cnts}{\_\-ASC\_\-cnts} \hyperlink{ASC_8h_2829bc35007fe536cb3b7e6fbd5bb9a2}{ASC\_\-cnts}}
\label{ASC_8h_2829bc35007fe536cb3b7e6fbd5bb9a2}

\begin{CompactList}\small\item\em Typedef for struct \hyperlink{struct__ASC__cnts}{\_\-ASC\_\-cnts}. \item\end{CompactList}\item 
typedef enum \hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf}{\_\-ASC\_\-SUMMARY} \hyperlink{ASC_8h_70441549ebf7ffbcc15651e0e1acde01}{ASC\_\-SUMMARY}
\begin{CompactList}\small\item\em Typedef for enum \_\-ASC\_\-SUMMARY. \item\end{CompactList}\item 
typedef struct \hyperlink{struct__ASC__counters}{\_\-ASC\_\-counters} \hyperlink{ASC_8h_64f0ba69b2dd35099a995d7038bc6127}{ASC\_\-counters}
\begin{CompactList}\small\item\em Typedef for struct {\em ASC\_\-counters\/}. \item\end{CompactList}\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum \hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf}{\_\-ASC\_\-SUMMARY} \{ \par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bfaca6537e76bf9a533a77726edfaadd84}{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-OKAY} =  0, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bfd1ba5fd289e1ab1e588de5610fecc55f}{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-ERR} =  1, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf3806a5604286d8d58cb078cbb8cc5593}{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-MISS} =  2, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bff3941117dc276d1e10d7c66d35c54847}{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-OKAY} =  3, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf6f13773828f467c961ba976c6c2daa7b}{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-ERR} =  4, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bfd77470b5c443edd556dd6574ca9df0e4}{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-MISS} =  5, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf2d26a031b4690083c7bedc468bf219e8}{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-OKAY} =  6, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bfaec449e3817c8ec8f1f0884f53e72123}{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-ERR} =  7, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf8d30fecb5f45af18d0380625734324ab}{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-MISS} =  8, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bfd62a2390ccc99dc3e70d6941848b05f6}{ASC\_\-SUMMARY\_\-RSVD\_\-9} =  9, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bfe6b7fdce54a4f37c95afe41f6e99aa72}{ASC\_\-SUMMARY\_\-RSVD\_\-10} =  10, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bfac3636c1dbc7c7719fd1e11352297525}{ASC\_\-SUMMARY\_\-RSVD\_\-11} =  11, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf12a9cd98b6c734b074eb2f7f99f84d91}{ASC\_\-SUMMARY\_\-RSVD\_\-12} =  12, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf77007c2e5e823be6484a53c96e3b425c}{ASC\_\-SUMMARY\_\-RSVD\_\-13} =  13, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bf304e443ec42460919471040d33473a74}{ASC\_\-SUMMARY\_\-RSVD\_\-14} =  14, 
\par
\hyperlink{ASC_8h_4ce65d509f67d2e9505502db706302bfe0d7253aae1befaeaff430c62a0b3488}{ASC\_\-SUMMARY\_\-RSVD\_\-15} =  15
 \}
\begin{CompactList}\small\item\em Enumerates the entries in the summary statistics block. \item\end{CompactList}\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{ASC_8h_c599bd40c55490659619288a7a5ec860}{ASC\_\-clear} (\hyperlink{struct__ASC__counters}{ASC\_\-counters} $\ast$counters)
\begin{CompactList}\small\item\em Clears the specified statistics counters. \item\end{CompactList}\item 
int \hyperlink{ASC_8h_da3b8fed561a320ef8aea3d56236f923}{ASC\_\-accumulate} (\hyperlink{struct__ASC__counters}{ASC\_\-counters} $\ast$counters, const unsigned int $\ast$edata, int esize)
\begin{CompactList}\small\item\em Accumulate the counters for the specified 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.1.1.1 2005/12/01 21:55:31 ebacho 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_64f0ba69b2dd35099a995d7038bc6127}{
\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}{\bf ASC\_\-counters}}}
\label{ASC_8h_64f0ba69b2dd35099a995d7038bc6127}


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}
\hypertarget{ASC_8h_51c5afafce4a1c47144c364d67c753b7}{
\index{ASC.h@{ASC.h}!ASC\_\-list@{ASC\_\-list}}
\index{ASC\_\-list@{ASC\_\-list}!ASC.h@{ASC.h}}
\subsubsection[{ASC\_\-list}]{\setlength{\rightskip}{0pt plus 5cm}{\bf ASC\_\-list}}}
\label{ASC_8h_51c5afafce4a1c47144c364d67c753b7}


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

The trick here is in defining what is meant by {\em each possible readout channel\/}. This problem stems from the fact that there are a variety of representations of the ACD data.\begin{enumerate}
\item At the detector level there are 97 tiles and ribbons, with 2 ends each.\item At the FREE board electronics level there are 12 FREE boards each with 18 channels.\item At the GEM level, there are 4 x 32 bits words with each bit representing 2 channels. The decision here is to go wih the most inclusive definition and then provide mapping functions to recast the data into the other to forms.\end{enumerate}


The most inclusive is the GEM level, representing a total of 256 channels vs 216 FREE board channels vs 194 detector channels. \hypertarget{ASC_8h_18b020d4b96dad619414d19316cdd1df}{
\index{ASC.h@{ASC.h}!ASC\_\-patterns@{ASC\_\-patterns}}
\index{ASC\_\-patterns@{ASC\_\-patterns}!ASC.h@{ASC.h}}
\subsubsection[{ASC\_\-patterns}]{\setlength{\rightskip}{0pt plus 5cm}{\bf ASC\_\-patterns}}}
\label{ASC_8h_18b020d4b96dad619414d19316cdd1df}


Typedef for the struct {\em \hyperlink{struct__ASC__patterns}{\_\-ASC\_\-patterns}\/}. 

Associated with either ACD tile or ribbon are 5 discriminator bits.

\begin{enumerate}
\item PHA Accept Discriminator side A\item PHA Accept Discriminator side B\item Hit or LO Discriminator, side A\item Hit or LO Discriminator, side B\item Veto Discriminator, from the GEM\end{enumerate}


These bits can be arranged to form a 5 bit number.



\footnotesize\begin{verbatim}
     +----+----+----+----+----+
     |  V | Hb | Ha | Pb | Pa |
     +----+----+----+----+----+
  \end{verbatim}
\normalsize


For each ACD tile, this is a number from 0-31, inclusive. This structure contains the 32 bit accumulations for this vector. \hypertarget{ASC_8h_70441549ebf7ffbcc15651e0e1acde01}{
\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY@{ASC\_\-SUMMARY}}
\index{ASC\_\-SUMMARY@{ASC\_\-SUMMARY}!ASC.h@{ASC.h}}
\subsubsection[{ASC\_\-SUMMARY}]{\setlength{\rightskip}{0pt plus 5cm}{\bf ASC\_\-SUMMARY}}}
\label{ASC_8h_70441549ebf7ffbcc15651e0e1acde01}


Typedef for enum \_\-ASC\_\-SUMMARY. 

\begin{Desc}
\item[Summary Statistics Block]The summary statistics block consists of 16 32-bit entries to accumulate statistics. Only the first 9 are currently defined. These 9 entries map out a 3 x 3 grid. The 2 axis stand for the condition of the AEM and GEM contribution. A contribution can exist in one of 3 states\end{Desc}
\begin{itemize}
\item Present and okay\item Present and in error, i.e. contribution found, but data in correct\item Missing, i.e. contribution not found.\end{itemize}


\begin{Desc}
\item[]Each event will increment only one of these entries. The total number of events seen is thus the sum of all 9 entries. The counters will be accumulated only for events with a block present and not in error. Note that events with only a GEM contributor or only an AEM contributor will be accumulated into the statistics counters iff the contributor's is not in error. Naturally one expects most entries to be in the both present and okay category.\end{Desc}
\begin{Desc}
\item[Note:]Currently there is no way a GEM contribution can be present but in error. Consequently these entries should be 0. The locations will be maintained if one discovers that such a category is possible. \end{Desc}


\subsection{Enumeration Type Documentation}
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bf}{
\index{ASC.h@{ASC.h}!\_\-ASC\_\-SUMMARY@{\_\-ASC\_\-SUMMARY}}
\index{\_\-ASC\_\-SUMMARY@{\_\-ASC\_\-SUMMARY}!ASC.h@{ASC.h}}
\subsubsection[{\_\-ASC\_\-SUMMARY}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf \_\-ASC\_\-SUMMARY}}}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bf}


Enumerates the entries in the summary statistics block. 

\begin{Desc}
\item[Enumerator: ]\par
\begin{description}
\index{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-OKAY@{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-OKAY}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-OKAY@{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-OKAY}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bfaca6537e76bf9a533a77726edfaadd84}{
ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-OKAY}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bfaca6537e76bf9a533a77726edfaadd84}
}]Both present and okay \index{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-ERR@{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-ERR}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-ERR@{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-ERR}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bfd1ba5fd289e1ab1e588de5610fecc55f}{
ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-ERR}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bfd1ba5fd289e1ab1e588de5610fecc55f}
}]Both present, GEM in error \index{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-MISS@{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-MISS}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-MISS@{ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-MISS}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bf3806a5604286d8d58cb078cbb8cc5593}{
ASC\_\-SUMMARY\_\-AEM\_\-OKAY\_\-GEM\_\-MISS}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bf3806a5604286d8d58cb078cbb8cc5593}
}]Only AEM present \index{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-OKAY@{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-OKAY}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-OKAY@{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-OKAY}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bff3941117dc276d1e10d7c66d35c54847}{
ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-OKAY}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bff3941117dc276d1e10d7c66d35c54847}
}]Both present, AEM in error \index{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-ERR@{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-ERR}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-ERR@{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-ERR}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bf6f13773828f467c961ba976c6c2daa7b}{
ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-ERR}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bf6f13773828f467c961ba976c6c2daa7b}
}]Both present and in error \index{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-MISS@{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-MISS}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-MISS@{ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-MISS}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bfd77470b5c443edd556dd6574ca9df0e4}{
ASC\_\-SUMMARY\_\-AEM\_\-ERR\_\-\_\-GEM\_\-MISS}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bfd77470b5c443edd556dd6574ca9df0e4}
}]Only AEM present, but in error \index{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-OKAY@{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-OKAY}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-OKAY@{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-OKAY}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bf2d26a031b4690083c7bedc468bf219e8}{
ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-OKAY}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bf2d26a031b4690083c7bedc468bf219e8}
}]Only GEM present \index{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-ERR@{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-ERR}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-ERR@{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-ERR}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bfaec449e3817c8ec8f1f0884f53e72123}{
ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-ERR}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bfaec449e3817c8ec8f1f0884f53e72123}
}]Only GEM present, but in error \index{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-MISS@{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-MISS}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-MISS@{ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-MISS}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bf8d30fecb5f45af18d0380625734324ab}{
ASC\_\-SUMMARY\_\-AEM\_\-MISS\_\-GEM\_\-MISS}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bf8d30fecb5f45af18d0380625734324ab}
}]Both missing \index{ASC\_\-SUMMARY\_\-RSVD\_\-9@{ASC\_\-SUMMARY\_\-RSVD\_\-9}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-RSVD\_\-9@{ASC\_\-SUMMARY\_\-RSVD\_\-9}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bfd62a2390ccc99dc3e70d6941848b05f6}{
ASC\_\-SUMMARY\_\-RSVD\_\-9}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bfd62a2390ccc99dc3e70d6941848b05f6}
}]Reserved for future use \index{ASC\_\-SUMMARY\_\-RSVD\_\-10@{ASC\_\-SUMMARY\_\-RSVD\_\-10}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-RSVD\_\-10@{ASC\_\-SUMMARY\_\-RSVD\_\-10}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bfe6b7fdce54a4f37c95afe41f6e99aa72}{
ASC\_\-SUMMARY\_\-RSVD\_\-10}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bfe6b7fdce54a4f37c95afe41f6e99aa72}
}]Reserved for future use \index{ASC\_\-SUMMARY\_\-RSVD\_\-11@{ASC\_\-SUMMARY\_\-RSVD\_\-11}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-RSVD\_\-11@{ASC\_\-SUMMARY\_\-RSVD\_\-11}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bfac3636c1dbc7c7719fd1e11352297525}{
ASC\_\-SUMMARY\_\-RSVD\_\-11}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bfac3636c1dbc7c7719fd1e11352297525}
}]Reserved for future use \index{ASC\_\-SUMMARY\_\-RSVD\_\-12@{ASC\_\-SUMMARY\_\-RSVD\_\-12}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-RSVD\_\-12@{ASC\_\-SUMMARY\_\-RSVD\_\-12}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bf12a9cd98b6c734b074eb2f7f99f84d91}{
ASC\_\-SUMMARY\_\-RSVD\_\-12}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bf12a9cd98b6c734b074eb2f7f99f84d91}
}]Reserved for future use \index{ASC\_\-SUMMARY\_\-RSVD\_\-13@{ASC\_\-SUMMARY\_\-RSVD\_\-13}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-RSVD\_\-13@{ASC\_\-SUMMARY\_\-RSVD\_\-13}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bf77007c2e5e823be6484a53c96e3b425c}{
ASC\_\-SUMMARY\_\-RSVD\_\-13}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bf77007c2e5e823be6484a53c96e3b425c}
}]Reserved for future use \index{ASC\_\-SUMMARY\_\-RSVD\_\-14@{ASC\_\-SUMMARY\_\-RSVD\_\-14}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-RSVD\_\-14@{ASC\_\-SUMMARY\_\-RSVD\_\-14}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bf304e443ec42460919471040d33473a74}{
ASC\_\-SUMMARY\_\-RSVD\_\-14}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bf304e443ec42460919471040d33473a74}
}]Reserved for future use \index{ASC\_\-SUMMARY\_\-RSVD\_\-15@{ASC\_\-SUMMARY\_\-RSVD\_\-15}!ASC.h@{ASC.h}}\index{ASC.h@{ASC.h}!ASC\_\-SUMMARY\_\-RSVD\_\-15@{ASC\_\-SUMMARY\_\-RSVD\_\-15}}\item[{\em 
\hypertarget{ASC_8h_4ce65d509f67d2e9505502db706302bfe0d7253aae1befaeaff430c62a0b3488}{
ASC\_\-SUMMARY\_\-RSVD\_\-15}
\label{ASC_8h_4ce65d509f67d2e9505502db706302bfe0d7253aae1befaeaff430c62a0b3488}
}]Reserved for future use \end{description}
\end{Desc}



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


Accumulate the counters for the specified event. 

\begin{Desc}
\item[Returns:]Status indicating the event was successfully processed (0) or a non-zero number indicating the event was not successfully processed.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em counters}]Pointer to the counters to increment \item[{\em edata}]Pointer to the event data \item[{\em esize}]The event size, in units of bytes. This is used as a consistency check in the unpacking. \end{description}
\end{Desc}


References ASC\_\-accumulateU(), ASC\_\-aem\_\-locate(), ASC\_\-gem\_\-locate(), and unpack().\hypertarget{ASC_8h_c599bd40c55490659619288a7a5ec860}{
\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}void ASC\_\-clear ({\bf ASC\_\-counters} $\ast$ {\em counters})}}
\label{ASC_8h_c599bd40c55490659619288a7a5ec860}


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}


References clear().