@@ -94,7 +94,7 @@ The aim is to reproduce the glitches found [here](https://www-ssrl.slac.stanford
In the picture below, the intensity deviation in function of the energy is plotted for the crystal Si 111 with phi=0 (for two different beamlines). Click [here](https://www-ssrl.slac.stanford.edu/smbin/dataextractnew.pl?trace1=si111043&trace2=si1110&trace3=None&trace4=None&lowrange=4&highrange=18&graph=1&kvalyes=0) to access it directly on ssrl-glitch db.
In the figure, one can notice that for two different beamlines, the percentage deviation in intensity changes.
Their relative intensities remain (more or less/very approximately) similar. Here's a small example to explain what is meant by relative: if two dips go to -10% and -20% on beamline X and the two same dips go to -20% and -40% on beamline Y, then their absolute values differ but their relative values are the same: the second dip is twice as big as the first in both cases.
...
...
@@ -104,7 +104,7 @@ One can also notice that some glitches appear for one beamline but not the other
#### Phi 0 and phi 90
Phi 0 and phi 90 relate to how the crystal is positioned.
The 111 hkl vector is normal to the crystal's surface. The two other vectors that make up the direct trihedron are along the 2-20 and 11-2 hkl vectors. The following picture illustrates this:


Starting from the phi 0 position (left), the position ends up in the phi 90 position (right) after a 90 degrees rotation around the 111 hkl vector.
...
...
@@ -145,12 +145,12 @@ For the white light source, what is done is very similar. The source has a dE=18
The problem with this harmonic rejection technique is the presence of "jumps" between the 3 different ranges of the 3 different coatings. See both pictures that illustrate this:
On the left is the reflectivity as a function of the energy for three different materials coating the mirror: Palladium, Platinum and Boron carbide.
On the right is the intensity as a function of the energy. The discontinuities here correspond to the discontinuities on the left.
Also, the coatings have an effect on the intensity of the signal. Isolating the effect of glitches on their own as much as possible is important.
To do so another technique is explained in the folder named "[_detuning_tests_](glitches/detuning_tests)" (this detuning technique is also the one used by ssrl glitch db see [here](https://www-ssrl.slac.stanford.edu/smbxas/beamlines/crystalsets.html)).
To do so another technique is explained in the folder named "[_detuning_tests_](detuning_tests)" (this detuning technique is also the one used by ssrl glitch db see [here](https://www-ssrl.slac.stanford.edu/smbxas/beamlines/crystalsets.html)).
# Results
...
...
@@ -167,15 +167,15 @@ The energy range for the McXtrace data starts at 5.5 keV and finishes at 18 keV.