next up previous contents index
Next: Test a particle's name Up: ``Track'' attributes. Previous: Distance to the beam   Contents   Index


Stability code

KSTABC (I)
Stability code
The stability code is designed to avoid double counting when making loops over Monte Carlo particles. The possible values of KSTABC are:
1
Particle does not decay.
2
Neutral particle that decays in the calorimeter volume. Charged particle that decays in the TPC or calorimeter volume. Here, TPC and calorimeter volumes are full cylinders (including the beam pipe region).
3
One of the ancestors of this stable particle has interacted with matter. Energy and momentum are NOT conserved.
0
Decay products of ``stable'' particles including all garbage in the calorimeter.
-1
Particle decays immediately (resonance etc.).
-2
Particle decays with finite decay length but before reaching the detector volume (see above).
-3
Particle interacts with matter before reaching the detector volume. The decay products do not conserve energy and momentum.

A loop over all MC particles with KSTABC > 0 selects the generation of decay particles which will probably be visible in the detector - energy is never counted twice. The energy sum of these particles gives the total generated energy only if no particle interacted with matter inside the detector volume. A loop over MC particles with KSTABC = 1, 2, and -3 is similar, but it always gives the generated total energy.


next up previous contents index
Next: Test a particle's name Up: ``Track'' attributes. Previous: Distance to the beam   Contents   Index
Joel Closier
2000-02-07