next up previous contents index
Next: Example: Loop over all Up: Direct access to particles Previous: Direct access to particles   Contents   Index


Particle name and class

In addition to the loops described above, it is possible to access particles by their name. In many cases, this method is faster and the code is easier to read than the standard loops described in 7.1. Two quantities must be specified:

KRECO and KMONTE are available everywhere as integer Fortran parameters. Their actual values are -1 and -2, respectively. Positive integers denote Lorentz frames. Integers less than -2 can be used to create your own particle classes (see KVSAVC in 9.2.12).

The particle name of MC particles is specified in the MC particle table (see 15.1). Reconstructed objects have the names `CHARGED', `ECAL', `HCAL', `CALOBJ', `EFLW', 'NEOB', and 'GAMP' for charged tracks, ECAL objects, HCAL objects, unspecified ( e.g., composite) calorimeter objects, energy flow objects, neutral calorimeter objects, and GAMPEC photons, respectively. The functions KVSAVE, KVSAVC, and KIDSAV (see 9.2.11) can be used to create new tracks with a name. A list of standard particle names is given in App. F. New particle names can be introduced by using them in ALPHA subroutine calls or by specifying them on data cards (see 15.4.2).


next up previous contents index
Next: Example: Loop over all Up: Direct access to particles Previous: Direct access to particles   Contents   Index
Joel Closier
2000-02-07