Event based reduction for the Liquids Reflectometer
EventReflectivity
Data reduction for the Liquids Reflectometer. List of items to be taken care of outside this class:
- Edge points cropping
- Angle offset
- Putting runs together in one R(q) curve
- Scaling factors
Pixel ranges include the min and max pixels.
Parameters: |
|
---|
__repr__
Generate a string representation of the reduction settings.
Returns: |
|
---|
bck_subtraction
Perform background subtraction on the signal. This method provides a higher-level call for background subtraction, hiding the ranges needed to define the Region of Interest (ROI).
Parameters: |
|
---|
Returns: |
|
---|
emission_time_correction
Coorect TOF for emission time delay in the moderator.
Parameters: |
|
---|
Returns: |
|
---|
extract_meta_data
Extract meta data from the loaded data file.
extract_meta_data_4A
4A-specific meta data
extract_meta_data_4B
4B-specific meta data
Distance from source to sample was 13.63 meters prior to the source to detector distance being determined with Bragg edges to be 15.75 m.
gravity_correction
Gravity correction for each event
Parameters: |
|
---|
Returns: |
|
---|
norm_bck_subtraction
Higher-level call for background subtraction for the normalization run.
off_specular
Compute off-specular
Parameters: |
|
---|
slice
Retrieve a slice from the off-specular data.
specular
Compute specular reflectivity.
For constant-Q binning, it's preferred to use tof_weighted=True.
Parameters: |
|
---|
Returns: |
|
---|
specular_unweighted
Simple specular reflectivity calculation. This is the same approach as the original LR reduction, which sums up pixels without constant-Q binning. The original approach bins in TOF, then rebins the final results after transformation to Q. This approach bins directly to Q.
Parameters: |
---|
Returns: |
|
---|
specular_weighted
Compute reflectivity by weighting each event by flux. This allows for summing in Q and to estimate the background in either Q or pixels next to the peak.
Parameters: |
---|
Returns: |
|
---|
to_dict
Returns meta-data to be used/stored.
Returns: |
|
---|
apply_dead_time_correction
Apply dead time correction, and ensure that it is done only once per workspace.
Parameters: |
|
---|
Returns: |
|
---|
compute_resolution
Compute the Q resolution from the meta data.
Parameters: |
---|
Returns: |
|
---|
get_attenuation_info
Retrieve information about attenuation from a Mantid workspace.
This function calculates the total thickness of all attenuators that are
in the path of the beam by summing up the thicknesses of the attenuators
specified in the global variable CD_ATTENUATORS
.
Parameters: |
|
---|
Returns: |
|
---|
get_dead_time_correction
Compute dead time correction to be applied to the reflectivity curve. The method will also try to load the error events from each of the data files to ensure that we properly estimate the dead time correction.
Parameters: |
|
---|
Returns: |
|
---|
get_q_binning
Determine Q binning.
This function calculates the binning for Q values based on the provided minimum, maximum, and step values. If the step value is positive, it generates a linear binning. If the step value is negative, it generates a logarithmic binning.
Parameters: |
---|
Returns: |
|
---|
get_wl_range
Determine TOF range from the data
Parameters: |
|
---|
Returns: |
|
---|
process_attenuation
Correct for absorption by assigning weight to each neutron event
Parameters: |
|
---|
Returns: |
|
---|
read_settings
Read settings file and return values for the given timestamp
Parameters: |
|
---|
Returns: |
|
---|