RIXS Client

../../_images/rixsclient_1.png

How to start it:

  • In menubar: “MAXIV Rixsaqclient DLD1”

  • In terminal: “/usr/local/bin/ctrixsaq rixsaq/b316a/dld-01 rixsaqfit/b316a/dld-01”

What does it do? It records RIXS data, it can be great for experiments.

When do I need to use it?

Gitlab link: https://gitlab.maxiv.lu.se/species/app-maxiv-rixsaq

Calibration

Each photon hitting the detector is recorded, but to produce a final spectrum a few calibration steps are taken. The points are processed in the following order:

Understanding

The calibration routines in the data pipeline is processed on a point-by-points basis. N.b. that in some cases it might be beneficial to instead work on imagedata. The calibration is applied in the following order:

  1. Time gating is used to filter out the photon hits that occured between the light flashes of the synchrotron.

  2. A curvature correction algorithm is applied to the points

  3. Masked portions of the detector area is removed

  4. The 2D image is summed along the vertical axis, creating the spectrum

  5. The dark spectrum is subtracted.

Correctly setting a calibration

This should be repeated after every move of energy in the emission spectrometer.

Here are the steps needed to make a nice calibration, note that it is important to do this before setting an energy scale, since the curvature correction can move the peaks slighly on the emission axis.

  1. Make a measurement with a line in the center of the detector.

  2. Go to the tab “Time gating” move and adjust the green marker so that it selects the area with synchrotron light. If the x-axis on the histogram is very different from the example, the modulo might need to be changed. Change to “expert mode” to view it.

  3. If you will do long exposures, it might be beneficial to also check “Subtract dark”, and to move the red-area to a suitable position.

../../_images/rixsaq_calib_1.png

Drag the green-area to select where in time you want to select the hits on the detector

  1. Go to the tab “Mask”, and make sure the masks are not covering the edges of the line. We need as much as possible of the line for a good curvature correction. The line-finding in the curvature correction is working on masked data (although the raw image is displayed).

../../_images/rixsaq_calib_2.png

Make sure the line is not masked out

  1. Go to the tab “Curvature”, select the curavature in the list and click “-” to remove it.

../../_images/rixsaq_calib_3.png

Remove the old curvatures

  1. Adjust the intensity so that you can see the line clearly by dragging the white marker towards lower values.

../../_images/rixsaq_calib_4.png

Adjust the intensity so that you can see the line clearly.

  1. Drag the edges of the box so that it covers the line, but not much more.

../../_images/rixsaq_calib_5.png

Adjust the corners of the box so that it covers the line.

  1. Make sure the red line finds the measured line nicely, you can drag the white pieces of each slice for manual adjustments

../../_images/rixsaq_calib_6.png

Adjust the fits if needed.

  1. Click the “+”-button to add the curvature. You see a preview of the correction to the right

../../_images/rixsaq_calib_7.png

Click the “+”-button to add the curvature

  1. Click the button “Apply correction”

../../_images/rixsaq_calib_8.png

Don’t forget to apply the curvature correction

  1. Go to the mask-tab and add or adjust the masks as needed. They are moved by dragging them with the mouse, their size is adjusted by dragging the small marker in their top-right corner. Don’t forget to click “Apply”

../../_images/rixsaq_calib_9.png

Adjust the masks to cover areas you don’t want included.

  1. Now you have made the calibration, and you are ready to set an energy scale.

Setting an emission energy scale

  1. First make sure you have set up the other steps of the calibration

  2. Go to the tab “Energy scale”, remove the old energy scale by clicking the “-“-button then clicking “Apply scale”

  3. Measure a few known lines across the detector, for example elastic lines with known monochromator energy.

  4. Fit or otherwise estimate the channel number for each energy.

  5. Add the to the table in the “Energy scale”-tab by clicking “+” to add a row then adjusting its energy, and channel number. You can also drag the line to the right to set the channel.

  6. Apply the scale

../../_images/rixsaq_calib_10.png

The energy scale is set by inputting a table of detector channels with corresponding photon energies.