Macro $ANAL
| GSI
| Biophysics
| SATAN long write-up
|
Purpose
Analyze input data using an analyzer
Parameters
anlid
-
Analyzer name.
If subscripted, only the specified single analyzer is affected.
vali
-
Input values to the analyzer for each dimension
i
.
vali
may be any arithmetic expression.
incr(w)
-
Accumulation increment. If omitted, an increment of 1
is assumed.
w
may be any arithmetic expression.
noaccu
-
No accumulation of events. Only the conditions are checked,
e.g. for use of the macro
$AC
.
nocheck
-
Only accumulation of events, no condition checking.
exclusive
-
The conditions are assumed to be exclusive.
After one true condition further checks are omitted.
Function
The analyzer active flag is set.
The input values are converted to integers if necessary.
The input values are checked for lying inside the limits of the analyzer and
- if not suppressed by nocheck
- of the other conditions.
The condition flags are set accordingly.
If the analyzer type is nonzero and accumulation
is not switched off with the
command
AOFF/noaccu
, the spectrum is incremented by w
at the
channel no.(s) val1
, val2
, ...
Remarks
Examples
for ( ii==1; ii<=5; ii++ ) {
if ( testbit[ii] ) $ANAL( M(ii), mass * fac[ii] );
}
| GSI
| Biophysics
| SATAN long write-up
|
Last updated: M.Kraemer@gsi.de,
4-Aug-1999
Impressum Data privacy protection