CharBiasVoltageV1R0
Purpose
Determine the optimum front end bias voltage at which a given DOM
should be
operated and the optimum front-end bias voltage.
Rationale
The PMT frontend bias voltage (in the hardware state event it is called
DAC_PMT_FE_PEDESTAL where 'pedestal' is slightly misleading)
represents a DC bias to the input signal before it enters the
digitizers (See Figure \ref{pedPatternAtFEBiasVFig}). The ATWD applies
different gain amplification to the AC signals in its first three data
channels. The DC-level, however, is not affected by these different
gains, all DC input adds as a constant offset onto the data of all
three channels.
Too high or too low a frontend bias voltage will drive the pedestal
pattern (or any signal) out of the dynamic range of a given digitizer
channel (c.f. Figure \ref{scanSuggestionATWDFig}).
In turn, the correct value for the frontend bias voltage will allow
one to make best use of the dynamic range of all available channels.
Here the baseline level (the average over a pedestal record across
all available samples) is used to compute the optimal bias voltage
level for a given channel.

Pedestal patterns recorded at two different values of the PMT
frontend bias voltage, introducing a DC offset to all input in the
digitizers.

The pedestal RMS across all samples is sketched as a
Gaussian in the top drawing. The lower drawing shows the
distribution of these RMS values across the dynamic range of the
channel. At the lower and upper ends of the dynamic ranges the
RMS
gets smaller as more and more of the features are suppressed in
favour of flat cutoff lines with an RMS of zero.
During data recording the output level in pedestal records (CPU
triggers) is driven across the dynamic range of all available
channels. The goal is, to cover the available range in each channel
with at least seven ({\bf TBD}) data points, as is sketched in Figures
\ref{scanSuggestionATWDFig} and \ref{rmsVsBiasVoltageFig}.
Also shown in Figure \ref{rmsVsBiasVoltageFig}, lower panel, is the
effect of the edges of the dynamic range on the RMS width of the
pedestal pattern, computed across all available samples.
One goal of this analysis is to extract the optimal value for the
DAC\_PMT\_FE\_PEDESTAL value on the mainboard. This value is first
determined for each channel separately. Secondly, the highest of them
is suggested to be used in the operation of the DOM.
The optimum value of DAC\_PMT\_FE\_PEDESTAL is characterised by an
offset of the baseline level from the lower end of the dynamic range
of two times ({\bf TBD}) the average pedestal RMS level, plus some
allowance for pulse undershoot (negative pulses display positive
overshoot, turning into a negative overshoot due to the signal
inversion in all DOM channels).
Data Recording
HV off
CPU trigger
FADC 255 samples deep
ATWD channels all 128 samples deep
scan the bias voltage across its entire range in 20 regular steps
record 1000 pedestal patterns at each step

Measurement data points for the
different channels in the ATWD.
Data Requirements / Completeness Criteria
For any given temperature, at least seven ({\bf TBD}) steps in bias
voltage should span the available range in each channel.
1000 pedestal patterns per bias voltage step must be available that do
not contain patterns that are considered pulses in any channel, that
is, they can't exceed the three-Sigma pedestal noise level consistently.
Monitor Limits
stable DOM MB temperature
stable DAC\_PMT\_FE\_PEDESTAL

Each DOM's data is sorted according to temperature and the
value of the PMT frontend bias voltage.

At each analysis leaf all input data are combined that
represent stable conditions in the quantities listed.
Analysis Products
data analysis:
At each leaf (i.e. temperature and front-end pedestal), variables that
hold for each digitizing channel:
- (store) a counter for the number of waveforms in this leaf
- (store) sum of baseline levels (to be divided by the number of
entries later to form the mean baseline level)
- (store) sum of the squares of the baseline levels (to be divided
by the number of entries later to help compute the uncertainty of the
baseline level)
- (store) a counter for the number of monitor records available in
this leaf
- (store) sum of front-end bias voltages (to be divided by the
number of monitor records later to form a mean)
- (store) sum of the squares of the front-end bias voltages (to be
divided by the number of monitor records later to help compute the
uncertainty in front-end bias voltage)
Analysis Strategy
1. Init
Make clear in the java-comments that the hit analysis carries out its
math in units of ticks (not mV, judgement is doing that).
2. Process Records
For each monitor record
:
- Make sure that the monitor record in question is used exactly
once only
- Count up the counter for the monitor records
- Add the front-end bias voltage to the variable that is to become
the mean later
- Add the square of the front-end bias voltage to the variable that
is to become the RMS later
For each hit record
:
If the hit record does not contain a pulse (TBD: define the
criteria for 'pulse'):
- Count up the number of entries in that leaf
- Add the pedestal level (baseline level) to the variable that is
to become the mean later
- Add the square of the pedestal level (baseline level) to the
variable that is to become the RMS later
3. Finish analysis
The means and RMS values are computed in judgement, as a cut needs to
be performed on the number of entries in each leaf, therefore nothing
to be done here.
Judgement Criteria
Pass:
Fail:
Incomplete:
If there are fewer than 7 data points available for the bias voltage
estimate of any channel, rule 'incomplete'.
Judgement Products
- For each channel in ATWD0, ATWD1 and in the FADC the optimum bias
voltage and its error.
- An optimum bias voltage for the DOM
Judgement Steps
- Obtain the calibration constants (offset and slope) from tick to
mV for each channel.
- Apply calibration constants and convert variables from ticks to
mV units.
Extract the optimum bias voltage
For each Leaf:
For each channel:
- check if there are more than 300 ({\bf TBD}) entries available
for that leaf
If this condition is satisfied:
- obtain mean and RMS of pedestal Level for each leaf
- obtain mean and RMS of front-end bias voltage for each leaf
- fill a histogram that relates front-end bias voltage means (and
RMS as uncertainties) and baseline levels (and RMS as uncertainties).
Only use data points where the RMS of the pedestal baseline level is
not zero (that should help de-select measurements / data points where
the dynamic range limits have been hit.
- Once all the leaves have been looped over:
count the number of data points left over for this channel:
whenever for a given DOM any channel does not show seven (TBD) data points, the ruling
is 'incomplete' for this DOM.
Possibility ONE:
- compute the mean RMS of the front-end bias voltage for all data
points
- define the optimum bias voltage as: twice ({\bf TBD}) the mean
RMS of the y Column (pedestal level) plus some allowance to account for
possible undershoot in pulses (TBD)
Alternatively:
- Compute the optimal front-end bias voltage as where 10\% of the
dynamic range is reached and scaling the result to that number of ticks
as it would be observed in the highest-gain channel. Then pick the
highest of these numbers as optimal choice for the DOM.
- This will yield 7 numbers as suggested bias voltages and their
uncertainties.
Estimate a DOM-wise optimum bias
voltage
Select the highest of the suggested bias voltages as optimum bias
voltage for this DOM. (TBD)
Data output
Export an xml file with the optimum bias voltages for each channel and
the optimum bias voltage for the DOM in question.
Pass / Fail
If there are fewer than 7 data points available for the bias voltage
estimate of any channel, rule 'incomplete' (see above).
Glossary (Collection only)
Bias Voltage: the front end pedestal voltage (DAC_PMT_FE_PEDESTAL). a
voltage added directly to the signal digitized by the ATWD channels and
the FADC.