Simple Spectrum update commands

INC | DEC increment/decrement the spectrum channel specified. SET sets the spectrum channel to the value given by expression. If a parameter-list is specified for a channel then the command will be applied to all members of the list present in the event. If the same list is used for different channels of a spectrum then the ith element of a list will not be incremented with the ith element.

Example

INC GMAT(GELIST.E2,GELIST.E2)


... increment the channels given by each E2 word for parameter-list GELIST. Channels given by the ith element of the first list and the ith element of the second list are not incremented, i.e. the same gamma-ray is not incremented with itself.

Example

INC GS1(GE[1].E1)


... increment the channel GE[1].E1 of spectrum GS1, where E1 is an item associated with the group GE[1].

Example

DEC GAMSPC((GAM1+100)/2)


... decrement channel (GAM1+100)/2 of spectrum GAMSPC.

Example

SET TCHECK(10) = clock.w1


... assign the data word clock.w1 to channel 10 of spectrum TCHECK.

Example

INC MAT2D(WORDX,LISTX)


... increment channel given by the word WORDX (x-coordinate) and all valid words in word-parameter-list LISTX (y-coordinate) of 2D spectrum MAT2D.

Example

INC ALL_GES(GELIST.E2)


... increment channel given by all valid E2 words in group-parameter-list GELIST of spectrum ALL_GES.

Example

INC GFEX3(GAMA,GAMB,GAMC)


... increment the symmetrised cube GFEX3 at the location given by GAMA, GAMB and GAMC.

Any spectrum update attempted by a command in this sort package which falls outside the defined spectrum dimensions will be safely ignored.