User detector simulation.

In the detector simulation, You might want to supply the routines ZDEFFI, ZDIDEN and, maybe, ZDCALO:

Look at the out-commented examples for clues how to write the routines.

(for ZDCALO refer to chapter 5.3 ).