\hypertarget{EFC_8c}{
\section{EFC.c File Reference}
\label{EFC_8c}\index{EFC.c@{EFC.c}}
}
Implementation of a wrapper for a generic filter.  


{\tt \#include $<$EFC\_\-DB/EFC\_\-DB\_\-schemaFilter.h$>$}\par
{\tt \#include $<$EFC\_\-DB/EFC\_\-DB\_\-sampler.h$>$}\par
{\tt \#include $<$EFC/EFC.h$>$}\par
{\tt \#include $<$EFC/EFA.h$>$}\par
{\tt \#include $<$EFA\_\-p.h$>$}\par
{\tt \#include $<$EFC/EFC\_\-samplerDef.h$>$}\par
{\tt \#include $<$EFC/EFC\_\-edsFw.h$>$}\par
{\tt \#include $<$EDS/EDS\_\-fwServices.h$>$}\par
{\tt \#include $<$EDS/EDS\_\-cfg.h$>$}\par
{\tt \#include $<$EDS/EBF\_\-siv.h$>$}\par
{\tt \#include $<$EFC/EFR\_\-key.h$>$}\par
{\tt \#include $<$CDM/CDM\_\-pubdefs.h$>$}\par
{\tt \#include $<$CAB/CAB\_\-lookupPub.h$>$}\par
{\tt \#include $<$PBI/FFS.ih$>$}\par
{\tt \#include $<$PBI/PTR.h$>$}\par
{\tt \#include $<$string.h$>$}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{struct__EFC__DB__generic__schema}{\_\-EFC\_\-DB\_\-generic\_\-schema}
\begin{CompactList}\small\item\em A generic configuration block. \item\end{CompactList}\item 
struct \hyperlink{struct__EFC__cfgDbMember}{\_\-EFC\_\-cfgDbMember}
\begin{CompactList}\small\item\em One database member. \item\end{CompactList}\item 
struct \hyperlink{struct__EFC__cfgDb}{\_\-EFC\_\-cfgDb}
\begin{CompactList}\small\item\em The database of bound the filter's bound sampler and configuration blocks. \item\end{CompactList}\item 
struct \hyperlink{struct__EFC__cfg}{\_\-EFC\_\-cfg}
\begin{CompactList}\small\item\em The configuration control structure. \item\end{CompactList}\item 
struct \hyperlink{struct__EFC}{\_\-EFC}
\begin{CompactList}\small\item\em The control structure for the filter framework. \item\end{CompactList}\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef struct \hyperlink{struct__EFC__DB__generic__schema}{\_\-EFC\_\-DB\_\-generic\_\-schema} \hyperlink{EFC_8c_d0ce71eda1f9a19be6ae3dcbc0c33684}{EFC\_\-DB\_\-generic\_\-schema}
\begin{CompactList}\small\item\em Typedef for struct \_\-EFC\_\-generic\_\-cfg. \item\end{CompactList}\item 
\hypertarget{EFC_8c_a5c54e873e0747964e632c31da59e297}{
typedef struct \hyperlink{struct__EFC__cfgDbMember}{\_\-EFC\_\-cfgDbMember} \hyperlink{EFC_8c_a5c54e873e0747964e632c31da59e297}{EFC\_\-cfgDbMember}}
\label{EFC_8c_a5c54e873e0747964e632c31da59e297}

\begin{CompactList}\small\item\em Typedef for struct \_\-EFCcfgDbMember. \item\end{CompactList}\item 
\hypertarget{EFC_8c_e5a20558efdfe992d3695b6055e08f48}{
typedef struct \hyperlink{struct__EFC__cfgDb}{\_\-EFC\_\-cfgDb} \hyperlink{EFC_8c_e5a20558efdfe992d3695b6055e08f48}{EFC\_\-cfgDb}}
\label{EFC_8c_e5a20558efdfe992d3695b6055e08f48}

\begin{CompactList}\small\item\em Typedef for struct \hyperlink{struct__EFC__cfgDb}{\_\-EFC\_\-cfgDb}. \item\end{CompactList}\item 
\hypertarget{EFC_8c_6ffe6a240ec1a8876c544170395ab70a}{
typedef struct \hyperlink{struct__EFC__cfg}{\_\-EFC\_\-cfg} \hyperlink{EFC_8c_6ffe6a240ec1a8876c544170395ab70a}{EFC\_\-cfg}}
\label{EFC_8c_6ffe6a240ec1a8876c544170395ab70a}

\begin{CompactList}\small\item\em Typedef for struct \hyperlink{struct__EFC__cfg}{\_\-EFC\_\-cfg}. \item\end{CompactList}\item 
\hypertarget{EFC_8c_6a1489e941ba61a81197a7bb4e0acbb1}{
typedef struct \hyperlink{struct__EFC}{\_\-EFC} \textbf{EFC}}
\label{EFC_8c_6a1489e941ba61a81197a7bb4e0acbb1}

\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
const EDS\_\-fwHandlerServicesX1 $\ast$ \hyperlink{EFC_8c_a6e36d61c9d797d438534d077f7db1b1}{construct\_\-efc} (\hyperlink{struct__EFC}{EFC} $\ast$efc, unsigned int id, const EFC\_\-DB\_\-SchemaFilter $\ast$schema, unsigned int schema\_\-key, void $\ast$prm, EDS\_\-fw $\ast$edsFw, const \hyperlink{struct__EFC__services}{EFC\_\-services} $\ast$services, const \hyperlink{struct__EFC__sizes}{EFC\_\-sizes} $\ast$sizes, const \hyperlink{struct__EFC__classes}{EFC\_\-classes} $\ast$classes, unsigned int objects, unsigned int needs)
\begin{CompactList}\small\item\em Resolves all the indirect references in the specified master configuration file and files in both the EFC control structure and the filter specific control structure. \item\end{CompactList}\item 
static \_\-\_\-inline void \hyperlink{EFC_8c_77d7b57a958bf5639c2281883b076864}{copyResult} (EDS\_\-rsdDsc $\ast$dsc, unsigned int $\ast$results, unsigned int flip)
\begin{CompactList}\small\item\em Copies the result vector into the result summary data descriptor. \item\end{CompactList}\item 
static \_\-\_\-inline unsigned int \hyperlink{EFC_8c_cc21bbc1e6b2c356cebfec30aa962bde}{getActive} (\hyperlink{struct__EFC__sampler}{EFC\_\-sampler} $\ast$sampler)
\begin{CompactList}\small\item\em Gets the active set of vetoes and passes bits for this event. \item\end{CompactList}\item 
static \_\-\_\-inline unsigned int \hyperlink{EFC_8c_4650a343e8ee5d9ca32f483a0ac30851}{updateDisabledPasses} (\hyperlink{struct__EFC__sampler}{EFC\_\-sampler} $\ast$sampler, unsigned int disabled\_\-passes, unsigned int status)
\begin{CompactList}\small\item\em Updates the list of disabled pass bits. \item\end{CompactList}\item 
int \hyperlink{EFC_8c_183c9e90fd095a775aea5cf0803986df}{updatePrescaler} (\hyperlink{struct__EFC__samplerPrescaleCounter}{EFC\_\-samplerPrescaleCounter} $\ast$prescaler)
\begin{CompactList}\small\item\em Updates the prescaler. \item\end{CompactList}\item 
static \_\-\_\-inline int \hyperlink{EFC_8c_4e6722d3418c1c1c02c67d74374bda7e}{if\_\-would\_\-have\_\-been\_\-vetoed} (int status, const \hyperlink{struct__EFC__classes}{EFC\_\-classes} $\ast$enabled)
\item 
static \_\-\_\-inline int \hyperlink{EFC_8c_3e2ee426c31015906d9cde78dc907f3c}{construct\_\-prescaler} (\hyperlink{struct__EFC__samplerPrescaleCounter}{EFC\_\-samplerPrescaleCounter} $\ast$prescaler, int refresh)
\begin{CompactList}\small\item\em Constructs a prescaler. \item\end{CompactList}\item 
static void \hyperlink{EFC_8c_9ef1d9b23bf20f722f3c75582061bba5}{construct\_\-sampler} (\hyperlink{struct__EFC__sampler}{EFC\_\-sampler} $\ast$sampler, const EFC\_\-DB\_\-sampler $\ast$db\_\-sampler, const \hyperlink{struct__EFC__classes}{EFC\_\-classes} $\ast$defined)
\begin{CompactList}\small\item\em Compiles/commits the set of user sampling parameters into the the configuration block. \item\end{CompactList}\item 
static int \hyperlink{EFC_8c_ed9e3cb6acea9517697bcc0f82dd0256}{efc\_\-flush} (\hyperlink{struct__EFC}{EFC} $\ast$efc, int reason)
\begin{CompactList}\small\item\em Currently just a call-through to EFA\_\-flush. \item\end{CompactList}\item 
static int \hyperlink{EFC_8c_b5a2bb5a73266cdab227b717b418e5b1}{efc\_\-result\_\-sizeof} (\hyperlink{struct__EFC}{EFC} $\ast$efc)
\begin{CompactList}\small\item\em Just a call-through to EFA\_\-resultSizeof. \item\end{CompactList}\item 
const EFC\_\-DB\_\-Schema $\ast$ \hyperlink{EFC_8c_76f5e9c4ebd55f4f31b9d1b944f5645b}{EFC\_\-lookup} (unsigned short int schema\_\-id, unsigned short int instance\_\-id)
\begin{CompactList}\small\item\em Looks up the CDM database associated with the specified {\em schema\_\-id\/} and {\em instance\_\-id\/}. \item\end{CompactList}\item 
const EDS\_\-fwHandlerServicesX1 $\ast$ \hyperlink{EFC_8c_075d6d48d7d52cba511ba996b7b42a5e}{EFC\_\-construct} (\hyperlink{struct__EFC}{EFC} $\ast$efc, unsigned int id, const EFC\_\-DB\_\-SchemaFilter $\ast$schema, unsigned int schema\_\-key, void $\ast$prm, EDS\_\-fw $\ast$edsFw, const \hyperlink{struct__EFC__definition}{EFC\_\-definition} $\ast$definition, unsigned int objects, unsigned int needs)
\begin{CompactList}\small\item\em Resolves all the indirect references in the specified master configuration file and files in both the EFC control structure and the filter specific control structure. This is merely a call-through to the general purpose constructor. \item\end{CompactList}\item 
void $\ast$ \hyperlink{EFC_8c_5c434ff77a1489251b5373e4f332ee18}{EFC\_\-get} (const \hyperlink{struct__EFC}{EFC} $\ast$efc, \hyperlink{EFC_8h_952095bf67328a415c698d75a047d779}{EFC\_\-OBJECT\_\-K} object)
\begin{CompactList}\small\item\em Returns a pointer to named object. \item\end{CompactList}\item 
int \hyperlink{EFC_8c_e1a8882ff3740b08c0b1546a44f66a49}{EFC\_\-set} (\hyperlink{struct__EFC}{EFC} $\ast$efc, \hyperlink{EFC_8h_952095bf67328a415c698d75a047d779}{EFC\_\-OBJECT\_\-K} object, void $\ast$value)
\begin{CompactList}\small\item\em Sets the named object to the specified value. This is primarily used for backdoor debugging. \item\end{CompactList}\item 
unsigned int \hyperlink{EFC_8c_ef79b0b8bfe6f47f86abb1505bb9d01a}{EFC\_\-objectsGet} (const \hyperlink{struct__EFC}{EFC} $\ast$efc)
\begin{CompactList}\small\item\em Returns the list of EDS framework objects needed by this filter. \item\end{CompactList}\item 
unsigned int \hyperlink{EFC_8c_276e7314316a9938f13d3cc3bf9d7ba5}{EFC\_\-needsGet} (const \hyperlink{struct__EFC}{EFC} $\ast$efc)
\begin{CompactList}\small\item\em Returns the list of EDS framework needs for this filter. \item\end{CompactList}\item 
int \hyperlink{EFC_8c_c38d3c5f5d28418ab41567e5674e7d91}{EFC\_\-modeAssociate} (\hyperlink{struct__EFC}{EFC} $\ast$efc, int mode, int configuration)
\begin{CompactList}\small\item\em Establish a new configuration to be associated with the indicated mode. \item\end{CompactList}\item 
int \hyperlink{EFC_8c_45d72fd21a77d5eb2a674501a6db12fa}{EFC\_\-modeSelect} (\hyperlink{struct__EFC}{EFC} $\ast$efc, int mode, EDS\_\-cfgInfo $\ast$info)
\begin{CompactList}\small\item\em Selects the operating environment according to the specified mode. \item\end{CompactList}\item 
int \hyperlink{EFC_8c_1507c8954f72ff6723ee3388dbc2cf16}{EFC\_\-start} (\hyperlink{struct__EFC}{EFC} $\ast$efc, unsigned int reason, unsigned int run\_\-id, unsigned int start\_\-time, unsigned int mode)
\begin{CompactList}\small\item\em EDS start run callback routine. \item\end{CompactList}\item 
int \hyperlink{EFC_8c_835e133395b5950f902163874fe946fb}{EFC\_\-sizeof} (const EFC\_\-DB\_\-SchemaFilter $\ast$schema, void $\ast$prm, const \hyperlink{struct__EFC__sizes}{EFC\_\-sizes} $\ast$sizes)
\begin{CompactList}\small\item\em Returns the size, in bytes, of the filter control structure and the associated configuration constants. \item\end{CompactList}\item 
void \hyperlink{EFC_8c_d800e70ce46cb344a0c29ae49a71b3f8}{EFC\_\-report} (\hyperlink{struct__EFC}{EFC} $\ast$efc, unsigned int list)
\begin{CompactList}\small\item\em Calls back the user to report on the configuration. \item\end{CompactList}\item 
int \hyperlink{EFC_8c_1cff848c7cc2311f2c4f3c3369e361b4}{EFC\_\-filter} (\hyperlink{struct__EFC}{EFC} $\ast$efc, unsigned int pktBytes, EBF\_\-pkt $\ast$pkt, EBF\_\-siv siv, EDS\_\-fwIxb $\ast$ixb, int id)
\begin{CompactList}\small\item\em Calls the filter function for each of the specified events. \item\end{CompactList}\item 
int \hyperlink{EFC_8c_0048fe3de1ec3afa33f5e44b7ca557af}{EFC\_\-destruct} (\hyperlink{struct__EFC}{EFC} $\ast$efc)
\begin{CompactList}\small\item\em Returns any resources garnered by EFC\_\-construct. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Implementation of a wrapper for a generic filter. 

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


\footnotesize\begin{verbatim}

   CVS $Id: EFC.c,v 1.25 2012/01/04 20:28:08 russell Exp $
\end{verbatim}
\normalsize


\begin{Desc}
\item[Overview]This is wrapper for the EDS\_\-fw framework layer, allowing one to register individual and modular filters. A filter in consists of\end{Desc}
\begin{enumerate}
\item A processing routine that takes as its arguments the set of arguments from of an EDS framework callback plus a veto mask and a result vector\item A set of callback routines to allocate an array of result vectors and to post the array all entries have been filled. The custumary use of this mechanism to compute and output summary statistics\end{enumerate}


\begin{Desc}
\item[Result Vector]This collection of routines makes only the following assumptions about a filter's result vector\end{Desc}
\begin{enumerate}
\item An array of them can be allocated via a user callback routine\item It has a fixed size, so that it can allocate the next one from the array\item When all elements of the result vector array are filled or when a flush routine is called, another user routine is called to post the array of now, presumably, filled result arrays. \end{enumerate}


\subsection{Typedef Documentation}
\hypertarget{EFC_8c_d0ce71eda1f9a19be6ae3dcbc0c33684}{
\index{EFC.c@{EFC.c}!EFC\_\-DB\_\-generic\_\-schema@{EFC\_\-DB\_\-generic\_\-schema}}
\index{EFC\_\-DB\_\-generic\_\-schema@{EFC\_\-DB\_\-generic\_\-schema}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-DB\_\-generic\_\-schema}]{\setlength{\rightskip}{0pt plus 5cm}{\bf EFC\_\-DB\_\-generic\_\-schema}}}
\label{EFC_8c_d0ce71eda1f9a19be6ae3dcbc0c33684}


Typedef for struct \_\-EFC\_\-generic\_\-cfg. 

This is used to locate the specific EFC filter parameters. 

\subsection{Function Documentation}
\hypertarget{EFC_8c_a6e36d61c9d797d438534d077f7db1b1}{
\index{EFC.c@{EFC.c}!construct\_\-efc@{construct\_\-efc}}
\index{construct\_\-efc@{construct\_\-efc}!EFC.c@{EFC.c}}
\subsubsection[{construct\_\-efc}]{\setlength{\rightskip}{0pt plus 5cm}const EDS\_\-fwHandlerServicesX1 $\ast$ construct\_\-efc ({\bf EFC} $\ast$ {\em efc}, \/  unsigned int {\em id}, \/  const EFC\_\-DB\_\-SchemaFilter $\ast$ {\em schema}, \/  unsigned int {\em schema\_\-key}, \/  void $\ast$ {\em prm}, \/  EDS\_\-fw $\ast$ {\em edsFw}, \/  const {\bf EFC\_\-services} $\ast$ {\em services}, \/  const {\bf EFC\_\-sizes} $\ast$ {\em sizes}, \/  const {\bf EFC\_\-classes} $\ast$ {\em classes}, \/  unsigned int {\em objects}, \/  unsigned int {\em needs})}}
\label{EFC_8c_a6e36d61c9d797d438534d077f7db1b1}


Resolves all the indirect references in the specified master configuration file and files in both the EFC control structure and the filter specific control structure. 

\begin{Desc}
\item[Returns:]A pointer to the service vector of routines\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The Event Filter Control block to initialize \item[{\em id}]A unique identifier to assign to this EFC handler \item[{\em schema}]Pointer to the schema of the filter configuration file \item[{\em schema\_\-key}]The schema's file resolution key \item[{\em prm}]An optional, modifying parameter \item[{\em edsFw}]The controlling EDS framework handle \item[{\em sizes}]The sizes of the various components of this filter \item[{\em services}]The standard set of EFC services \item[{\em classes}]The status word classes (sets of bits giving the vetoes, passes, etc.) \item[{\em objects}]The list of EDS framework objects used by this filter \item[{\em needs}]The list of EDS needs for this filter.\end{description}
\end{Desc}
\begin{Desc}
\item[]The schema pertains to an instantiation of a filter. Each filter is described by 3 relevant pieces of information\end{Desc}
\begin{enumerate}
\item A set of global information. This includes\begin{itemize}
\item The primary schema ID of the filter itself. All filter configurations will be accessed using this ID and an instance number.\item A count of the number of configurations defined for this filter.\item A string, giving the name of the routine to get the filter service vector\end{itemize}
\item An array (dimensioned by the count indicated above) giving the instance ID of each configuration\item An array indicating which configuration (from the array configurations), will be used in each of 8 possible modes\end{enumerate}


\begin{Desc}
\item[]After locating the service vector, each configuration is constructed and the mapping of mode to configuration is resolved. \end{Desc}


References \_\-EFC\_\-cfg::byMode, \_\-EFC\_\-sizes::cfg, \_\-EFC::cfg, \_\-EFC\_\-services::cfg\_\-set, \_\-EFC::cfgSetRtn, \_\-EFC\_\-services::construct, construct\_\-sampler(), \_\-EFC\_\-sizes::ctl, \_\-EFC\_\-cfg::db, \_\-EFC::disabled\_\-passes, EFC\_\-edsFwObjectsAdd(), EFC\_\-filter(), efc\_\-flush(), EFC\_\-modeAssociate(), EFC\_\-modeSelect(), EFC\_\-needsGet(), EFC\_\-objectsGet(), efc\_\-result\_\-sizeof(), EFC\_\-start(), EFR\_\-keyGet(), \_\-EFC\_\-services::filter, \_\-EFC::filterPrm, \_\-EFC::filterRtn, \_\-EFC::id, \_\-EFC\_\-cfgDbMember::idx, \_\-EFC\_\-cfgDbMember::key, \_\-EFC::key, \_\-EFC\_\-cfgDb::members, \_\-EFC::needs, \_\-EFC::needs\_\-leaked, \_\-EFC::needs\_\-normal, \_\-EFC::objects, \_\-EFC\_\-cfgDbMember::prms, \_\-EFC\_\-services::report, \_\-EFC::reportRtn, \_\-EFC::rsdSize, \_\-EFC\_\-DB\_\-generic\_\-schema::sampler, \_\-EFC::sampler, and \_\-EFC\_\-cfgDb::valid.

Referenced by EFC\_\-construct().\hypertarget{EFC_8c_3e2ee426c31015906d9cde78dc907f3c}{
\index{EFC.c@{EFC.c}!construct\_\-prescaler@{construct\_\-prescaler}}
\index{construct\_\-prescaler@{construct\_\-prescaler}!EFC.c@{EFC.c}}
\subsubsection[{construct\_\-prescaler}]{\setlength{\rightskip}{0pt plus 5cm}static \_\-\_\-inline int construct\_\-prescaler ({\bf EFC\_\-samplerPrescaleCounter} $\ast$ {\em prescaler}, \/  int {\em refresh})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{EFC_8c_3e2ee426c31015906d9cde78dc907f3c}


Constructs a prescaler. 

\begin{Desc}
\item[Returns:]Non-zero if this is an active prescaler\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em prescaler}]The prescaler to configure \item[{\em refresh}]The refresh value \end{description}
\end{Desc}


References \_\-EFC\_\-samplerPrescaleCounter::countdown, and \_\-EFC\_\-samplerPrescaleCounter::refresh.

Referenced by construct\_\-sampler().\hypertarget{EFC_8c_9ef1d9b23bf20f722f3c75582061bba5}{
\index{EFC.c@{EFC.c}!construct\_\-sampler@{construct\_\-sampler}}
\index{construct\_\-sampler@{construct\_\-sampler}!EFC.c@{EFC.c}}
\subsubsection[{construct\_\-sampler}]{\setlength{\rightskip}{0pt plus 5cm}static void construct\_\-sampler ({\bf EFC\_\-sampler} $\ast$ {\em sampler}, \/  const EFC\_\-DB\_\-sampler $\ast$ {\em db\_\-sampler}, \/  const {\bf EFC\_\-classes} $\ast$ {\em classes})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{EFC_8c_9ef1d9b23bf20f722f3c75582061bba5}


Compiles/commits the set of user sampling parameters into the the configuration block. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em sampler}]The destination parameter sampler block \item[{\em db\_\-sampler}]The set of user defined sampling parameters \item[{\em classes}]The bit list defining the various sets (classes) e.g. vetoes, passes, etc \end{description}
\end{Desc}


References \_\-EFC\_\-classes::all, \_\-EFC\_\-sampler::classes, construct\_\-prescaler(), \_\-EFC\_\-samplerClasses::defined, \_\-EFC\_\-samplerPrescaleCtx::enabled, \_\-EFC\_\-samplerClasses::enabled, \_\-EFC\_\-samplerPrescaleCtx::in, \_\-EFC\_\-classes::info, \_\-EFC\_\-samplerPrescaleCtx::out, \_\-EFC\_\-classes::passes, \_\-EFC\_\-sampler::prescale, \_\-EFC\_\-samplerPrescaleCtx::prescalers, and \_\-EFC\_\-classes::vetoes.

Referenced by construct\_\-efc().\hypertarget{EFC_8c_77d7b57a958bf5639c2281883b076864}{
\index{EFC.c@{EFC.c}!copyResult@{copyResult}}
\index{copyResult@{copyResult}!EFC.c@{EFC.c}}
\subsubsection[{copyResult}]{\setlength{\rightskip}{0pt plus 5cm}static \_\-\_\-inline void copyResult (EDS\_\-rsdDsc $\ast$ {\em dsc}, \/  unsigned int $\ast$ {\em results}, \/  unsigned int {\em flip})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{EFC_8c_77d7b57a958bf5639c2281883b076864}


Copies the result vector into the result summary data descriptor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em dsc}]The destination descriptor \item[{\em results}]The result descriptor \item[{\em flip}]Bits to flip in the first (status) word \end{description}
\end{Desc}


Referenced by EFC\_\-filter().\hypertarget{EFC_8c_075d6d48d7d52cba511ba996b7b42a5e}{
\index{EFC.c@{EFC.c}!EFC\_\-construct@{EFC\_\-construct}}
\index{EFC\_\-construct@{EFC\_\-construct}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-construct}]{\setlength{\rightskip}{0pt plus 5cm}const EDS\_\-fwHandlerServicesX1$\ast$ EFC\_\-construct ({\bf EFC} $\ast$ {\em efc}, \/  unsigned int {\em id}, \/  const EFC\_\-DB\_\-SchemaFilter $\ast$ {\em schema}, \/  unsigned int {\em schema\_\-key}, \/  void $\ast$ {\em prm}, \/  EDS\_\-fw $\ast$ {\em edsFw}, \/  const {\bf EFC\_\-definition} $\ast$ {\em definition}, \/  unsigned int {\em objects}, \/  unsigned int {\em needs})}}
\label{EFC_8c_075d6d48d7d52cba511ba996b7b42a5e}


Resolves all the indirect references in the specified master configuration file and files in both the EFC control structure and the filter specific control structure. This is merely a call-through to the general purpose constructor. 

\begin{Desc}
\item[Returns:]A pointer to the service vector of routines\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The Event Filter Control block to initialize \item[{\em id}]A unique identifier to assign to this EFC handler \item[{\em schema}]Pointer to the schema of the filter configuration file \item[{\em schema\_\-key}]The schema's file resolution key \item[{\em prm}]An optional, modifying parameter \item[{\em edsFw}]The controlling EDS framework handle \item[{\em definition}]The defining information for this filter \item[{\em objects}]The list of EDS framework objects used by this filter \item[{\em needs}]The list of EDS needs for this filter. \end{description}
\end{Desc}


References \_\-EFC\_\-definition::classes, construct\_\-efc(), \_\-EFC\_\-definition::services, and \_\-EFC\_\-definition::sizes.

Referenced by EFC\_\-stdConstruct().\hypertarget{EFC_8c_0048fe3de1ec3afa33f5e44b7ca557af}{
\index{EFC.c@{EFC.c}!EFC\_\-destruct@{EFC\_\-destruct}}
\index{EFC\_\-destruct@{EFC\_\-destruct}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-destruct}]{\setlength{\rightskip}{0pt plus 5cm}int EFC\_\-destruct ({\bf EFC} $\ast$ {\em efc})}}
\label{EFC_8c_0048fe3de1ec3afa33f5e44b7ca557af}


Returns any resources garnered by EFC\_\-construct. 

\begin{Desc}
\item[Returns:]Status\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The event filter control structure to destroy \end{description}
\end{Desc}
\hypertarget{EFC_8c_1cff848c7cc2311f2c4f3c3369e361b4}{
\index{EFC.c@{EFC.c}!EFC\_\-filter@{EFC\_\-filter}}
\index{EFC\_\-filter@{EFC\_\-filter}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-filter}]{\setlength{\rightskip}{0pt plus 5cm}int EFC\_\-filter ({\bf EFC} $\ast$ {\em efc}, \/  unsigned int {\em pktBytes}, \/  EBF\_\-pkt $\ast$ {\em pkt}, \/  EBF\_\-siv {\em siv}, \/  EDS\_\-fwIxb $\ast$ {\em ixb}, \/  int {\em id})}}
\label{EFC_8c_1cff848c7cc2311f2c4f3c3369e361b4}


Calls the filter function for each of the specified events. 

\begin{Desc}
\item[Returns:]Status\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The event filter control structure \item[{\em pktBytes}]The number bytes in this packet \item[{\em pkt}]The event packet \item[{\em siv}]The state information vector \item[{\em ixb}]The Information Exchange Block \item[{\em id}]The identification of this handler\end{description}
\end{Desc}
\begin{Desc}
\item[]The user will likely not call this routine directly, but use it as the EDS\_\-fw callback routine. The parameter will be the EFC control structure. \end{Desc}


References \_\-EFC::active, \_\-EFC\_\-sampler::classes, copyResult(), \_\-EFA::cur, \_\-EFC::disabled\_\-passes, \_\-EFC::efa, EFA\_\-\_\-preprocess(), EFA\_\-postprocess(), EFA\_\-STATE\_\-K\_\-STARTED, EFC\_\-\_\-fateIsAccepted(), EFC\_\-\_\-fateIsUndecided(), \_\-EFC\_\-samplerPrescaleCtx::enabled, \_\-EFC\_\-samplerClasses::enabled, \_\-EFC::filterPrm, \_\-EFC::filterRtn, getActive(), \_\-EFC::ievt, if\_\-would\_\-have\_\-been\_\-vetoed(), \_\-EFC\_\-samplerPrescaleCtx::in, \_\-EFC::needs\_\-leaked, \_\-EFC::needs\_\-normal, \_\-EFC\_\-samplerPrescaleCtx::out, \_\-EFA::postLeft, \_\-EFC\_\-sampler::prescale, \_\-EFC\_\-samplerPrescaleCtx::prescalers, \_\-EFC::sampler, \_\-EFA::size, \_\-EFA::state, updateDisabledPasses(), updatePrescaler(), and \_\-EFC\_\-classes::vetoes.

Referenced by construct\_\-efc().\hypertarget{EFC_8c_ed9e3cb6acea9517697bcc0f82dd0256}{
\index{EFC.c@{EFC.c}!efc\_\-flush@{efc\_\-flush}}
\index{efc\_\-flush@{efc\_\-flush}!EFC.c@{EFC.c}}
\subsubsection[{efc\_\-flush}]{\setlength{\rightskip}{0pt plus 5cm}static int efc\_\-flush ({\bf EFC} $\ast$ {\em efc}, \/  int {\em reason})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{EFC_8c_ed9e3cb6acea9517697bcc0f82dd0256}


Currently just a call-through to EFA\_\-flush. 

\begin{Desc}
\item[Returns:]Status\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The Event Filter Control block \item[{\em reason}]The flush reason \end{description}
\end{Desc}


References \_\-EFC::efa, and EFA\_\-flush().

Referenced by construct\_\-efc().\hypertarget{EFC_8c_5c434ff77a1489251b5373e4f332ee18}{
\index{EFC.c@{EFC.c}!EFC\_\-get@{EFC\_\-get}}
\index{EFC\_\-get@{EFC\_\-get}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}void$\ast$ EFC\_\-get (const {\bf EFC} $\ast$ {\em efc}, \/  {\bf EFC\_\-OBJECT\_\-K} {\em object})}}
\label{EFC_8c_5c434ff77a1489251b5373e4f332ee18}


Returns a pointer to named object. 

\begin{Desc}
\item[Returns:]Pointer to the named object, or NULL if the object is non-existent\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The Event Filter handle \item[{\em object}]The object to get. This is one of the following set\begin{itemize}
\item EFC\_\-OBJECT\_\-K\_\-MODE\item EFC\_\-OBJECT\_\-K\_\-FILTER\_\-RTN\item EFC\_\-OBJECT\_\-K\_\-FILTER\_\-PRM\item EFC\_\-OBJECT\_\-K\_\-CFGSET\_\-RTN\item EFC\_\-OBJECT\_\-K\_\-REPORT\_\-RTN\item EFC\_\-OBJECT\_\-K\_\-SAMPLER\item EFC\_\-OBJECT\_\-K\_\-EFA\item EFC\_\-OBJECT\_\-K\_\-ID \end{itemize}
\end{description}
\end{Desc}


References \_\-EFC::cfgSetRtn, \_\-EFC::efa, EFC\_\-OBJECT\_\-K\_\-CFGSET\_\-RTN, EFC\_\-OBJECT\_\-K\_\-EFA, EFC\_\-OBJECT\_\-K\_\-FILTER\_\-PRM, EFC\_\-OBJECT\_\-K\_\-FILTER\_\-RTN, EFC\_\-OBJECT\_\-K\_\-ID, EFC\_\-OBJECT\_\-K\_\-MODE, EFC\_\-OBJECT\_\-K\_\-REPORT\_\-RTN, EFC\_\-OBJECT\_\-K\_\-SAMPLER, \_\-EFC::filterPrm, \_\-EFC::filterRtn, \_\-EFC::id, \_\-EFC::mode, \_\-EFC::reportRtn, and \_\-EFC::sampler.

Referenced by EFC\_\-stdConstruct().\hypertarget{EFC_8c_76f5e9c4ebd55f4f31b9d1b944f5645b}{
\index{EFC.c@{EFC.c}!EFC\_\-lookup@{EFC\_\-lookup}}
\index{EFC\_\-lookup@{EFC\_\-lookup}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-lookup}]{\setlength{\rightskip}{0pt plus 5cm}const EFC\_\-DB\_\-Schema$\ast$ EFC\_\-lookup (unsigned short int {\em schema\_\-id}, \/  unsigned short int {\em instance\_\-id})}}
\label{EFC_8c_76f5e9c4ebd55f4f31b9d1b944f5645b}


Looks up the CDM database associated with the specified {\em schema\_\-id\/} and {\em instance\_\-id\/}. 

\begin{Desc}
\item[Returns:]A pointer to the filter schema. If not found NULL.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em schema\_\-id}]The schema id of the filter's configuration database \item[{\em instance\_\-id}]The instance id of the filter's configuratin database \end{description}
\end{Desc}
\hypertarget{EFC_8c_c38d3c5f5d28418ab41567e5674e7d91}{
\index{EFC.c@{EFC.c}!EFC\_\-modeAssociate@{EFC\_\-modeAssociate}}
\index{EFC\_\-modeAssociate@{EFC\_\-modeAssociate}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-modeAssociate}]{\setlength{\rightskip}{0pt plus 5cm}int EFC\_\-modeAssociate ({\bf EFC} $\ast$ {\em efc}, \/  int {\em mode}, \/  int {\em configuration})}}
\label{EFC_8c_c38d3c5f5d28418ab41567e5674e7d91}


Establish a new configuration to be associated with the indicated mode. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em The}]old association\end{description}
\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The EFC control context \item[{\em mode}]The mode, must be 0-7 \item[{\em configuration}]One of the active configurations. This number is the index that the configurations where defined\end{description}
\end{Desc}
\begin{Desc}
\item[]Because this command is not given during data-taking, ff the mode being specified is the current mode, this routine does not change the current operating configuration. \end{Desc}


References \_\-EFC\_\-cfg::byMode, \_\-EFC::cfg, \_\-EFC\_\-cfg::db, \_\-EFC\_\-cfgDb::members, and \_\-EFC\_\-cfgDb::valid.

Referenced by construct\_\-efc().\hypertarget{EFC_8c_45d72fd21a77d5eb2a674501a6db12fa}{
\index{EFC.c@{EFC.c}!EFC\_\-modeSelect@{EFC\_\-modeSelect}}
\index{EFC\_\-modeSelect@{EFC\_\-modeSelect}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-modeSelect}]{\setlength{\rightskip}{0pt plus 5cm}int EFC\_\-modeSelect ({\bf EFC} $\ast$ {\em efc}, \/  int {\em mode}, \/  EDS\_\-cfgInfo $\ast$ {\em info})}}
\label{EFC_8c_45d72fd21a77d5eb2a674501a6db12fa}


Selects the operating environment according to the specified mode. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em ==0,success}]\item[{\em !=1,failure}]\end{description}
\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The EFC control context \item[{\em mode}]The new mode, must be 0-7 \item[{\em info}]Returned with information about the newly selected configuration \end{description}
\end{Desc}


References \_\-EFC\_\-cfg::byMode, \_\-EFC::cfg, \_\-EFC::cfgSetRtn, \_\-EFC\_\-cfg::db, \_\-EFC::efa, EFA\_\-notify(), \_\-EFC::filterPrm, \_\-EFC::id, \_\-EFC\_\-cfgDbMember::idx, \_\-EFC::key, \_\-EFC\_\-cfgDbMember::key, \_\-EFC\_\-cfgDb::members, \_\-EFC::mode, \_\-EFC\_\-cfgDbMember::prms, \_\-EFC\_\-cfgDbMember::sampler, and \_\-EFC::sampler.

Referenced by construct\_\-efc().\hypertarget{EFC_8c_276e7314316a9938f13d3cc3bf9d7ba5}{
\index{EFC.c@{EFC.c}!EFC\_\-needsGet@{EFC\_\-needsGet}}
\index{EFC\_\-needsGet@{EFC\_\-needsGet}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-needsGet}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int EFC\_\-needsGet (const {\bf EFC} $\ast$ {\em efc})}}
\label{EFC_8c_276e7314316a9938f13d3cc3bf9d7ba5}


Returns the list of EDS framework needs for this filter. 

\begin{Desc}
\item[Returns:]The list of EDS framework needs for this filter\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The EFC control context \end{description}
\end{Desc}


References \_\-EFC::needs.

Referenced by construct\_\-efc().\hypertarget{EFC_8c_ef79b0b8bfe6f47f86abb1505bb9d01a}{
\index{EFC.c@{EFC.c}!EFC\_\-objectsGet@{EFC\_\-objectsGet}}
\index{EFC\_\-objectsGet@{EFC\_\-objectsGet}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-objectsGet}]{\setlength{\rightskip}{0pt plus 5cm}unsigned int EFC\_\-objectsGet (const {\bf EFC} $\ast$ {\em efc})}}
\label{EFC_8c_ef79b0b8bfe6f47f86abb1505bb9d01a}


Returns the list of EDS framework objects needed by this filter. 

\begin{Desc}
\item[Returns:]The list of EDS framework objects needed by this filter\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The EFC control context \end{description}
\end{Desc}


References \_\-EFC::objects.

Referenced by construct\_\-efc().\hypertarget{EFC_8c_d800e70ce46cb344a0c29ae49a71b3f8}{
\index{EFC.c@{EFC.c}!EFC\_\-report@{EFC\_\-report}}
\index{EFC\_\-report@{EFC\_\-report}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-report}]{\setlength{\rightskip}{0pt plus 5cm}void EFC\_\-report ({\bf EFC} $\ast$ {\em efc}, \/  unsigned int {\em list})}}
\label{EFC_8c_d800e70ce46cb344a0c29ae49a71b3f8}


Calls back the user to report on the configuration. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The Event Filter Control Block \item[{\em list}]The bit list of which ones to report on. If 0, then report only on the current one \end{description}
\end{Desc}


References \_\-EFC::cfg, \_\-EFC\_\-cfg::db, \_\-EFC\_\-cfgDb::members, \_\-EFC::mode, \_\-EFC\_\-cfgDbMember::prms, \_\-EFC::reportRtn, \_\-EFC::sampler, \_\-EFC\_\-cfgDbMember::sampler, and \_\-EFC\_\-cfgDb::valid.\hypertarget{EFC_8c_b5a2bb5a73266cdab227b717b418e5b1}{
\index{EFC.c@{EFC.c}!efc\_\-result\_\-sizeof@{efc\_\-result\_\-sizeof}}
\index{efc\_\-result\_\-sizeof@{efc\_\-result\_\-sizeof}!EFC.c@{EFC.c}}
\subsubsection[{efc\_\-result\_\-sizeof}]{\setlength{\rightskip}{0pt plus 5cm}static int efc\_\-result\_\-sizeof ({\bf EFC} $\ast$ {\em efc})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{EFC_8c_b5a2bb5a73266cdab227b717b418e5b1}


Just a call-through to EFA\_\-resultSizeof. 

\begin{Desc}
\item[Returns:]The sizeof on result vector\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The Event Filter Control block \end{description}
\end{Desc}


References \_\-EFC::efa, EFA\_\-resultSizeof(), and \_\-EFC::rsdSize.

Referenced by construct\_\-efc().\hypertarget{EFC_8c_e1a8882ff3740b08c0b1546a44f66a49}{
\index{EFC.c@{EFC.c}!EFC\_\-set@{EFC\_\-set}}
\index{EFC\_\-set@{EFC\_\-set}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}int EFC\_\-set ({\bf EFC} $\ast$ {\em efc}, \/  {\bf EFC\_\-OBJECT\_\-K} {\em object}, \/  void $\ast$ {\em value})}}
\label{EFC_8c_e1a8882ff3740b08c0b1546a44f66a49}


Sets the named object to the specified value. This is primarily used for backdoor debugging. 

\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em 0,Named}]object is settable \item[{\em -1,Named}]object is not setteable\end{description}
\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The Event Filter handle \item[{\em object}]The object to set. The following objects are supported EFC\_\-OBJECT\_\-K\_\-MODE EFC\_\-OBJECT\_\-K\_\-FILTER\_\-RTN EFC\_\-OBJECT\_\-K\_\-FILTER\_\-PRM EFC\_\-OBJECT\_\-K\_\-CFGSET\_\-RTN EFC\_\-OBJECT\_\-K\_\-REPORT\_\-RTN \item[{\em value}]The new value \end{description}
\end{Desc}


References \_\-EFC::cfgSetRtn, EFC\_\-OBJECT\_\-K\_\-CFGSET\_\-RTN, EFC\_\-OBJECT\_\-K\_\-FILTER\_\-PRM, EFC\_\-OBJECT\_\-K\_\-FILTER\_\-RTN, EFC\_\-OBJECT\_\-K\_\-MODE, EFC\_\-OBJECT\_\-K\_\-REPORT\_\-RTN, \_\-EFC::filterPrm, \_\-EFC::filterRtn, \_\-EFC::mode, and \_\-EFC::reportRtn.\hypertarget{EFC_8c_835e133395b5950f902163874fe946fb}{
\index{EFC.c@{EFC.c}!EFC\_\-sizeof@{EFC\_\-sizeof}}
\index{EFC\_\-sizeof@{EFC\_\-sizeof}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-sizeof}]{\setlength{\rightskip}{0pt plus 5cm}int EFC\_\-sizeof (const EFC\_\-DB\_\-SchemaFilter $\ast$ {\em schema}, \/  void $\ast$ {\em prm}, \/  const {\bf EFC\_\-sizes} $\ast$ {\em sizes})}}
\label{EFC_8c_835e133395b5950f902163874fe946fb}


Returns the size, in bytes, of the filter control structure and the associated configuration constants. 

\begin{Desc}
\item[Returns:]The size, in bytes, of the filter control structure and the associated configuration constants.\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em schema}]Pointer to the schema of the filter configuration file \item[{\em prm}]An optional, modifying parameter \item[{\em sizes}]The sizes of the filter's various blocks\end{description}
\end{Desc}
\begin{Desc}
\item[Warning:]This is a usually a good sized object so use an appropriate allocator. \end{Desc}


References \_\-EFC\_\-sizes::cfg, and \_\-EFC\_\-sizes::ctl.

Referenced by EFC\_\-stdConstruct(), and EFC\_\-stdSizeof().\hypertarget{EFC_8c_1507c8954f72ff6723ee3388dbc2cf16}{
\index{EFC.c@{EFC.c}!EFC\_\-start@{EFC\_\-start}}
\index{EFC\_\-start@{EFC\_\-start}!EFC.c@{EFC.c}}
\subsubsection[{EFC\_\-start}]{\setlength{\rightskip}{0pt plus 5cm}int EFC\_\-start ({\bf EFC} $\ast$ {\em efc}, \/  unsigned int {\em reason}, \/  unsigned int {\em run\_\-id}, \/  unsigned int {\em start\_\-time}, \/  unsigned int {\em mode})}}
\label{EFC_8c_1507c8954f72ff6723ee3388dbc2cf16}


EDS start run callback routine. 

\begin{Desc}
\item[Returns:]Status\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em efc}]The event filter control handle \item[{\em reason}]Suggested use is to indicate why the post stream is being started \item[{\em run\_\-id}]Suggested use is to identify the block of events between when EDS\_\-fwStart is called and EDS\_\-fwFlush is called with a stop reason \item[{\em start\_\-time}]The run start time rounded to the nearest second \item[{\em mode}]This must be the running mode. Note that a call to EDS\_\-selectMode still must be done. \end{description}
\end{Desc}


References \_\-EFC::efa, and EFA\_\-start().

Referenced by construct\_\-efc().\hypertarget{EFC_8c_cc21bbc1e6b2c356cebfec30aa962bde}{
\index{EFC.c@{EFC.c}!getActive@{getActive}}
\index{getActive@{getActive}!EFC.c@{EFC.c}}
\subsubsection[{getActive}]{\setlength{\rightskip}{0pt plus 5cm}static \_\-\_\-inline unsigned int getActive ({\bf EFC\_\-sampler} $\ast$ {\em sampler})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{EFC_8c_cc21bbc1e6b2c356cebfec30aa962bde}


Gets the active set of vetoes and passes bits for this event. 

\begin{Desc}
\item[Returns:]The active set of vetoes and passes bits for this event\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em sampler}]The prescale/sampling structure \end{description}
\end{Desc}


References \_\-EFC::active, \_\-EFC\_\-classes::all, \_\-EFC\_\-sampler::classes, \_\-EFC\_\-samplerPrescaleCounter::countdown, \_\-EFC\_\-samplerClasses::enabled, \_\-EFC\_\-sampler::prescale, \_\-EFC\_\-samplerPrescaleCtx::prescalers, and \_\-EFC\_\-samplerPrescaleCounter::refresh.

Referenced by EFC\_\-filter().\hypertarget{EFC_8c_4e6722d3418c1c1c02c67d74374bda7e}{
\index{EFC.c@{EFC.c}!if\_\-would\_\-have\_\-been\_\-vetoed@{if\_\-would\_\-have\_\-been\_\-vetoed}}
\index{if\_\-would\_\-have\_\-been\_\-vetoed@{if\_\-would\_\-have\_\-been\_\-vetoed}!EFC.c@{EFC.c}}
\subsubsection[{if\_\-would\_\-have\_\-been\_\-vetoed}]{\setlength{\rightskip}{0pt plus 5cm}static \_\-\_\-inline int if\_\-would\_\-have\_\-been\_\-vetoed (int {\em status}, \/  const {\bf EFC\_\-classes} $\ast$ {\em enabled})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{EFC_8c_4e6722d3418c1c1c02c67d74374bda7e}


\begin{Desc}
\item[Return values:]
\begin{description}
\item[{\em ==0,if}]the status indicates the event normally would {\bf not} have been vetoed \item[{\em !=0,if}]the status indicates the event normally would have been vetoed\end{description}
\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em status}]The filter status word \item[{\em enabled}]The enabled classes (vetoed, passes are all that is important.\end{description}
\end{Desc}
This function is called in the case when the active veto mask was set to 0. In this case, a filter will {\bf always} run to completion and the overall veto bit (the MSB) will be 0 in this case. However, in order to be consistent with other prescale leakage, the state of the overall veto bit must be determined as if the veto mask was its nominal value. This ensures that the status byte (state) of the event is properly recorded as LEAKED or PASSED. 

References \_\-EFC\_\-classes::passes, and \_\-EFC\_\-classes::vetoes.

Referenced by EFC\_\-filter().\hypertarget{EFC_8c_4650a343e8ee5d9ca32f483a0ac30851}{
\index{EFC.c@{EFC.c}!updateDisabledPasses@{updateDisabledPasses}}
\index{updateDisabledPasses@{updateDisabledPasses}!EFC.c@{EFC.c}}
\subsubsection[{updateDisabledPasses}]{\setlength{\rightskip}{0pt plus 5cm}static \_\-\_\-inline unsigned int updateDisabledPasses ({\bf EFC\_\-sampler} $\ast$ {\em sampler}, \/  unsigned int {\em disabled\_\-passes}, \/  unsigned int {\em status})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{EFC_8c_4650a343e8ee5d9ca32f483a0ac30851}


Updates the list of disabled pass bits. 

\begin{Desc}
\item[Returns:]The updated list\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em sampler}]The sampler \item[{\em disabled\_\-passes}]The list of currently disabled passes \item[{\em status}]The status bits \end{description}
\end{Desc}


References \_\-EFC\_\-samplerPrescaleCounter::countdown, \_\-EFC\_\-samplerPrescaleCtx::enabled, \_\-EFC\_\-classes::passes, \_\-EFC\_\-sampler::prescale, \_\-EFC\_\-samplerPrescaleCtx::prescalers, and \_\-EFC\_\-samplerPrescaleCounter::refresh.

Referenced by EFC\_\-filter().\hypertarget{EFC_8c_183c9e90fd095a775aea5cf0803986df}{
\index{EFC.c@{EFC.c}!updatePrescaler@{updatePrescaler}}
\index{updatePrescaler@{updatePrescaler}!EFC.c@{EFC.c}}
\subsubsection[{updatePrescaler}]{\setlength{\rightskip}{0pt plus 5cm}int updatePrescaler ({\bf EFC\_\-samplerPrescaleCounter} $\ast$ {\em prescaler})}}
\label{EFC_8c_183c9e90fd095a775aea5cf0803986df}


Updates the prescaler. 

\begin{Desc}
\item[Returns:]The current prescale count\end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em prescaler}]The prescaler to update \end{description}
\end{Desc}


References \_\-EFC\_\-samplerPrescaleCounter::countdown, and \_\-EFC\_\-samplerPrescaleCounter::refresh.

Referenced by EFC\_\-filter().