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

Bug report: plot_eff.py searches for branch "lat" which does not exist #126

Closed AndrewLevin closed 6 years ago

AndrewLevin commented 6 years ago

plot_eff.py crashes after attempting to find a branch that does not exist in its input file, which is the output of the latency scan script ultraLatency.py. So, there is an inconsistency between plot_eff.py and ultraLatency.py

Types of issue

Current Behavior

[gemuser@gem904qc8daq gemdaq]$ ls -lh /data/bigdisk/GEM-Data-Taking/GE11_QC8//GE11-VII-S-CERN-0002/latency/trk//2018.07.04.22.07/LatencyScanData.root
-rw-r-----. 1 gemuser gemuser 13K Jul  5 06:50 /data/bigdisk/GEM-Data-Taking/GE11_QC8//GE11-VII-S-CERN-0002/latency/trk//2018.07.04.22.07/LatencyScanData.root
[gemuser@gem904qc8daq gemdaq]$ cat listOfScanDates.txt
ChamberName scandate    VT_{1}
GE11-VII-S-CERN-0002    2018.07.04.22.07    0
[gemuser@gem904qc8daq gemdaq]$ plot_eff.py --infilename=listOfScanDates.txt --vfatList=12,13 --latSig=33 --print
Error in <TTreeFormula::Compile>:  Bad numerical expression : "lat"
/data/bigdisk/GEM-Data-Taking/GE11_QC8//GE11-VII-S-CERN-0002/latency/trk//2018.07.04.22.07/LatencyScanData.root does not seem to exist
the branch or expression 'lat' is not present or valid

Possible Solution (for bugs)

Change the name of the branch that plot_eff.py searches for from 'lat' to 'latency'

Your Environment

I am working as gemuser on gem904qc8daq