NQRH: NCD Relationship Record




				Titles: NQRH: NCD Relationship Record
				=====================================

Contact: Mark Howe / Jan Wouters / Adam Cox
Version 1 verified on 10-29-04 by LCS and KRR

Revision History:-
================
	2003-02-11 (jmw) - Original
	2003-02-19 (jmw) - Revised documentation.
	2003-11-04 (gac) - Made distinction between MUXBox and MUX bus numbers,
			     redefined NQRH_SH_HW to be the Shaper Hardware
			     address number (was previously called 'slot number')
	2003-11-17 (gac) - renamed word prefix NCDR -> NQRH, removed bit packing
				renamed NQRH_HV to NQRH_HV_SUPPLY in order to match NQHH bank
				added pulser distribution system words
	2004-02-08 (jmw) - Added word 0 - Number of NCD string records.  Placed
						carriage return after Shaper ADC value to make string
						readable by SNODB.
	2007-04-16 (ggp) - Revised documentation.

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

Verification
------------

Description
-----------

Bank Number: 1

Written out at the beginning of a run by SHaRC.  Contains geometry
information and how NCD is physically connected electrically. Contains
the relationship between detector id, shaper card and number,
multiplexer number and channel, oscilloscope id and hv power supply.

The X and Y coord. are not strictly needed, but it is easier to
include this data here as it simplifies getting the "constant" data
for analysis.

Data Words
----------

	Fixed length Database Header. See titles_dbhdr.html

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

Word	Type	Mnemonic		Description

1 	I	NQRH_ENTRIES	        Number of NCD string records that follow.
2	I	NQRH_VERS	        NQRH bank version number
3	I	NQRH_STRING	        NCD String Number
4	F	NQRH_X		        X coord. in cm rel. to (0, 0).
5	F	NQRH_Y		        Y coord. in cm rel. to (0, 0).
6	H	NQRH_ID		        Detector id (e.g. A1, B2, etc. Space for up to 4 characters.).
7	I	NQRH_MUX_BOX            Mux Box number (0x0-0xff)
8	I	NQRH_MUX_BUS	        Mux Controller Board Bus number (0-5).
9	I	NQRH_MUX_CHAN	        Mux channel number (0-11).
10	I	NQRH_SH_HW	        Shaper Hardware address number (typically = 0x8Y00).
11	I	NQRR_SH_SLOT	        Shaper slot number assigned by ORCA.
12	I	NQRH_SH_CHAN	        Shaper channel number (0-8).
13	I	NQRH_HV_SUPPLY	        HV power supply number.
14	I	NQRH_OS_CHAN	        Oscilloscope channel (0-3).
15	H	NQRH_PREAMP	        Current Preamp Number (JXXX)
16	I	NQRH_PDS_BOARD	        Pulser Distribution System Board Number
17	I	NQRH_PDS_CHAN	        Pulser Distribution System Channel Number

                Words 2-17 repeat NQRH_NUM_STRING times. 


Go Back to the Snoman Companion Top Page