Change the maximum fit range allowed in Backplane Pulsing.

Due to the amplifier plateau at the end of its range. According to the
datasheet of the amplifier (Analog devices model ADA4870) the output
voltage swing is 37 V with a 40 V supply. This is the cause of the
non-linearity at the end of the scans. The fit should only extend to
7 V - (3 V / gain factor of 5) = 6.4 V. All modules have been rerun.
This commit is contained in:
redford_s
2019-07-29 12:28:57 +02:00
parent ef9edbf1fc
commit 2c2251a43d

View File

@@ -13,6 +13,18 @@
#include "TLegend.h"
#include "TPaveText.h"
double checkRangeMaxForAmplifierPlateau(double range_max) {
// check that the range maximum is no more than 6.4 V
// to avoid non-linearity coming from amplifier plateau
if (range_max > 6400) {
return 6400;
} else {
return range_max;
}
}
int main(int argc, char* argv[]) {
jungfrauStyle();
@@ -501,6 +513,7 @@ int main(int argc, char* argv[]) {
rangemin_g1 = lowestPointAfterSwitching(r1_filter,r0_filter);
rangemax_g1 = *max_element(r1_filter.begin(),r1_filter.end());
rangemax_g1 = checkRangeMaxForAmplifierPlateau(rangemax_g1);
if (rangemax_g1 > rangemin_g1) {