Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Algorithm required for calculating ISIS SANS analyser efficiencies #36140

Closed
10 tasks
rbauststfc opened this issue Sep 20, 2023 · 1 comment · Fixed by #36999
Closed
10 tasks

Algorithm required for calculating ISIS SANS analyser efficiencies #36140

rbauststfc opened this issue Sep 20, 2023 · 1 comment · Fixed by #36999
Assignees
Labels
ISIS Team: LSS Issue and pull requests managed by the LSS subteam at ISIS SANS Issues and pull requests related to SANS
Milestone

Comments

@rbauststfc
Copy link
Contributor

rbauststfc commented Sep 20, 2023

An algorithm is required to calculate the efficiency of the 3He analyser based on one measurement. This calculation will make use of hyperbolic functions created under issue #36137.

The algorithm will need to take a list of run numbers and also the transmission/opacity calculated from #36383. It will output the polarisation efficiency as a function of wavelength, for each run.

Under issue #36142, a step will be added later in the overall Polarised SANS workflow to take into account the time of each run to find the time-dependent polarisation efficiency.

This is required for the Polarised SANS reduction.

Calculations

  • Calculate the efficiency of the cell, P, from (Tnsf-Tsf)/(Tnsf+Tsf) using data from a run, where Tnsf = T00 + T11 and Tsf = T01 + T10.
  • We can then fit P = tanh(μ * pHe) to get pHe.
    • P is the measured efficiency for the given data
    • pHe is the analyser efficiency

Workflow Steps

  • Inputs:
    • Run number to load
    • Period positions (++ and +- needed for this step)
    • p * d and T_E (Fit params from Transmission Calc)
  • Load input run
  • Calculate P using the above equation
  • Fit P = tanh(μ * pHe) to get pHe
  • Outputs:
    • Single spectra output for wavelength-dependent efficiency
    • Fit Params (pHe)
@rbauststfc rbauststfc added SANS Issues and pull requests related to SANS ISIS Team: LSS Issue and pull requests managed by the LSS subteam at ISIS labels Sep 20, 2023
@rbauststfc rbauststfc changed the title Algorithm(s) required for calculating ISIS SANS analyser efficiencies Algorithm required for calculating ISIS SANS analyser efficiencies Nov 8, 2023
@dehoni
Copy link

dehoni commented Dec 5, 2023

In order to get later corrected data in absolute units, it should output the transmission of the wanted and unwanted spin state through the device as a function of wavelength, for each run. Having this the polarization efficiency is easy to calculates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ISIS Team: LSS Issue and pull requests managed by the LSS subteam at ISIS SANS Issues and pull requests related to SANS
Projects
Status: Done
Status: Scientist Review
Development

Successfully merging a pull request may close this issue.

4 participants