! ! The format of the detector configuration file is described below. ! ! There are seven entries per line. There are three data types of entries: ! integer, range, and character string. There are two delimiters: the ! exclamation mark "!", the dash "-" and the colon ":". ! The exclamation mark is used to mark the begining of a comments. ! All characters on a line following an "!" are ignored. ! The "-", ":" or " " can be used to separate the ! low and high values in a range entry. ! The seven entry classes are: ! ! Entry Class Data Type ! 1. Detector Name character string ! 2. index integer ! 3. ROC # integer ! 4. Crate Number integer ! 5. Slot Number integer ! 6. Channel Number range ! 7. Digitizer Model # character string ! !*** NOTE: THE DECODER PROGRAM IS CASE SENSITIVE!! ! USE ONLY LOWER CASE FOR DETECTOR NAMES ! ! ! DETECTOR RAWDET ROC CRATE SLOT CHANNEL MODULE ! NAME ARRAY INDEX # # # RANGE NAME detector 1 1 1 5 0 - 3 P7186 detector 5 1 1 14 0 - 3 E413 ! ! SCALERS scaler_u 1 1 1 16 0 - 31 P7132
The detectors can be separated into two groups, the detector array, which will map onto the rawdet() array, and the scaler_u type which will map onto rawscaler_u() array.
Each detector type will start mapping data onto the rawdet array at the RAWDET ARRAY INDEX. The length of the data from a particular module is given by CHANNEL RANGE. The module name is given by MODULE NAME. In the above example, data from module P7186 (which is a TDC) is mapped onto rawdet array at index 1. There are 4 channels of this detector type, hence the data will occupy rawdet(1),rawdet(2), rawdet(3), and rawdet(4). The module is located in CAMAC CRATE 1, SLOT 5. Since the rawdet() array is occupied up the element (4), the next available rawdet index is 5. Hence the next detector (EG&G 413 ADC) must be mapped starting a RAWDET ARRAY INDEX 5. It will occupy the array up to index 8. The 32 channel scaler P7132 will be mapped onto rawscaler_u() array starting at index 1 and will occupy the array up to index 33. The modules which are included thus far in the analysis package are :
'L2249SG ' Lecroy 2249 Single Gate QDC (10 bits) 'L2249 ' Lecroy 2249W 'S4418 ' Silena 4418 ADC 'S4418s ' " Sparse Mode 'L1151 ' 'P7186 ' Phillips TDC 'P7186s ' Sparse Mode 'K3610 ' Kinetic System Scaler KS3610, Also works with KS3615 'B1008 ' Bore Preset Scaler 'E413 ' EG&G 413 ADC 'E413s ' Sparse Mode 'E811 ' EG&G 811 ADC 'B2351 ' HIT Register 'P7132 ' Phillips 32 Channel Scaler 'P7167 ' Phillips QDCs 'P7167s ' Sparse Mode