Mark,
The Root pad drawing/updating mechanism is fully described at URL:
http://root.cern.ch/root/HowtoDraw.html
In your case, with the current version of Root, you have the choice
between:
- clear the pad, draw detector and tracks for each event
- draw the detector once. at each new event, remove tracks from the
pad list of primitives.
The two options are equivalent in performance. In both cases, the
detector
Paint function and the tracks Paint function will be invoked.
The ideal solution (as indicated by Valery) would be to support
transparent
pads. It is our intention to support this option in the future versions
and also (same problem) support for images (gif,etc) as background for a
pad.
Meanwhile, I suggest you use option 1 above.
Rene Brun