GFC_cfg.h File Reference
Defines the interface to and data structure containing the parameters used in filtering gammas. This is just a front for the most current version.
More...
#include <EDS/EDS_tag.h>
#include <EFC_DB/EFC_DB_sampler.h>
#include <GFC_DB/GFC_DB_V3_schema.h>
#include <PBI/Endianness.h>
Detailed Description
Defines the interface to and data structure containing the parameters used in filtering gammas. This is just a front for the most current version.
- Author:
- JJRussell - russell@slac.stanford.edu
CVS $Id: GFC_cfg.h,v 1.4 2011/03/27 04:55:29 russell Exp $
- Overview
- The filter configuration consists of 2 major configuration blocks. The first controls the various criteria the filter uses when making its decision. The second block controls the sampling of the filter's output for monitoring purposes
- Parameter Block
- The most prevalent example of the first type are energy values that determine if a veto criteria can be used. For example, to avoid self-vetoing, certain ACD veto conditions are disabled when the observed energy is too high.
- Sampling Block
- In order to monitor the filter, a certain percentage of the events can be leaked from the filter. There are two distinct methods of doing this.
- Globally
- Individually
- Global Sampling
- Every n events the veto mask is set to 0. This effectively allows the filter to perform all its evaluations but prevents it from kicking out on any veto condition. This is a very simple way to get an unbiased sample.
- Individual
- This allows the filter to run normally, but each time an individual veto criteria is meet, a prescaler is decremented. When the prescaler reaches 0, the event is passed to the output stage, thus ignoring the reject decision of the filter.
- Arbitration
- The global sampling is always evaluated first.