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

Maintenance: Update CFG_CAL_DAC to Charge Conversion for v3 #110

Closed bdorney closed 6 years ago

bdorney commented 6 years ago

Description

The vfat3 team has decided to change the convention for the calibration coefficients calDAC2Q_m and calDAC2Q_b. Previously in voltage step mode the "inverted" CFG_CAL_DAC register value was used, i.e.:

Q = calDAC2Q_m * (256 - CFG_CAL_DAC) + calDAC2Q_b

Now the raw register value will be used, e.g.:

Q = calDAC2Q_m * (CFG_CAL_DAC) + calDAC2Q_b

Types of changes

Motivation and Context

This was reported by Henri who is developing the vfat3 production testing:

My idea was to make the fit on the raw register value so the charge equation for the voltage mode would become: Q=m*CAL_DAC+b which in my mind would be more straight forward and avoid confusion about when the inversion is used and when not.

How Has This Been Tested?

Took a new scurve and analyzed the data.

Screenshots (if appropriate):

summary

Note VFAT5 & 12 were masked in this test.

Checklist: