9. TEST BEAM DATA BANKS

            This section describes the data structure for banks which
       are  only  produced  by  the  CDF  Test  Beam data acquisition
       system.  These banks should not  appear  in  the  output  data
       stream from the CDF detector.  The organization of these banks
       is identical to  that  of  the  detector  component  banks  in
       Section  7  of  this  note  and the bank component numbers are
       unique.


       9.1  UEMD Bank - Plug Upgrade EM Calorimeter Bank

            This Bank has the following Bank Header Characteristics:-

            Bank Name   :   "UEMD"
            Bank Number :       1
            Bank Type   :  BNKTI2 (Integer*2)

       where the format of the data is:-

         Displacement
            (I*2)        Contents    Description

               0            24       No. of Blocks
               1            26       West Modules 0-1 Pointer
               ......
              12                     West Modules 22-23 Pointer
              13                     East Modules 0-1 Pointer
               ......
              24                     East Modules 22-23 Pointer
              25                     End of Data Pointer
              26                     Data for West Modules 0-1
               ......
                           etc.


            Notes:

            1.  Number of Blocks.  Corresponds to  the  West  Modules
                and then the East Modules taken in pairs (12 West, 12
                East).

            2.  Block  Pointers.    These   specify   the   Integer*2
                displacement  of  the  data  for  the  relevant block
                relative to the Bank Data Index.  The  wordcount  for
                each  Block  is  determined by the difference between
                adjacent Pointers.

            3.  End of Data Pointer.  Specifies  the  next  Integer*2
                displacement  past  the  end  of  the  data.  Used to
                calculate the wordcount for the last Block.

            4.  For the special case of  the  beamline  tests,  where
                only one or two Wedge Modules are present, the number
                of blocks may be set to 1 and  the  number  of  block
                pointers  set  to  2 (pointer to 1st block and end of
                data pointer).  In this case  the  Wedge  corresponds
                always  to  UEM  West  0  (and  1  if  two wedges are
                present).

       The Data for each Block has the format:-

               Cluster Width/Start Channel     16 bits
               Channel contents                16 bits
               .....
               Channel contents                16 bits

            1.  ClusterWidth/StartChannel.  16  Bit  word  specifying
                the  width  of  the  cluster  and  the  first Channel
                identifier in the cluster.  This word is composed  of
                the following fields:-

                   Bit  0     x16 (0) or x1 (1) Gain
                   Bits 1-2   Azimuthal Sub-segmentation(0-3)
                     0-3 if  0<=eta tower number<= 7 [8 eta towers]
                     0-1 if  8<=eta tower number<=13 [6 eta towers]
                     0   if 14<=eta tower number<=17 [4 eta towers]
                   Bits 3-7   Rapidity Segmentation (0-17)
                   Bits 8-12  Azimuth Segmentation (0-23)
                   Bits 13-15 Cluster Width (0-7==>1-8)

            2.  Channel contents.  16 Bit ADC  value  (normalised  to
                nanoCoulombs).



       9.2  UHAD Bank - Plug Upgrade HAD Calorimeter Bank

            This Bank has the following Bank Header Characteristics:-

            Bank Name   :   "UHAD"
            Bank Number :       1
            Bank Type   :  BNKTI2 (Integer*2)

       where the format of the data is:-

         Displacement
            (I*2)        Contents    Description

               0            24       No. of Blocks
               1            26       West Modules 0-1 Pointer
               ......
              12                     West Modules 22-23 Pointer
              13                     East Modules 0-1 Pointer
               ......
              24                     East Modules 22-23 Pointer
              25                     End of Data Pointer
              26                     Data for West Modules 0-1
               ......
                           etc.


            1.  Number of Blocks.  Corresponds to  the  West  Modules
                and then the East Modules taken in pairs (12 West, 12
                East).

            2.  Block  Pointers.    These   specify   the   Integer*2
                displacement  of  the  data  for  the  relevant block
                relative to the Bank Data Index.  The  wordcount  for
                each  Block  is  determined by the difference between
                adjacent Pointers.

            3.  End of Data Pointer.  Specifies  the  next  Integer*2
                displacement  past  the  end  of  the  data.  Used to
                calculate the wordcount for the last Block.

            4.  For the special case of  the  beamline  tests,  where
                only one or two Wedge Modules are present, the number
                of blocks may be set to 1 and  the  number  of  block
                pointers  set  to  2 (pointer to 1st block and end of
                data pointer).  In this case  the  Wedge  corresponds
                always  to  UHA  West  0  (and  1  if  two wedges are
                present).

       The Data for each Block has the format:-

               Cluster Width/Start Channel     16 bits
               Channel contents                16 bits
               .....
               Channel contents                16 bits

            1.  ClusterWidth/StartChannel.  16  Bit  word  specifying
                the  width  of  the  cluster  and  the  first Channel
                identifier in the cluster.  This word is composed  of
                the following fields:-

                   Bit  0     x16 (0) or x1 (1) Gain
                   Bits 1-2   Azimuthal Sub-segmentation(0-3)
                     0-3 if  0<=eta tower number<= 7 [8 eta towers]
                     0-1 if  8<=eta tower number<=13 [6 eta towers]
                     0   if 14<=eta tower number<=17 [4 eta towers]
                   Bits 3-7   Rapidity Segmentation (0-17)
                   Bits 8-12  Azimuth Segmentation (0-23)
                   Bits 13-15 Cluster Width (0-7==>1-8)

            2.  Channel contents.  16 Bit ADC  value  (normalised  to
                nanoCoulombs).


       9.3  UECD Bank - Plug Upgrade EM Calorimeter Currents Bank

            This Bank has the following Bank Header Characteristics:-

            Bank Name   :   "UECD"
            Bank Number :       1
            Bank Type   :  BNKTI2 (Integer*2)

       where the format of the data is:-

         Displacement
            (I*2)        Contents    Description

               0            24       No. of Blocks
               1            26       West Modules 0-1 Pointer
               ......
              12                     West Modules 22-23 Pointer
              13                     East Modules 0-1 Pointer
               ......
              24                     East Modules 22-23 Pointer
              25                     End of Data Pointer
              26                     Data for West Modules 0-1
               ......
                           etc.


            Notes:

            1.  Number of Blocks.  Corresponds to  the  West  Modules
                and then the East Modules taken in pairs (12 West, 12
                East).

            2.  Block  Pointers.    These   specify   the   Integer*2
                displacement  of  the  data  for  the  relevant block
                relative to the Bank Data Index.  The  wordcount  for
                each  Block  is  determined by the difference between
                adjacent Pointers.

            3.  End of Data Pointer.  Specifies  the  next  Integer*2
                displacement  past  the  end  of  the  data.  Used to
                calculate the wordcount for the last Block.

            4.  For the special case of  the  beamline  tests,  where
                only one or two Wedge Modules are present, the number
                of blocks may be set to 1 and  the  number  of  block
                pointers  set  to  2 (pointer to 1st block and end of
                data pointer).  In this case  the  Wedge  corresponds
                always  to  UEM  West  0  (and  1  if  two wedges are
                present).

       The Data for each Block has the format (I*2) :

               Logical Channel Address
               Channel contents
               Logical Channel Address
               Channel contents
               ..........

            1.  Logical Channel Address  is  defined  by  analogy  to
                CDF152, and it has no cluster width bits.

                   Bit  0     x16 (0) or x1 (1) Gain
                   Bits 1-2   Azimuthal Sub-segmentation(0-3)
                     0-3 if  0<=eta tower number<= 7 [8 eta towers]
                     0-1 if  8<=eta tower number<=13 [6 eta towers]
                     0   if 14<=eta tower number<=17 [4 eta towers]
                   Bits 3-7   Rapidity Segmentation (0-17)
                   Bits 8-12  Azimuth Segmentation (0-23)

            2.  Channel  contents.   16  Bit  value  (normalised   to
                nanoCoulombs).



       9.4  UHCD Bank - Plug Upgrade HAD Calorimeter Currents Bank

            This Bank has the following Bank Header Characteristics:-

            Bank Name   :   "UHCD"
            Bank Number :       1
            Bank Type   :  BNKTI2 (Integer*2)

       where the format of the data is:-

         Displacement
            (I*2)        Contents    Description

               0            24       No. of Blocks
               1            26       West Modules 0-1 Pointer
               ......
              12                     West Modules 22-23 Pointer
              13                     East Modules 0-1 Pointer
               ......
              24                     East Modules 22-23 Pointer
              25                     End of Data Pointer
              26                     Data for West Modules 0-1
               ......
                           etc.


            Notes:

            1.  Number of Blocks.  Corresponds to  the  West  Modules
                and then the East Modules taken in pairs (12 West, 12
                East).

            2.  Block  Pointers.    These   specify   the   Integer*2
                displacement  of  the  data  for  the  relevant block
                relative to the Bank Data Index.  The  wordcount  for
                each  Block  is  determined by the difference between
                adjacent Pointers.

            3.  End of Data Pointer.  Specifies  the  next  Integer*2
                displacement  past  the  end  of  the  data.  Used to
                calculate the wordcount for the last Block.

            4.  For the special case of  the  beamline  tests,  where
                only one or two Wedge Modules are present, the number
                of blocks may be set to 1 and  the  number  of  block
                pointers  set  to  2 (pointer to 1st block and end of
                data pointer).  In this case  the  Wedge  corresponds
                always  to  UHA  West  0  (and  1  if  two wedges are
                present).

       The Data for each Block has the format (I*2) :

               Logical Channel Address
               Channel contents
               Logical Channel Address
               Channel contents
               ..........

            1.  Logical Channel Address  is  defined  by  analogy  to
                CDF152, and it has no cluster width bits.

                   Bit  0     x16 (0) or x1 (1) Gain
                   Bits 1-2   Azimuthal Sub-segmentation(0-3)
                     0-3 if  0<=eta tower number<= 7 [8 eta towers]
                     0-1 if  8<=eta tower number<=13 [6 eta towers]
                     0   if 14<=eta tower number<=17 [4 eta towers]
                   Bits 3-7   Rapidity Segmentation (0-17)
                   Bits 8-12  Azimuth Segmentation (0-23)

            2.  Channel  contents.   16  Bit  value  (normalised   to
                nanoCoulombs).


       9.5  UEPD Bank - Plug Upgrade EM Calorimeter Position Detector

       This Bank has the following Bank Header Characteristics:-

            Bank Name   :   "UEPD"
            Bank Number :       1
            Bank Type   :  BNKTI2 (Integer*2)

       where the format of the data is:-

         Displacement
            (I*2)        Contents    Description

               0            24       No. of Blocks
               1            26       West Modules 0-1 Pointer
               ......
              12                     West Modules 22-23 Pointer
              13                     East Modules 0-1 Pointer
               ......
              24                     East Modules 22-23 Pointer
              25                     End of Data Pointer
              26                     Data for West Modules 0-1
               ......
                           etc.


            Notes:

            1.  Number of Blocks.  Corresponds to  the  West  Modules
                and then the East Modules taken in pairs (12 West, 12
                East).

            2.  Block  Pointers.    These   specify   the   Integer*2
                displacement  of  the  data  for  the  relevant block
                relative to the Bank Data Index.  The  wordcount  for
                each  Block  is  determined by the difference between
                adjacent Pointers.

            3.  

                     End  of  Data  Pointer.   Specifies   the   next
                Integer*2  displacement  past  the  end  of the data.
                Used to calculate the wordcount for the last Block.

       The Data for each Block has the format:-

               Cluster Width/Start Channel     16 bits
               Channel contents                16 bits
               ....
               Channel contents                16 bits

            1.  Cluster Width/Start Channel.  16 Bit word  specifying
                the  width  of  the  cluster  and  the  first Channel
                identifier in the cluster.  This word is composed  of
                the following fields:-

                   Bits 0-4   Channels in D(phi)=15 deg (0-31)
                   Bit  5-6   Phototube in D(phi)=15 deg (0-3)
                   Bit  7     dimensions, "a" (0) or "b" (1)
                   Bits 8-12  Module Number (0-23)
                   Bits 13-15 Cluster Width (0-7==>1-8)

            2.  Channel  contents.   16  Bit  value  (normalised   to
                nanoCoulombs).


       9.6  SABD Bank - Small Angle Beam Test Data

            This bank has the TDC data for the test beam chambers and
       the small angle prototype drift chamber.

               Bank History
               ____________
               15-Sep-1987     NG      Original Creation


            This Bank has the following Bank Header Characteristics:-

            Bank Name   :   "SABD"
            Bank Number :       1
            Bank Type   :  BNKTI4 (Integer*4)


            The SABD bank format is:

           Address                  Contents
          --------        ------------------------------
                         !                              ! Block A 
         INDDAT+0        ! Number of SL pointers        !             
               +1        ! PSL0 = pointer to SL 0       ! Super Layer pointer
               +2        ! PSL1 = pointer - end of bank ! block
                         !                  +  1        !


                          ----------------------------
                         !                            !
             PSL0        ! Number of TDCs             ! Block B0(0)
             PSL0+1      ! PC0 =  pointer to TDC 0    !
             PSL0+2      ! PC1 =  pointer to "end_of_ ! TDC pointer block
                         !        block + 1"          ! for Super Layer 0
                         !                            !


                          ----------------------------
                         !                            ! Block B1(0,0)
            PSL0 + PC0   ! Data for TDC 0             ! 
                         !                            ! Data for Super Layer 0
                         !                            !
                         !                            !


         Block A : Super Layer Pointer Block
         -----------------------------------

                  Word             Contents
                 -------      -------------------------------------------------
                    0          NSL = # of Super Layers(1)
                                   = # of pointer words - 1

                   1+i         Pointers
                               = pointer to word 0 of block B0(0) for 
                                 for  0 < i < NSL-1
                               = pointer to end of YBOS bank + 1 for i = NSL

         Block B0(0) : TDC pointer sub_block for Super - Layer 0
         --------------------------------------------------------

                  Word             Contents
                  -----       -----------------------------------------------------
                   0            NTDC(0) = number of TDCs in Super - Layer 0 = 1
           
                  1+j           Pointers
                                = pointer to start of TDC i for 
                                  0 < j < NTDC(i)-1
                                = pointer to "end-of-block + 1" for j=NTDC(i)

            The same comments as for the corresponding block of the CTCD bank apply
       to this block.


          Block B1(0,0) : TDC hit data sub_block for Super_Layer 0, TDC 0
          ---------------------------------------------------------------
          1) TDC data have the same format as in the CTCD bank i.e:

           bits  0 -> 9   T = Leading edge of TDC count
            ''  10 -> 18  L = Trailing edge clock count 
                              ( 9 bits, aligned with bits 1 -> 9 )
            ''  19 -> 25  C = Channel number within this TDC
                              ( 0 : 95 are "legal" channels )

            ''  30        N = Flag bit, indicating that the data on this wire
                              were not completely read out.

            ''  31        S = Stop bit = 1 for last hit on this wire

          2) TDC channels 0 -> 15 are reserved for the 16 wires of the test
             beam chambers.
             Channels 16 -> 31 are empty.
             Channels 32 -> 37 are reserved for the wires and the delay line signals 
             of the prototype small angle chamber.

          3) The same comments as for the corresponding block of the CTCD bank apply
             to this block.

            Notes:

            1.  For this bank the name "Super Layer" refers  to  data
                organization  rather  than  physical structure of the
                hardware detector.

            2.  Minimum (Maximum) bank length = 3 (1446) I*4 words.


       9.7  LSCD Bank - Test Beam Latch And Scaler Data Bank

            This bank has the test beam scaler and latch module data

               Bank History
               ____________
               15-Sep-1987     NG      Original Creation


            This Bank has the following Bank Header Characteristics:-

            Bank Name   :   "LSCD"
            Bank Number :       1
            Bank Type   :  BNKTI4 (Integer*4)


            The LSCD bank format is:



       Displacement
          (I*4)      Contents   Description
       ------------  --------   -----------
        INDDAT+0                Number of blocks ( = 2 )
               1          P0    Pointer to block 0 - Scaler Data
               2          P1    Pointer to block 1 - Latch  Data
               3          P2    Pointer to end of data

       -----------------------------------------------------------------
                               Data for Block 0
       -----------------------------------------------------------------
              P0               Data for 1st channel - Scaler Module # 1
              P0+1             Data for 2nd channel - Scaler Module # 1
              .                  .
              .                  .
              .                  .
              P0+31           Data for 32nd channel - Scaler Module # 1

       -----------------------------------------------------------------
                               Data for Block 1
       -----------------------------------------------------------------
              P1              Latch Bits  1 -> 32
              P1+1            Latch Bits 33 -> 64



            Notes:

            1.  Both the scaler and the latch block data are  32  bit
                words.

            2.  The  exact  content  of  the  scaler  and  the  latch
                channels is not known yet.

            3.  Minimum (Maximum) bank length = 38 (38) I*4 words.


       9.8  TBCD Bank - Test Beam Camac Data Bank

            This bank contains data read out from the Test-beam CAMAC
       crate  thru  the  Struck  320.   Block  0 contains test status
       words.  Blocks 1-2 are the CAMAC ADC  and  TDC  data  for  the
       small angle prototype scintillators.

               Bank History
               ____________
                7-Oct-1987     DB      Original Creation
               21-Oct-1987     NG      Add blocks 1-2

            The TBCD bank header values are:

            Bank Name   :   "TBCD"
            Bank Number :       1
            Bank Type   :  BNKTI4 (Integer*4)


            The TBCD bank format is:

         Displacement    
            (I*4)        Contents    Description

               0             3       No. of Blocks
               1            P0       Pointer to block 0 containing CAMAC words
               2            P1       Pointer to block 1 - ADC Data
               3            P2       Pointer to block 2 - TDC Data
               4                     End of Data Pointer
          --------------------------------------------------------------
                       Data for Block 0, CAMAC status words
          --------------------------------------------------------------
              P0                     CS (Clear and Strobe) width word
              P0+1                   Trigger mask word
              P0+2                   Not used     
              P0+3                   Magnet shunt reading
       -----------------------------------------------------------------
                       Data for Block 1 - Small Angle ADC Data
       -----------------------------------------------------------------
              P1                     Data for 1st channel - ADC Module # 1
              P1+1                   Data for 2nd channel - ADC Module # 1
              .                        .            .           .
              .                        .            .           .
              P1+11                  Data for 12th channel - ADC Module # 1
       ------------------------------------------------------------------
                       Data for Block 2 - Small Angle TDC Data
       -----------------------------------------------------------------
              P2                     Data for 1st channel - TDC Module # 1
              P2+1                   Data for 2nd channel - TDC Module # 1
              .                        .            .           .
              .                        .            .           .
              P2+7                   Data for 8th channel - TDC Module # 1
       ------------------------------------------------------------------

            Notes:

            1.  The CS (Clear and Strobe) gate width word  bit  field
                definition:

                 Bits    Contents
                 ----    --------
                  0:09   M mantissa 
                 10:12   C charactistic
                 13      L latch bit
                 14:15   D delayed pulse width

                The CS width is according to the delay set by the
                2323 CAMAC delay gate generator.  This is given by
                Duration = M*10**C in nanoseconds for L=0.  L=1 is
                for latch mode, and is not used.

                The pulse has a width of:    D=0   10 ns
                                               1   30 ns
                                               2  100 ns
                                               3  300 ns

            2.  The trigger mask word has bit 0=1 for beam,  bit  1=1
                for  muons,  and  bit  2=1  for  pedestal/calibration
                triggers.

            3.  Shunt word contains the digitized shunt reading.

            4.  The ADC in Block 1 is a LeCroy 2249A.  It has  10-bit
                resolution.  The ADC block data are 32-bit words.

            5.  The TDC in Block 2 is a LeCroy 2228A.  It has  11-bit
                resolution.  The TDC block data are 32-bit words.

            6.  The 1st channel, of both the ADC and  TDC  in  blocks
                1-2,  has  the  data  from the upstream scintillator.
                The second channel has the data from  the  downstream
                scintillator.  The other channels are empty.

            7.  Fixed bank length = 5 + 4 + 12 + 8 = 29 I*4 words.


       9.9  TBSD Bank - Test Beam Stand Positions Data Bank

            This  bank  contains  the  positions  of  the  test  beam
       calorimeter  stands,  read out of the CAMAC PC thru the Struck
       320 (FASTBUS branch driver).

               Bank History
               ____________
               21-May-1990     BD      Original Creation

            The TBSD bank header values are:
        
            Bank Name   :   "TBSD"
            Bank Number :       1
            Bank Type   :  BNKTI4 (Integer*4)
        

            The TBSD bank format is:
        
        
         Displacement     Contents     Description
        --------------   ----------   -------------
        
               0             1         Number of blocks
               1             3         Pointer to first block of data
               2            12         Pointer to end of data
        
               3                       Error flag (see notes)
               4                       Position conversion factor (see notes)
               5                       Position of Forward Horizontal axis
               6                       Position of Forward Vertical axis
               7                       Position of Wedge Horizontal axis
               8                       Position of Wedge Vertical axis
               9                       Position of Plug Horizontal axis
              10                       Position of PHA Vertical axis
              11                       Position of PEM Rotational axis

            Notes:

            1.  The "Error flag"  word  should  be  tested  for  each
                event.   If  it  is  non-zero then the stand position
                data is not valid and should not be used.  If  it  is
                non-zero,  then the bit pattern provides a diagnostic
                indication of why the position read-out failed.

            2.  The axis positions are  multiplied  by  a  conversion
                factor  and then recorded as integers.  The positions
                should be  divided  by  this  conversion  factor  (be
                careful  to  insure that the division is done in Real
                arithmetic).  Here is an example  of  converting  the
                Plug  horizontal  axis  position  (note, if the Error
                flag is zero, then  the  conversion  factor  will  be
                non-zero):

                     PLUGH = IW(INDDAT+9) / FLOAT(IW(INDDAT+4))


       9.10  SVTD Bank - SVX Temperature Detector Bank

            This bank contains the  temperature  readout  information
       for the SVX east and west barrels.

            Bank History
            17-Apr-1992    R. Hughes    Original Version


            This Bank has the following Bank Header Characteristics:-

            Bank Name   :   "SVTD"
            Bank Number :       1
            Bank Type   :  BNKTR4 (Real*4)


            The SVTD bank data format is:
            
            Displacement
             from data
               index      Description
            ------------  -----------
                 0        West Temp at Wedge 2 Layer 2             (DVM Ch 0)
                 1        West Temp at Wedge 8 Layer 2             (DVM Ch 1)
                 2        West Spare                               (DVM Ch 2)
                 3        West Temp at Wedge 9 Layer 4             (DVM Ch 3)
                 4        West Temp at Wedge 2 Layer 3             (DVM Ch 4)
                 5        West Temp at Wedge 2 Layer 1             (DVM Ch 5)
                 6        West Temp at Wedge 2 Layer 4             (DVM Ch 6)
                 7        West Temp at Wedge 8 Layer 3             (DVM Ch 7)
                 8        West Temp at Readout BH Wedge 6 Layer 4  (DVM Ch 8)
                 9        West Temp at Readout BH Wedge 8 Layer 2  (DVM Ch 9)
                10        West Temp at Readout BH Wedge 2 Layer 4  (DVM Ch 10)
                11        West Temp at Readout BH Wedge 8 Layer 4  (DVM Ch 11)

                12        East Temp at Wedge 2 Layer 1             (DVM Ch 16)
                13        East Temp at Wedge 2 Layer 2             (DVM Ch 17)
                14        East Temp at Wedge 1 Layer 3             (DVM Ch 18)
                15        East Temp at Wedge 2 Layer 4             (DVM Ch 19)
                16        East Temp at Wedge 8 Layer 1             (DVM Ch 20)
                17        East Temp at Dummy BH Wedge 5 Layer 4    (DVM Ch 21)
                18        East Temp at Wedge 9 Layer 4             (DVM Ch 22)
                19        East Temp at Readout BH Wedge 1 Layer 4  (DVM Ch 23)
                20        East Temp at Readout BH Wedge 3 Layer 4  (DVM Ch 24)
                21        East Temp at Readout BH Wedge 7 Layer 1  (DVM Ch 25)
                22        East Temp at Readout BH Wedge 7 Layer 4  (DVM Ch 26)
                23        East Temp at Dummy BH Wedge 1 Layer 4    (DVM Ch 27)




            Notes:

            1.  Data is read from a  Scanning  DVM  (2032)  in  CAMAC
                crate #1 in RR33H.

            2.  The conversion factor from SAM voltage to temperature
                is:

                     10 mV = 1 Degree Kelvin.

            3.  This bank has no block pointers at the beginning, the
                first  word  pointed to by the data index is the West
                Temp at Wedge 2 Layer 2.


       9.11  MAGD Bank - Test Beam MT5E-String Current Data

            This bank contains the current in the MT5E magnet  string
       in  the  test  beam.   It  is  read from a SAM module thru the
       Struck 320 (FASTBUS  branch  driver).   This  reading  of  the
       current  was  implimented  for  use  in low current (momentum)
       running

               Bank History
               ____________
               16-Aug-1990     BD      Original Creation

            The MAGD bank header values are:

            Bank Name   :   "MAGD"
            Bank Number :       1
            Bank Type   :  BNKTI4 (Integer*4)


            The MAGD bank format is:


         Displacement     Contents     Description
        --------------   ----------   -------------

               0             1         Number of blocks
               1             3         Pointer to first block of data
               2             4         Pointer to end of data

               3                       Magnet current

            Notes:

            1.  The magnet current is read from a SAM  (Scanning  ADC
                module),  so  the  value  is  actually  in VAX Real*4
                format.  The testbeam DAQ  system  is  not  setup  to
                readout  Real*4  data.   This  data  bank can only be
                (easily) used on a VAX machine.

  next page