HV for towers set v_D, relative matching CuCu slopes
Note, The CuCu data are of questionable quality (different runs & timings).
table with gains from slopes. Format:
towerName, gain,eGain, integral. Slope & integral range [ped+10, ped+40]. Gain = -1/slope, errGain=errSlope/slope^2
PROCEDURE:
GainAverage.C Run this file first.
The input file is TowerGain.dat and is from Jan's table.
The output of this file is ratio.dat . This tells you the ratio of the tube's gain to the average gain for it's corresponding tower as well as flagA, flagB and flagC.
flagC = 1 if PMT & CW & HV was not changed from 2004 in HV set V_C. it is 0 otherwise.
ChangeVolt.C Run this file second.
The input file is the previous programs output (ratio.dat) and the output is the new .epics files (find below). Tower were changed if the gain was outside 10% of the average.