NCLB: NCD Log Amp Calibration Initial Guess Parameters and HP Pulser settings



		Titles:NCLB: NCD Log Amp Calibration Initial Guess Parameters and HP Pulser settings 
                ====================================================================================
Contact: Adam Cox

Revision History:-
================
	2004-07-19 (gac) - Original
        2005-08-25 (ggp) - increased the size of the bank
        2005-12-20 (ggp) - changed NCLB_CABLE_RC into NCLB_CABLE_RC_ROUNDTRIP
                         - added NCLB_CABLE_RC_ONEWAY parameter
	2006-01-30 (ggp) - changed bank number and bank version to 2
	                   (was 1 before)
                           added more parameters							
Titles Files
------------

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

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

Bank Number: Bank Version Number (=2)

Holds the initial parameter guesses for the MUX logamps as well as
settings related to the logamp calibration pulse and HP Pulser.  It
also indicates which values can float during the fitting processes and
which must remain constant. It holds every value needed by the
QNCDLogAmpCalibration classes except for the fScopeOffset and
fScopeTriggerTime which should be obtainable from the the NQxx bank
(NQDH - scope settings)

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		NCLB_VERSION			Version Number of this bank (redundant with bank number)
2		I		NCLB_NUM_RECORDS		Number of NCD string records that follow (48 channels)
3		I 		NCLB_NUM_WORDS			Number of words in each record (currently = 81)
4		I		NCLB_TABLE			Base address of table - will be equal to the last word in 
                                                                this header (which is currently equal to 80)

The following are global values that describe the logamp pulse.  The
logamp pulse, is a square wave, baseline, and then an offset single
sine wave.  Sometimes, these parameters will be allowed to float in
the fit routine.


5	 F	NCLB_HP_OFFSET				HP Pulser DC level offset (should be 0)
6	 F	NCLB_HP_AMPLITUDE			HP Pulser amplitude
7	 F	NCLB_PERIOD				Sine wave period
8	 F	NCLB_PHASE				Sine wave phase
9	 F	NCLB_PDS_GAIN				PDS gain
10	 F	NCLB_ATTENUATOR				Attenuator strength
11	 F	NCLB_SQUARE_WAVE_WIDTH			Square wave width
12	 F	NCLB_TIME_BETWEEN_SQUARE_AND_SINE_WAVE	Time between Square wave and sine wave
13       F	NCLB_START_TIME_OF_SQUARE_WAVE		Start time of the square wave

14	 I	NCLB_HP_OFFSET_FITMASK
15	 I	NCLB_HP_AMPLITUDE_FITMASK
16	 I	NCLB_PERIOD_FITMASK
17	 I	NCLB_PHASE_FITMASK
18	 I	NCLB_PDS_GAIN_FITMASK
19	 I	NCLB_ATTENUATOR_FITMASK
20	 I	NCLB_SQUARE_WAVE_WIDTH_FITMASK
21	 I	NCLB_TIME_BETWEEN_SQUARE_AND_SINE_WAVE_FITMASK
22       I	NCLB_START_TIME_OF_SQUARE_WAVE_FITMASK
	
23..80	 F	NCLB_SPARE_GLOBAL			Lots of spare words - just in case

In the following table the 'FITMASK' words indicate whether or not a
parameter in the logamp routine is allowed to float or if it is a fixed value.
There will be NCLB_NUM_RECORDS sets of values in the following format:
Start of nth record in table with i = NCLB_TABLE + (n-1)*NCLB_NUM_WORDS where n = 1..48


i+1	 I	NCLB_NCD_STRING_NUM		        NCD string number (starting from 0)
i+2	 F	NCLB_PARAM_A				Parameter "a", or "km" depending upon which document you're looking at	
i+3	 F	NCLB_PARAM_B				Parameter "b", or V_offset		
i+4	 F	NCLB_CHAN_OFFSET			Parameter "c", Mux + preamp offsets
i+5	 F	NCLB_PREAMP_GAIN			Preamp gain	
i+6	 F	NCLB_PREAMP_HIGH_PASS_RC		Preamp high-pass filter RC time constant
i+7	 F	NCLB_ELEC_DELAY_TIME			Mux Delay time
i+8	 F	NCLB_CABLE_PROP_TIME			Propagation time along NCD cable
i+9	 F	NCLB_COUNTER_PROP_TIME			Propagation time along NCD counter
i+10	 F	NCLB_DELAYLINE_PROP_TIME		Propagation time of the delay line
i+11	 F	NCLB_PREAMP_IMPEDANCE			Preamplifier impedance
i+12	 F	NCLB_NCD_CABLE_IMPEDANCE		NCD cable impedance
i+13	 F	NCLB_RESISTIVE_COUPLER			Resistive coupler impedance
i+14	 F	NCLB_NCD_IMPEDANCE			NCD counter impedance
i+15	 F	NCLB_SCOPE_OFFSET			Scope offset

i+16	 I	NCLB_PARAM_A_FITMASK
i+17	 I	NCLB_PARAM_B_FITMASK
i+18	 I	NCLB_CHAN_OFFSET_FITMASK
i+19	 I	NCLB_PREAMP_GAIN_FITMASK 
i+20	 I	NCLB_PREAMP_HIGH_PASS_RC_FITMASK 
i+21	 I	NCLB_ELEC_DELAY_TIME_FITMASK		
i+22	 I	NCLB_CABLE_PROP_TIME_FITMASK
i+23	 I	NCLB_COUNTER_PROP_TIME_FITMASK
i+24	 I	NCLB_DELAYLINE_PROP_TIME_FITMASK	
i+25	 I	NCLB_PREAMP_IMPEDANCE_FITMASK
i+26	 I	NCLB_NCD_CABLE_IMPEDANCE_FITMASK
i+27	 I	NCLB_RESISTIVE_COUPLER_FITMASK
i+28	 I	NCLB_NCD_IMPEDANCE_FITMASK
i+29	 F	NCLB_SCOPE_OFFSET_FITMASK

i+30	 F	NCLB_HP_PDS_RC				Combined RC time constant of the HP+PDS
i+31	 F	NCLB_100K_RC				RC time constant of the 100K+parasitive capacitor system 
i+32	 F	NCLB_100K_F				F factor of the 100k+parasitive capacitor system
i+33	 F	NCLB_DELAY_LINE_RC			RC time constant of the delay line
i+34	 F	NCLB_CABLE_RC_ROUNDTRIP			RC dispersion constant of the NCD cable+resistor coupler (round trip)
i+35	 F	NCLB_CABLE_RC_ONEWAY			RC dispersion constant of the NCD cable+resistor coupler (one-way)
i+36	 F	NCLB_COUNTER_RC				RC dispersion constant of the counter per unit length (ns/cm)
i+37	 F	NCLB_PREAMP_RC				RC time constant of the preamp low-pass 
i+38	 F	NCLB_MUX1_GAIN				Gain factor of the low-pass filter before the logamp in the mux box
i+39	 F	NCLB_MUX1_RC				RC time constant of the low-pass filter before the logamp in the mux box
i+40	 F	NCLB_MUX2_GAIN				Gain factor of the low-pass filter after the logamp in the mux box
i+41	 F	NCLB_MUX2_RC				RC time constant of the low-pass filter after the logamp in the mux box

i+42	 I	NCLB_HP_PDS_RC_FITMASK
i+43     I	NCLB_100K_RC__FITMASK 
i+44     I	NCLB_100K_F_FITMASK
i+45     I	NCLB_DELAY_LINE_RC_FITMASK
i+46	 I	NCLB_CABLE_RC_ROUNDTRIP_FITMASK
i+47	 I	NCLB_CABLE_RC_ONEWAY_FITMASK
i+48	 I	NCLB_COUNTER_RC_FITMASK
i+49	 I	NCLB_PREAMP_RC_FITMASK 
i+50	 I	NCLB_MUX1_GAIN_FITMASK
i+51     I	NCLB_MUX1_RC_FITMASK
i+52	 I	NCLB_MUX2_GAIN_FITMASK
i+53	 I	NCLB_MUX2_RC_FITMASK
		
i+54..81 I	NCLB_SPARE
				

Go Back to the Snoman Companion Top Page