CLAS Calibration Database tests
David Lawrence
11/17/00
Several tests of the CLAS calibration database have been devised to check its
functionality against that of the Map. The database is accessed through
a set of wrapper routines placed inside of the caldb library. This library (along
with libmysqlclient.a and libz.a) were linked against when making a1c and dc3
executables. Executables were also created from the same code, but linked against
libmapmanager.a in the traditional way.
The two a1c executables (a1c_map and a1c_db) were used to cook 70K events from
the same source file from run 20020 of the g2a dataset.
Next, the PROD-2-0 trk_mon executable was used to process each of the output files.
The trk_mon results are shown below. The database results are on the left and the
map results are on the right.
The two upper tables (hbt/evnt... and SL_RMS) are from statistics. These seem to
be in very close agreement. Descrepancies are possibly due to round-off errors.
The lower two tables (SL_DOCA_FLATNESS and beam coordinates) come from fits and
are very sensitive to subtle differences. See below for more on this.
To check the sensitivity of the fit values from trk_mon, trk_mon was run again
but only using 99% of the 70k events (69.3k). While some differences are observed,
they are not quite as large as those from the database.
The second check of the database is to write values into it using a calibration
program such as dc3. This will be done by writing some new values for t0 and
tmax into the database and a temporary map. The source file will then be cooked
again to see that the map and database give similarly (bad) results. The original
values will then be re-inserted and the source file cooked once more to check
overall reproducability of both methods. Here is a table of the starting and
modified values of t0 and tmax for those Sectors/Superlayers that were changed:
| \ |
T0 Starting Value |
T0 Modified Value |
Tmax Starting Value |
Tmax Modified Value |
| S1SL6 |
16.6582 |
50.6582 |
1496.06 |
1496.06 |
| S2SL5 |
2.84105 |
2.84105 |
1140.52 |
1500.52 |
| S3SL4 |
8.88173 |
50.8817 |
695.262 |
695.262 |
| S4SL3 |
7.62879 |
7.62879 |
633.869 |
700.869 |
| S5SL2 |
-1.70727 |
50.7073 |
214.843 |
214.843 |
| S6SL1 |
17.5674 |
17.5674 |
218.567 |
300.567 |
David Lawrence
davidl@jlab.org
Fri Nov 17 13:42:39 EST 2000