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 Fix] In DAC scan analysis, ADC error was not being set correctly #255

Closed AndrewLevin closed 5 years ago

AndrewLevin commented 5 years ago

We are applying a scaling factor to the calibrated ADC value, and we should also apply this to its error.

Description

Types of changes

Motivation and Context

This pull request should resolve the issues with BLCC DAC scans reported in https://indico.cern.ch/event/855869/contributions/3601787/attachments/1929074/3194549/dac_variations_qc8_vs_p5_18-10.2019.pdf

How Has This Been Tested?

Yes, I have tested this on coffin data:

With the HEAD of develop:

SummaryGE11-X-S-INDIA-0002_DACScan_CFG_BIAS_PRE_I_BLCC

With this pull request:

SummaryGE11-X-S-INDIA-0002_DACScan_CFG_BIAS_PRE_I_BLCC

Screenshots (if appropriate):

Checklist:

jsturdy commented 5 years ago

So this was not being done for any of the DACs, correct? Just in this case (and maybe also CFG_HYST we saw it more clearly due to the range issue? (can you also show a before/after of CFG_HYST and another that were already appearing "normal"?)

AndrewLevin commented 5 years ago

Yes, this was not being done for any of the DACs, but it has the largest effect for those DACs with scaling factors most different from 1. Because we have a lot of data points to fit, the errors are less important unless they are wildly off, which is the case for BLCC, because the scaling factor is 100.

CFG_HYST DAC scan analysis with HEAD of develop:

SummaryGE11-X-S-INDIA-0002_DACScan_CFG_HYST

CFG_HYST DAC scan analysis with this pull request:

SummaryGE11-X-S-INDIA-0002_DACScan_CFG_HYST

CFG_BIAS_SD_I_BSF DAC scan analysis with HEAD of develop:

SummaryGE11-X-S-INDIA-0002_DACScan_CFG_BIAS_SD_I_BSF

CFG_BIAS_SD_I_BSF DAC scan analysis with this pull request:

SummaryGE11-X-S-INDIA-0002_DACScan_CFG_BIAS_SD_I_BSF