HV calculation base on Gain Curves

From Hall A Wiki
Jump to: navigation, search

HV calculation

This script calculate the desired voltages for HAND scintillators in two cases:

  1. Cosmic run=1;
  2. Beam (run=0)

The difference is in the desired ADC channel for each layer. For cosmic, the energy deposit is different between the layers because the heights difference of bars. The ADC channel location is added based on the minimum ionizing particlas with 2.2 MeV/cm Energy deposit.

In the beam case, all bars have same width, however the kinetic energy of protons is decreasing as we moving from layer 1 to 6. Correct values for the ADC channels must be added to the code.


This script must be run with "read_gain.C" and gain curve parameter must be available in the corresponding .dat file.


The output of this script are two files, one for left side and second for the right side, with voltage values.