Prev Up
Go backward to Masking operator (MASKEDBY)
Go up to Loopif...loopfail...command (parameter-list environment)

Gate-map-testing operator (GATEDBY)

LOOPIF...GATEDBY is true for each case where a member of <parameter-list> falls within the set of gates associated with <gate-expr>. Whenever a gate is passed the gate number will be placed in the reserved variable GATE. The data defining the gate limits within the gate-map is specified in the *DATA section.


LOOPIF <list-expr> GATEDBY <1D-gate-expr> ...


In the above case each member of the parameter-list found in the event is tested against the gate-map specified, eg.
  ...
*DATA
GATEMAP 1D MASS130A[0:600]
(100 180) (160 270) (250 340) (330
 460) (440 560)
  ...
*COMMANDS
  ...
CREATELIST RLIST1 FROM GE
LOOPIF RLIST1.E2 GATEDBY MASS130A  NEWLISTX=RLIST2 {
       ...
    LOOPIF RLIST2.E2 GATEDBY $...$ {
           ...
         }
    }


LOOPIF <list-exprx> <list-expry> GATEDBY <2D-gate-expr> ...



LOOPIF <list-exprx> <sortwordy>|(<expressiony>) GATEDBY <2D-gate-expr> ...



LOOPIF <sortwordx>|(<expressionx>) <list-expry> GATEDBY <2D-gate-expr> ...


For the 2D gate-map-test format one or both of the parameters to be tested must be a list-expression, eg.
  ...
*DATA
GATES 2D MAP1[64,64]
(12 20  20 22  23 26  19 31  17 27  16 23)   (19 24  25 21  30 27  31 38
29 40  26 38  23 26  21 24)   (35 28  38 32  40 33  42 41  40 45  38 41
37 39  36 32)
  ...
*COMMANDS
  ...
SUMEN = $...$
CREATELIST GELIST FROM GE
LOOPIF GELIST.E2 SUMEN GATEDBY MAP1 NEWLISTX=OUTLIST1 {
    LOOPIF OUTLIST1.E2 GATEDBY $...$
       ...

support@ns.ph.liv.ac.uk

Prev Up