Since there is no guaranteed readout sequence for the ADC and TDC modules each dataword has to identify itself by means of a crate, slot and address information encoded in the data. The information about the topology of the electronics setup is held in an RZ database. For the data analysis it is necessary to have faster access to this information for each dataword coming in. The linkage of a given crate-slot-address combination to a particular sector-detector-signal combination is implemented using a quasi-static ZEBRA bank which is organized as follows:
PARAMETER( mADDR = 96 ) ! Max. # of addr. in 1 module PARAMETER( mSLOT = 26 ) ! Max. # of modules per crate PARAMETER( mCRATE= 2 ) ! Max. # of crates INTEGER*4 TOPOLOGY( mADDR, mSLOT, mCRATE )
The contents of each element of this array is depicted in
fig. .
Figure: Structure of a topological table entry
The internal base is filled as part of the run initialization (f*_ini_run). Each detector setup (plastic wall, zero degree, rosace, ... ) has its own base. Unused entries remain zero. An example for the usage are the f*_get_raw subroutines.
fopi
Tue May 28 15:33:35 CST 1996