Closed AndrewLevin closed 5 years ago
In my test, the calibration file was placed in $DATA_PATH/[chamber name]/ and the script correctly finds it and parses it, so there is no error message. This resolves the issue that @bdorney raised where a calibration file was correctly found but not correctly parsed. I have also tested that when the calibration file is not placed in $DATA_PATH/[chamber name]/ and also not provided through --calFileList
the script still correctly reports the error message
Skipping OH0, detector GE11-X-S-INDIA-0002, missing ADC0 calibration file:
/data/bigdisk/GEM-Data-Taking/GE11_QC8//GE11-X-S-INDIA-0002/calFile_ADC0_GE11-X-S-INDIA-0002.txt
No OHs with a calFile, exiting.
and exits.
OK, got it, thanks
anaDACScan.py did not work when calFiles were not explicitly passed but provided in $DATA_PATH/[chamber name]/.
Description
Currently, when a calFile is found in $DATA_PATH/[chamber name]/, the OH is kept in the list of OHs to calibrate, but the calFile is not parsed, causing the KeyError reported by @bdorney in https://github.com/cms-gem-daq-project/gem-plotting-tools/issues/171. This pull request parses these calFiles and stores the calibration information.
Types of changes
Motivation and Context
This pull request address https://github.com/cms-gem-daq-project/gem-plotting-tools/issues/171
How Has This Been Tested?
Yes, it has been tested in a virtual environment:
Command executed:
Tail of output:
Screenshots (if appropriate):
Checklist: