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 efficiency of ISIS SANS polariser #36139

Open
rbauststfc opened this issue Sep 20, 2023 · 1 comment · May be fixed by #37180
Open

Algorithm required for calculating efficiency of ISIS SANS polariser #36139

rbauststfc opened this issue Sep 20, 2023 · 1 comment · May be fixed by #37180
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

A new algorithm is required to calculate the efficiency of the supermirror polariser. This is required for the Polarised SANS reduction at ISIS and is included in the MVP for the epic.

The algorithm will be used in advance as part of commissioning to calculate the polariser efficiency from a calibration measurement and save the result as a Nexus file. To help ensure that nothing has gone wrong with the experimental setup, the scientists also want to call this algorithm as part of the reduction workflow to calculate the efficiency from the actual experiment measurements and compare it to the commissioning reference file, so it may not be necessary for the algorithm to always save it's output to file (this will need to be confirmed).

Requirements for this still need to be gathered.

Maths

Workflow

Questions

  • Output to file on or off by default?
@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
@dehoni
Copy link

dehoni commented Nov 7, 2023

Extract supermirror polarisation from beamline polarisation determined with a supermirror +3He setup. The performance of the 3He analyser is known (characterisation with unpolarised beam, fitting the time dependence parameter + analytical equation to obtain performance for a given time stamp ).
Simple ratio between transmission measurements and polarisation efficiecy of He analyser cell.

def calculate_polariser(strname,PHe,Error_PHe time, lamdata): 
        Tpara(time,lamdata, idealise,no="0")    #estimated transmission for wanted spin state through 3He analyser for time stamp of measurement
        TparaPSM=mtd['T_para_eff_ws_0'] #measured transmission through the instrument at time
        Tanti(time,lamdata, idealise,no="0")    # same for unwanted spin state
        TantiPSM=mtd['T_anti_eff_ws_0']
        P_analyser= (TparaPSM-TantiPSM)/ (TantiPSM+TparaPSM)
        Divide(LHSWorkspace=PA, RHSWorkspace=P_analyser, OutputWorkspace='PSM_'+strname)

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: Review
Status: In Developer Review
Development

Successfully merging a pull request may close this issue.

4 participants