Determine the deadtime (as the minimum time between two hit records) and the deadtime percentage.
Any data set collected from a DOM consists of a mixture of hit and monitor records where the frequency at which monitor records are collected is usually lower than that of hit records. The domtest framework sorts all hit and monitor records in time. To any hit analysis all hit records are presented sequentially, together with the previous and the succeeding monitor record.
In this test, the rate at which DOM triggers occur is evaluated once from the counter (scaler) on the DOM mainboard (written into monitor records) and in addition from the collected set of hits. The scaler on the main board has essentially no dead time and counts the discriminator threshold crossings during a fixed time interval of 0.1s, giving an estimate for the rate.
Usually in the digitisation and recording of hit records, a non-zero dead time is present, leading to a lower number of hits collected than triggers counted in the scaler. The scaler, on the other hand, does not keep any record of the arrival time distribution, which is sampled with hit records as permitted by the given dead time.
There is no external input necessary.
1) Verify using the previous monitor record time stamp variable (varLastMonRecTimeStamp) that there is a new monitor record.
2) Convert SPE_scaler counts to units of Hz by multiplying the SPE_scaler count obtained in a 100ms interval with 10 Hz
3) Fill this SPE_scaler rate into the histoSpeScalerRateHz histogram.
4) Calculate the time spent at a given temperature by adding up the difference of the time stamps in the current monitor record to the value in the varLastMonRecTimeStamp unless the varLastMonRecTimeStamp is zero, in which case the has just been entered and it would be wrong to compute anything yet
5) Update the variable varLastMonRecTimeStamp with the time stamp of the monitor record proceeding the current hit record.
For hit records:
1) Read DOM time stamps from actual hit record (not the wrapped time stamp).
2) if the varHitCount has a value of zero, signaling the first entry in the given leaf, set the values of varLastHitTimeStampNis2[10, 50] to the time stamp of the current hit record
3) count up varHitCount
4) if (varHitCount is multiple of 2[10, 50])
compute the corresponding rate as entry for the histogram histoHitRateHzNis2[10,50]:
rate = 40,000,000 * 2[10,50] / (time difference between current hit record and varLastHitTimeStampNis2[10,50])
The factor 40,000,000 translates the DOM clock ticks to seconds, 1s = 40,000,000 ticks
Also: for the appropriate variable (2,10,50) set the value of varLastHitTimeStampNis2[10,50] to the current hit time stamp to prepare for the next computation
For monitor record and hit records:
1) Set the value of varSpeScalerRateHz to the mean of the distribution in the histoSpeScalerRateHz histogram, set error+ and error- to the RMS of this distribution
2) Set the value of varHitRateHzNis2[10,50] to the mean of the distribution in the histoHitRateHzNis2[10,50] histogram, set error+ and error- to the RMS of this distribution
For each DOM a judgement (pass, fail or incomplete) is issued and stored together with its reasoning in the data base.
incomplete:
1) There are no measurements available below temperatures of -20 C.
OR
2) if for any temperature below -20C data recording time is less than 120 secconds
pass:
if there is one or more measurements available at a temperature below -20C with a duration longer than 120 s
AND for all of these
the varSpeScalerRate is below 1kHz AND the RMS of this rate is below a value of 100Hz)
fail:
else.
1) Retrieve varSpeScalerRateHz and varDurationSec.
2) Get mean, error+ and error- from varSpeScalerRateHz.
3) Get value from varDurationSec.
There is nothing to analyze.
For each DOM:
1) Issue "incomplete" either if all available temperatures are higher than -20C, or if the value of varDurationSec is less than 120 sec with temperature below -20 C
2) Issue "pass" if mean and error+/error- from varSpeScalerRateHz are less than 1000Hz and 100Hz, respectively
with temperature below -20 C and varDurationSec more than 120 sec
3) Issue "fail" if neither of the above are satisfied
(describe the quantities you dealt with in this test. Aim for a self-contained description.)