In ALPHA, fortran DO loops can be used to loop over most types of objects. For each type of object, three variables are defined: KFxxx, KLxxx, KNxxx. xxx represents the type of object. The last letter of the variables is either T (tracklike) or V (vertex). DO loops must be made from KFxxx to KLxxx; KNxxx is the number of objects of type xxx.
For example, the following three lines will make a histogram of the momentum spectrum of charged particles.
DO 10 ITK = KFCHT, KLCHT CALL HF1 (47,QP(ITK),1.) 10 CONTINUE
The objects which can be accessed with these DO loops are listed in the following two sections.