scipp / esspolarization

Polarization data reduction for the European Spallation Source
https://scipp.github.io/esspolarization/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Meeting notes 29/11/2023 #2

Open astellhorn opened 7 months ago

astellhorn commented 7 months ago

Presentations: 1) Annika: overview of polarization correction workflow and polarization components 2) Simon: overview on a typical pipeline in scipp

Discussions:

To do:

SimonHeybrock commented 7 months ago

I am in particular unsure about how the time-dependence of the polarizer and analyzer transmission functions interact with the time-dependence of the monitors (and other normalization terms). Consider, e.g., SANS normalization (or the equivalent definition for $I(Q_x,Q_y)$: image

Assume we have event-mode detector data and event-mode monitor data. We have the following options:

  1. Handle polarization after computing $I(Q_x,Q_y)$. This would imply we need wavelength and time information. This could be done:
    1. in event mode (by normalizing in event mode[^1]) to handle time and wavelength dependence for the detectors, but I don't think it would work unless the monitors are unaffected by the polarization corrections, since the monitor also depends on time and wavelength.
    2. in histogram mode, computing $I(Q_x, Q_y, t, \lambda)$
  2. Handle polarization before normalization. We can then independently treat detector data and monitor data before feeding them into the above equation.
    • Are there terms that actually cancel out here? May depend on relative position of monitors and polarizer/analyzer.

[^1]: This can cause trouble with error propagation

SimonHeybrock commented 7 months ago

Conclusion based on discussion:

  1. $I$ from paper is $C/M$.
  2. Apply polarization correction to that vector
  3. Sum over time and wavelength afterwards?

Questions (for @SimonHeybrock):

astellhorn commented 7 months ago

First, here is the .pptx and .pdf file of my presentation, after including some corrections and clarifying the calculations and background measurements Annika - Overview presentation on pol analysis in general.pdf Annika - Overview presentation on pol analysis in general.pptx

Overview table workflow.docx

astellhorn commented 7 months ago

Second, now a comment on the beam monitor correction:

astellhorn commented 7 months ago

To think about:

astellhorn commented 7 months ago

Simon, could you describe in detail again here how the data correction for unpolarized SANS is done, i.e., in which order exactly you typically do the different correction steps for monitor correction and solid angle integration etc? And why you think that if we do the sum over time and wavelength after PA correction, why you expect zeros in the denominator, i.e., which exact monitor is used (because I see it is a M(lambda) monitor, but no dependence on R).

astellhorn commented 7 months ago

SOrry for some previous mistakes. I have updated the pptx-file with the overview from tuesday again and also have uploaded a word file with a table on input data, input parameters, output parameters, for each part of the workflow. To comment on this:

SimonHeybrock commented 7 months ago

Simon, could you describe in detail again here how the data correction for unpolarized SANS is done, i.e., in which order exactly you typically do the different correction steps for monitor correction and solid angle integration etc? And why you think that if we do the sum over time and wavelength after PA correction, why you expect zeros in the denominator, i.e., which exact monitor is used (because I see it is a M(lambda) monitor, but no dependence on R).

SimonHeybrock commented 7 months ago

And why you think that if we do the sum over time and wavelength after PA correction, why you expect zeros in the denominator, i.e., which exact monitor is used (because I see it is a M(lambda) monitor, but no dependence on R).

In what I have linked above, we are using a time-integrated monitor. What I said earlier was probably wrong, I thought we would compute something like C(t)/M(t), then to the time-dependent polarization correction, and then sum. But obviously that cannot be the case, since $\sum_t C(t)/M(t) \ne \sum_t C(t) / \sum_t M(t)$.

So now I assume we simply compute $C(t) / M$, i.e., ignore time-dependence of the monitor? It is still unclear to me why that is fully correct, i.e., if we see low counts during some part of the polarizer "decay" but more in others, shouldn't that be taken into account? Or will that simply lead to a slightly suboptimal weighting of the different contributions? Will we actually compute a weighted sum in the end?

astellhorn commented 7 months ago

First I need to understand if you mean here the integration over time for one time_bin? I.e., image ? --> we now thought that it would be fully correct to make the monitor corrections for each neutron pulse as stated above with single integrals (not on image) (this should be correct as the Monitor in DREAM is placed before any polarizing component, i.e., should not be impacted by the time decay of the He-cells, and in general any incident beam monitor SHOULD not be place behind the time-dependent 3He-cells) --> then to apply all other typical unpolarized SANS corrections for each neutron pulse --> then use these "unpolarized-SANS-corrected" C of the Direct Beam measurements with He-cell to get PA-correction factors for each neutron pulse --> then apply the correction-matrix on the "unpolarized-SANS-corrected" C of the sample measurements for each neutron pulse --> Then sum up over all neutron pulses

astellhorn commented 7 months ago

In general, does it matter if the "typical SANS corrections) (i.e., DB-function, solid-angle correction, ...) is done on time or on wavelength?

astellhorn commented 7 months ago

Also, does it matter if we do

image

or

image

?

SimonHeybrock commented 7 months ago

I don't think I can follow, maybe we should discuss this in person next week.

astellhorn commented 7 months ago

I also think thats the best! I think it is quite useful to meet twice, on 13th and on 19th, if that is still ok with you