HV calculation based on the Gain curves
From Hall A Wiki
HV Determination
This script calculate the desired HV settings for BigBite's PMTs. Determination of the HV is based on the gain curves measured for each PMT and the desired ADC channel based on energy deposit from protons.
This script must be run with "read_gain.C" and gain curve parameter must be available in the corresponding .dat file.