Macro $AGEN
| GSI | Biophysics | SATAN long write-up |

$AGEN( anlid ) type(t) limits(l1,u1,...) bins(b1,b2,...) ncnd(cnd)

Purpose

Create an analyzer

Parameters

anlid

Analyzer name. The maximum length is 18 alphanumeric symbols (letters A .. Z, numbers 0 .. 9, at-sign @, dollar-sign $ and underscore _ ); the first character must be alphabetic. The name may have up to three subscripts defining the upper subscript bounds of an array of analyzers, the lower bounds are always = 1.

type(t)

Analyzer data type. If omitted, t=4.

limits(li,ui,...)

Lower and upper channel number limits of all analyzer dimensions 'i' (input valid condition). 'li' and 'ui' must lie between -32767 and 32767 inclusive. The number of dimensions is defined by the number of limit pairs (maximum 4). Defaults are 'li' = 1 and 'ui' = 1024.

bins(bi)

List of bin sizes for each dimension. Default: 'bi' = 1.

ncnd(c)

Number of analyzer conditions. Conditions are created as a pair of channel number limits for each analyzer dimension, initially set equal to the analyzer limits. They may be changed by the macro $ACDEF within the analysis program or interactively with the commands ACDEF, DSWI, and D2COND. Default is c=0.

Function

Remarks

With the exception of this macro and its corresponding command AGEN, subscripted analyzer names cannot be treated as arrays. Subcripts and their enclosing parantheses are parts of the analyzer name.

Examples

$AGEN(AN1) TYPE(0) NCND(5);
Create analyzer AN1 without spectrum and with 5 conditions.
$AGEN(M(5));
Create 5 analyzers M(1),...,M(5) with 4-byte spectra and without conditions.
$AGEN(Q) TYPE(4) LIMITS(0,127,0,255) BINS(1,2) NCND(3);
Create a two-dimensional analyzer Q of type 4 with 3 conditions.
| GSI | Biophysics | SATAN long write-up |
Last updated: M.Kraemer@gsi.de, 4-Aug-1999