Checking some new SVT constants with svtsim

Here's what I did, 2002-09-29, to check the constants about which Roberto send e-mail yesterday. This procedure may be helpful in pre-checking future constants before loading then into the SVT database.

NB: one may want to discard the little track-based ntuple produced by svtsim in favor of the more general event-based SVTMon ntuple; this is just the (primitive) way I'm accustomed to looking at SVT output.

First, check out and build svtsim

source ~cdfsoft/cdf2.cshrc
setup cdfsoft2 4.6.2
newrel -t $SRT_BASE_RELEASE testconsts
cd testconsts
addpkg -h svtsim
make
make tbin

Then edit svtsim/test/includefiles.tcl to point to data files from recent SVT calibration run, e.g. 152133.

Then run svtsim/test/svtsim_data.csh, but ctrl/C it after it loads the SVT database constants and caches them in svtsim/svtdata. Unpack Roberto's new constants, make a new mapset file, and bring in the new files. It is important to use unique filenames, preferably containing the date in YYYYMMDD form, as the database uses these filenames as a primary key, and no duplicates or overwrites are allowed.

scp b0dap30:~carosi/fixed_092702.tar .
tar -xvf fixed_092702.tar
cd svtsim/svtdata
cp offline_100030_20020927111044.mapset offline_100030_20020929.mapset
cp fixed_092702/mixed_w00.ss ./mixed_20020929_w00.ss
cp fixed_092702/092302_w0_fixed.patt ./20020929_w00.patt
cp fixed_092702/092302_w9_fixed.patt ./20020929_w09.patt

Edit offline_100030_20020929.mapset: change B3W9 and B5W0 to X01X235 in w00_layerMap and w09_layerMap lines; change mapsetCrc to 0 (as a wildcard); delete CRC's from bottom of file; change mapsetName to something you will recognize in the svtsim printout; update the names of the updated .ss and .patt files.

Go back to the top directory of the test release. Edit svtsim/test/svtsim_data.tcl. Change

    #useDB set f
    #mapSet set gshift_mixed_20020727000000
    #hwSet set 20020731
to
    useDB set f
    mapSet set offline_100030_20020929
    hwSet set 20020925204915

Then run svtsim/test/svtsim_data.csh. When it finishes, start PAW and execute macro svtsim/test/svtsim_ntuple. Compare DAQ==1 (real SVT) with DAQ==0 (emulated SVT) to see if changes were an improvement.

exec svtsim/test/svtsim_ntuple
zone 1 2
nt/plot 1.zin%w daq==0 ! ! ! box
nt/plot 1.zin%w daq==1 ! ! ! box