titles_gpca


                              Titles: GPCA
                              ============
 
    Contact:  J. Cameron, Oxford.
 
    Revision History:-
    ================
 
    3.02  J. Cameron       First version


    The bank number specifies which crate the calibrations are for.
    The bank numbers run from 0-18.

Titles Files
------------

    These are of the form   gpca_yyyymmdd_hh.dat
 
Verification
------------

Description
-----------
 
    Holds PCA gain information.

Data Words
----------
 
    Data types: B(bit), I, F, D(double), H(hollerith 4 char)

    The banks consist of a 10 word integer header followed by
    the 96 integer board IDs followed by the real channel data. 
    No mnemonics have been defined.

    For GPCA version 1:
    -------------------

    Header:

    Word      Type    Description
    ----      ----    -----------

    +1        I       Crate number (duplicate of bank number)
    +2        I       Version number of bank.
    +3        I       Number of words in the header.
    +4        I       Number of words per tube.
    +5        I       =1 If DQID present =0 otherwise
    +6        I       offset to board data
    +7        I       =1 If DQCR and DQCH present =0 otherwise
    +8        I       Spare.
    +9        I       Spare.
    +10       I       Spare.

    Board IDs:

    offset = 10 + 6*icard
    The board IDs are the same as in DQID

    Data:

    offset = icons(lnk+3)+icons(lnk+4)*(icard*32+ichan)

    Word      Type    Description
    ----      ----    -----------

    offset+1  F       100*tube_type + 10*status + mask
                      where tube_type can be
                         1 - Normal PMT
                         2 - OWL
                         3 - Low Gain
                         4 - Butt
                         5 - Neck
                         6 - Calibration
                        10 - Spare
                        11 - Invalid
                      status can be
                         0 - fine
                         1 - offline
                         2 - zero occupancy
                         3 - low occupancy
                         4 - low ECA
                      and mask is 0
                        +1 - QHS bad
                        +2 - QHL bad
                        +3 - QLX bad

    offset+2  F       QHS Threshold

    offset+3  F       QHS Peak

    offset+4  F       QHS High half point

    offset+5  F       QHL Threshold

    offset+6  F       QHL Peak

    offset+7  F       QHL High half point

    next tube...


Go Back to the Snoman Companion Top Page