Save (see 9.2.9) track ITK in track class ICLASS independent of the track history. Track classes are described in 7.4.1. If class ICLASS does not yet exist, a new class is created. Note that the maximum number of new classes is six (see 9.6).
It is possible but not recommended to put a reconstructed track into the class KMONTE (MC truth) or vice versa. The lock algorithm will not work for these tracks.
Example: Create and save a beam particle in track class KRECO.
DIMENSION VEC(4) VEC(1) = 0. px VEC(2) = 0. py VEC(3) = QELEP * 0.5 beam energy VEC(4) = VEC(3) energy = momentum INEW = KVNEW (DUMMY) CALL QVSET4 (INEW, VEC) IBEAM = KVSAVC (INEW, 'BEAME+', KRECO)KVSAVC has to be used here instead of KVSAVE because the track history of INEW does not specify the track class. See 9.2.8 and 9.2.13 for explanations of KVNEW and QVSET4.