cms-gem-daq-project / gem-plotting-tools

Repository for GEM commissioning plotting tools
GNU General Public License v3.0
1 stars 26 forks source link

Wrong Path for trim compare in plotSCurveFitResults.py #209

Open simonepv opened 5 years ago

simonepv commented 5 years ago

Brief summary of issue

Wrong path searched when a specific scan date is required

Types of issue

Expected Behavior

plotSCurveFitResults.py when called with the command plotSCurveFitResults.py --anaType=trimAna --drawLeg -i listOfScanDates_Scurve.txt --alphaLabels should create five different files. The file listOfScanDates_Scurve.txt contains the scandate we want to compare and has the following format

[gemuser@gem904qc8daq ~]$ cat listOfScanDates_Scurve.txt 
ChamberName     scandate        Cal
GE11-X-S-INDIA-0005     2019.05.20.18.28        Per_VFAT_ARM_DAC_Cal
GE11-X-S-INDIA-0005     2019.05.22.14.36        Avg_ARM_DAC_Cal

Here the columns are separated with \t, so do not use VIM editor to edit this file, beacuse it will substitute \t with \s.

plotSCurveFitResults.py for the scandate 2019.05.20.18.28 should look for the following path /data/bigdisk/GEM-Data-Taking/GE11_QC8/GE11-X-S-INDIA-0005/trim/2019.05.22.18.28

Current Behavior

plotSCurveFitResults.py for the scandate 2019.05.20.18.28 looks to this path /data/bigdisk/GEM-Data-Taking/GE11_QC8//GE11-X-S-INDIA-0005/trim/z4.000000//2019.05.20.18.28

Steps to Reproduce (for bugs)

  1. login to gemuser@gem904qc8daq
  2. attach to a screen: screen -S <nameOfTheScreenYouWant>
  3. create the file listOfScanDates_Scurve.txt in the current directory as explained above
  4. execute plotSCurveFitResults.py --anaType=trimAna --drawLeg -i listOfScanDates_Scurve.txt --alphaLabels

Possible Solution (for bugs)

A possible solution is to modify the path called in plotSCurveFitResults.py, removing string z4.000000 from path

Context (for feature requests)

This bug prevents the match of scurves taken on chambers in QC8 at different scanDates

Your Environment

NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)"