Time Resolution Test
Purpose
This test examines the uncertainty in the measured arrival time of a photon
recorded by a DOM.
Rationale
Much of the functionality of the IceCube detector will depend on the ability
of DOMs in the ice to resolve light signals to within a small number of
nanoseconds. This is especially important for the StringProcessor and detector
triggers which will need to depend on the accuracy of the detection times in
order to establish coincidence. Rap Cal, which is used to calibrate all of the
DOMs in the detector to a single clock for coincidence purposes, introduces a
small uncertainty. We need to characterize the uncertainty in the results from
a DOM after Rap Cal correction, but we also need to understand the portion of
that uncertainty that results from the hardware on the OM itself and not as a
result of its interaction with Rap Cal.
This analysis studies both of these quantities and uses them to make its
pass/fail decisions.
Data Recording Example
- Set the temperature in the freezer to -45 C and allow it to settle for twenty
minutes. Continue electronic set-up.
- Set high voltage, discriminator, bias voltage to optimal values. If these
have not yet been computed, find them using the Gain v High Voltage analysis
and set the optimal values.
- Record 32-sample data from ATWD channel 0 using 8-bit resolution and using the
SPE discriminator trigger.
- Adjust monitor rates to record hardware event records and external monitor
records at 1 Hz.
- Set the light source to fire 1ns pulses at a rate of 1 kHz.
- Record at least 10 minutes worth of data.
External Input
This test will require information concerning the overall transit difference
between the electronic monitoring board and the DOMs in the freezer. This is
called Laser_Sync_Offset in the test setup description, and in the final
implementation, it should be available from the database.
This test will need to know the ID of the reference board that receives the
electrical synchronization signal. In the final implementation, this quantity
should be queried from the database.
Monitor Limits
- Stable temperature
- Stable high voltage
Analysis Products
- IHistogram1D rapcalCorrectedTimeDifferences -- Stores the time differences
between the zero-centered mid-line, which includes a correction for
Laser_Sync_Offset, and the Rap Cal corrected timestamp in the wrapper for the
hit records recorded by the DOM. (stored)
- IHistogram1D uncorrectedTimeDifferences -- Stores the time differences
between the zero-centered mid-line and the uncorrected timestamps reported in
the hit records recorded by the DOM. (stored)
- ITuple laserTriggers -- Stores the external monitor record timestamps and
laser trigger rates from the input data.
- ITuple singleSecondEntries -- Stores the following fields for each one
second interval in the input: first timestamp, first timestamp correction,
laser firing period, laser firing period derivative. (stored)
- ITuple speTimestamps -- Stores the time stamps offsets from a starting value
extracted from both the wrapper and the raw hit record for each SPE recorded by
the DOM.
- Variable averageRiseTime -- stores the 20-80 rise time from the average SPE
waveform computed for each DOM. (stored)
- Variable averageFallTime -- stores the 80-20 fall time from the average SPE
waveform computed for each DOM. (stored)
- Variable averagePulserPeriod -- stores the average period in ns for the
firing of the SPE laser pulse. (stored)
- Variable correctedRecordCounter -- stores the number of records with Rap Cal
corrected timestamps stored in the associated histogram.
- Variable firstHitTimestamp -- stores the value of the first timestamp
processed for this DOM. This value will later be used to set the offsets stored
in the ITuple to their correct value.
- Variable firstWrappedTimestamp -- stores the value of the first Rap Cal
corrected timestamp processed for this DOM. This value will later be used to
set the offsets stored in the ITuple back to their correct value.
- Variable previousExternalTimestamp -- stores the value of the previous
external monitor timestamp. This is done to ensure that each external record is
processed only once.
- Variable uncorrectedRecordCounter -- stores the number of uncorrected raw
timestamps stored in the associated histogram.
Analysis Strategy
1. Init
Take no action.
2. Define Tree Hierarchy
- DOM Id
3. Process Records
- If this is the first record for this Leaf,
- Extract its corrected and raw timestamps and store them in the appropriate
Variable objects.
- Add a Waveform object to hold the running average waveform to the Leaf.
- Add a Waveform object to hold the running RMS to the Leaf.
- Get the previous external monitor record and check its timestamp against
the value stored in previousExternalTimestamp. If this is a new external
monitor record, extract its laser trigger rate and add its timestamp and trigger
rate to laserTriggers.
- Get the previous monitor record and find the bias voltage and temperature
recorded for the current time interval.
- Use the parameters extracted above to query the database for the pedestal
pattern for this DOM under the current monitor conditions.
- Subtract the pedestal from the waveform and set its baseline from the
database.
- If this record has no pulse, discard it.
- Find the leading edge of the pulse in the record.
- Extract the corrected and raw timestamps from the record and subtract from
them the values stored in firstWrappedTimestamp and firstHitTimestamp
respectively.
- Add the leading edge offset to the subtracted timestamps from above.
- Store the result in speTimestamps.
- Increment the counters.
- Subtract the baseline and pedestal pattern from the waveform in this hit
record.
- Compute the area of the waveform in this hit record and normalize the
waveform to produce an area of 1.
- Re-sample the waveform to 1 ns samples.
- Add the re-sampled waveform to the Waveform that will become the average.
- Add the square of the re-sampled waveform to the Waveform that will become
the RMS.
4. Finish analysis
For each second of data from the electrical trigger board:
- Find the first timestamp in the one second interval and add it to
singleSecondFields.
- Use the laser-firing period as the range for a 1D histogram with a bin size
of 1 ns
- Fill the histogram with the stored trigger timestamps modulo the firing
period converted to nanoseconds
- Find the mean of the histogram, which should be Gaussian. Also check for
bad behavior like a split pulse.
- Calculate an offset that will move the mean to the center of the histogram.
Store this value in singleSecondEntries, and use this value in subsequent steps
to guarantee that the center of the distribution is well centered in the
histogram.
- Create a histogram that splits the period between laser firings plus a
margin of error into 100 segments.
- Subtract the current second begin-time from the current timestamp.
- Divide the result by the number of records in the second so far, including
this one, and cast it to an integer.
- Store the result from above in the histogram.
- Compute the mean of the histogram. This is the average period of laser
firing during this second.
- Create a new datapointset whose x-axis represents the 2 sigma range of the
zero-centered laser firing period, and which is separated into 101 bins.
- Create a 1D histogram for each bin in the datapointset.
- For each stored timestamp, find the difference between it and the nearest
timestamp projected by the firing period in the vector for this second.
- Find the appropriate bin for this timestamp and add the difference to the
appropriate histogram.
- Find sigma for each histogram and set it in the y-coordinate of the
datapointset.
- Fit the datapointset with a parabolic fit function and find the minimum of
the fit.
- Store the value found above as the derivative of period in time in
singleSecondEntries.
For the optical modules:
- Compute the average waveform and its RMS.
- Compute the rise time and fall time of the average waveform and fill the
relevant Variables with the result.
- Reset the counters.
- For each corrected timestamp:
- Use the system delay constant to find the nearest trigger timestamp.
- If the timestamp is separated from the trigger stamp by less than 50 ns,
fill the corrected time histogram with the difference.
- Increment the corrected record counter.
- For each uncorrected timestamp:
- Compute the timestamp of the nearest expected laser pulse.
- If the difference between the timestamp and the nearest expected laser pulse
is more than 50 ns, discard this record.
- Store the leading edge time in an array.
- When all uncorrected timestamps have been processed, compute the following
in the same way they were computed for the electrical trigger pulses:
- Arrival time distribution modulo pulse interval
- Arrival time correction
- Best fit laser firing period
- Best fit laser firing period derivative
- Width of the arrival time distribution when the best-fit parameters are used
Judgement Products
Pass, fail or incomplete decision. Failure message if fail or incomplete.
Judgement Strategy
- Recover xml tree from disk.
- Perform analysis functions.
- Compare results of analysis with pass/fail/incomplete criteria.
- Report a decision for each DOM.
- Make a failure report, if applicable.
Judgement Criteria:
- incomplete: Either the corrected or uncorrected counter is less than
10,000.
- fail:
- Corrected time difference histogram has a mean greater than 15 ns OR
- Uncorrected time difference histogram has a mean greater than 5 ns OR
- Average deviation of transit time from design value is greater than 5 ns OR
- Average rise time more than 5 ns (20%-80%) OR
- Average fall time more than 10 ns (80%-20%)
- pass: all else
Analyze
- Compute mean of corrected timestamp deviation histogram.
- Compute mean of uncorrected timestamp deviation histogram.
- Examine each correction contained in singleSecondEntries. Subtract the
absolute value of the correction from the value in averagePulserPeriod to find
the deviation of the PMT transit time from the design value for this second,
and average the result.
Glossary
(describe the quantities you dealt with in this test. Aim for a
self-contained description.)