QC scan

scanConsole and upload the DCS data

Run the scan using the following command.(e.g. digitalscan)
The scan result is automatically stored when you put "-W" option.

./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/std_digitalscan.json -W

Next, run the dbAccessor to upload the DCS data from influxDB to LocalDB:
For monkeyisland

./bin/dbAccessor -F localdb/configs/influxdb_connectivity.json -n 20UPGRA0000026 -s data/last_scan/scanLog.json

For yarrpixdaq

./bin/dbAccessor -F localdb/configs/influxdb_connectivity.json -n 20UPGRA0000027 -s data/last_scan/scanLog.json

influx upload Check the test result and DCS plot from following link http://127.0.0.1:5000/localdb/scan.

demo scan

Test items for tuning are bellow:
- diff_analogscan
- diff_thresholdscan
- diff_totscan
- diff_tune_globalthreshold
- diff_tune_pixelthreshold
- diff_tune_globalpreamp
- diff_retune_pixelthreshold
- diff_tune_finepixelthreshold
- diff_thresholdscan
- diff_totscan

Do this tuning step for the chip using the following commands as a module QC-minick.
If you want to integrate the DCS data for each scan, put the following command between scans.
"./bin/dbAccessor -F localdb/configs/influxdb_connectivity.json -n 20UPGRA0000026 -s data/last_scan/scanLog.json"
or
"./bin/dbAccessor -F localdb/configs/influxdb_connectivity.json -n 20UPGRA0000027 -s data/last_scan/scanLog.json"

./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_analogscan.json -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_thresholdscan.json -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_totscan.json -t 10000 -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_tune_globalthreshold.json -t 1500 -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_tune_pixelthreshold.json -t 1500 -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_tune_globalpreamp.json -t 10000 -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_retune_pixelthreshold.json -t 1500 -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_tune_finepixelthreshold.json -t 1500 -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_thresholdscan.json -W
./bin/scanConsole -r configs/controller/specCfg.json -c db-data/connectivity.json -s configs/scans/rd53a/diff_totscan.json -t 10000 -W

We can also upload the result after the scan.
Add the result path to a cache file(~/.yarr/localdb/run.dat). Then, run the following command.

./localdb/bin/localdbtool-upload cache --database ~/.yarr/localdb/monkeyisland_database.json

Check the test results http://127.0.0.1:5000/localdb/scan.
Please use some viewer functions.(download, search, comment, tag...)

We are also developing the script to run these scan at once.
Scan Operator repo (https://gitlab.cern.ch/YARR/utilities/scan-operator)

Go to next step.
Select and Upload results into Production DB