For each beam pulse:
[math] ADC_{ave}^{pulse}=\frac{\sum_{i=1}^{16}{ADC_{i}*i}}{\sum_{i=1}^{16}{ADC_{i}}}; [/math]
For distribution over all beam pulses:
[math] ADC_{ave}={ \sqrt { \sum_{i=1}^{pulses}{ \left(ADC_{ave}^{pulse} - ADC_{ave} \right)} }}
; [/math]
Below is the plot of the charge in Faraday cup (pC) as a function of magnet current (vertical axis, A) (basically magnetic field) and ADC (horizontal axis).