Titles: TSLP ============ Contact: S. Biller, Oxford. Revision History:- ================ 3.02 S. Biller First version The bank number specifies to 1/2 crate to which the calibrations refer. These numbers run from 1-18, so bank numbers 1 and 2 refer to the first and second half of crate 0. The 1st data word in the bank specifies the number of time samples (call this "NT") used in the TSlope calibration (a maximum of 31 are allowed). The calibration parameters themselves are stored in a packed format. The 2nd data word therefore specifies how many of these packed words (call this "NP") are associated with each channel. There then follows the list of the NT time samples, in units of ns*100. After this, come the packed calibration values: the 1st packed word in a given set (i.e. for a given cccc) consists of bit-flags (31 + 1 extra which is needed to get around a zebra problem), one for each time sample, which are set if the digitization value corresponding to a given time sample is deemed to be bad. The remainder of the words in the set are 12-bit parameters packed into 32-bit words. The first of these are the digitization values for each time sample. These are used as a basis for interpolation when applying the calibration to raw data. Following this are 4 cubic-fit parameters, which may also be used as an alternative, or in conjunction with, the interpolation method. All the packed words were formed using the BUNCH routine in CERNLIB and are expanded again in the calibration routine with BLOW. The offset to the main link for a particular set of calibration values is OFFSET = 2+N_Steps + N_Words* [(ice-1)*(nchannels*ncards/2) + (ich-1)*(ncards/2) + (jca-1)] where ice is the cell index (1 to nells), ich is the channel index (1 to nchannels), jca is the card index for this 1/2 crate (1 to ncards/2), and N refers to either QHS,QHL or QLX charges (thus running from 1 to 3). Titles Files ------------ These are of the form teca_yyyymmdd_vv.dat Verification ------------ Description ----------- Holds ECA TSlope information Data Words ---------- Data types: B(bit), I, F, D(double), H(hollerith 4 char) +1 I Number of time samplings (call this "NT") +2 I Number of packed words/channel (call this "NP") +3 I 1st injected time (ns*100) for 1/2 Crate +4 I 2nd injected time (ns*100) for 1/2 Crate . . +2+NT I NTth injected time (ns*100) for 1/2 Crate +2+NT+1 I (Packed) Bit-mask flag for any values deemed "bad" in 2nd cccc +2+NT+2 I 2nd packed tslope word (see notes above) of 1st cccc +2+NT+3 I 3rd packed tslope word (see notes above) of 1st cccc . . +2+NT+NP+1 I NPth packed tslope word (see notes above) of 1st cccc +2+NT+NP+1+1 I (Packed) Bit-mask flag for any values deemed "bad" in 2nd cccc +2+NT+NP+1+2 I 2nd packed tslope word (see notes above) of 2nd cccc +2+NT+NP+1+3 I 3rd packed tslope word (see notes above) of 2nd cccc . . +2+NT+2NP+1 I NPth packed tslope word (see notes above) of 2nd cccc . . . . . . . .