research papers
Wavefront sensing at X-ray free-electron lasers1
aLinac Coherent Light Source, SLAC National Accelerator Laboratory, Menlo Park, CA 94025, USA, bEuropean Synchrotron Radiation Facility, CS 40220, F-38043 Grenoble Cedex 9, France, cPaul Scherrer Institut, 5232 Villigen PSI, Switzerland, dDeutsches Elektronen-Synchrotron DESY, Notkestraße 85, D-22607 Hamburg, Germany, eStanford Synchrotron Radiation Lightsource, SLAC National Accelerator Laboratory, Menlo Park, CA 94025, USA, fEuropean XFEL GmbH, Holzkoppel 4, 22869 Schenefeld, Germany, gRIKEN SPring-8 Center, 1-1-1 Kouto, Sayo-cho, Sayo-gun, Hyogo 679-5148, Japan, hJapan Synchrotron Radiation Research Institute (JASRI), 1-1-1 Kouto, Sayo-cho, Sayo-gun, Hyogo 679-5198, Japan, iDepartment of Chemistry and Physics, La Trobe Institute for Molecular Science, La Trobe University, Melbourne, Victoria 3086, Australia, jCenter for Free-Electron Laser Science, DESY, Notkestraße 85, 22607 Hamburg, Germany, kCentre for Ultrafast Imaging, University of Hamburg, Luruper Chaussee 149, 22607 Hamburg, Germany, lDepartment of Physics, University of Hamburg, Luruper Chaussee 149, 22607 Hamburg, Germany, and mInstitute of Physics, Academy of Sciences of the Czech Republic v.v.i., Na Slovance 2, 182 21, Praha 8, Czech Republic
*Correspondence e-mail: seaberg@slac.stanford.edu, patrik.vagovic@desy.de
Here a direct comparison is made between various X-ray wavefront sensing methods with application to optics alignment and focus characterization at X-ray free-electron lasers (XFELs). Focus optimization at XFEL beamlines presents unique challenges due to high peak powers as well as beam pointing instability, meaning that techniques capable of single-shot measurement and that probe the wavefront at an out-of-focus location are desirable. The techniques chosen for the comparison include single-phase-grating Talbot interferometry (shearing interferometry), dual-grating Talbot interferometry (moiré deflectometry) and speckle tracking. All three methods were implemented during a single beam time at the Linac Coherent Light Source, at the X-ray Pump Probe beamline, in order to make a direct comparison. Each method was used to characterize the wavefront resulting from a stack of beryllium compound refractive lenses followed by a corrective phase plate. In addition, difference wavefront measurements with and without the phase plate agreed with its design to within λ/20, which enabled a direct quantitative comparison between methods. Finally, a path toward automated alignment at XFEL beamlines using a wavefront sensor to close the loop is presented.
1. Introduction
As more X-ray free-electron lasers (XFELs) come online around the world and the scientific demands of these light sources becomes ever greater, there is an increasing need for the further development of a broad suite of diagnostics (Tschentscher et al., 2006; Ackermann et al., 2007; Allaria et al., 2010; Yabashi et al., 2015; Bostedt et al., 2016; Milne et al., 2017; Ko et al., 2017). Experiments are typically performed at XFELs for one of two following reasons: to take advantage of the high time resolution they afford in contrast to that available from third-generation synchrotrons and in cases when high X-ray peak intensities are needed (Bostedt et al., 2016). In the latter case, focus optimization and characterization are especially important. For instance, in order to understand data in nonlinear optics experiments an accurate knowledge of the X-ray focus profile is critical (Fuchs et al., 2015). In addition, experiments performed with the goal of single-particle imaging benefit from good focusing in order to achieve higher total scattering efficiencies (Aquila et al., 2015). These experiments drive the need for devices that are sensitive to the X-ray wavefront both for optics alignment and for focus characterization.
Focus characterization is especially challenging at XFELs, for which methods that involve placing a probe close to the focus are either subject to damage (i.e. knife-edge, ptychography) or time-consuming (imprints) (Sikorski et al., 2015). Further, techniques that are capable of measuring in a single shot are critical to account for and characterize the role that spatial jitter can play at these light sources. In this work we describe three related deterministic techniques currently in use at XFELs, all of which make use of information based on near-field diffraction to directly measure the gradient of the X-ray wavefront: single-grating Talbot interferometry, moiré deflectometry and speckle tracking. In Section 3 we describe the requirements and methods behind each technique. In Section 4 we discuss the progress that has been made towards automated alignment of an XFEL beamline and what remains to be done. Finally, in Section 5 we present the results of a direct comparison between the three techniques at the X-ray Pump Probe (XPP) beamline of the Linac Coherent Light Source (LCLS).
2. Experimental setup
We used the monochromatic beam delivered by the dual crystal diamond monochromator at XPP as the platform for our comparison, centered at a photon energy of 9.5 keV (Zhu et al., 2014). In this comparison we made use of beryllium compound refractive lenses (CRLs) to focus the beam and measured the effects of a phase plate designed to compensate for the lens aberrations using the various techniques (Seiboth et al., 2017). The CRL stack consists of 20 lenses with 50 µm radius of curvature and 300 µm diameter, resulting in a 340 mm focal length and ∼110 nm full width at half-maximum (FWHM) at focus in the absence of aberrations. The corrective phase plate was fabricated using 3D microprinting in nanoscribe IP-S photoresist and its design is based on a model of the characteristic shape error of the lenses described above, without accounting for any imperfections of this particular lens stack.
A custom setup designed to accommodate the three available techniques was designed and implemented as shown in Fig. 1. The CRL stack is motorized with five allowing it to be aligned onto the X-ray beam's optical axis and the phase plate is motorized with horizontal and vertical [Fig. 1(a)]. The single-grating interferometry and speckle tracking techniques share a mounting platform for the gratings and speckle membranes, with a kinematic mount providing the ability to swap between gratings and membranes in a reproducible manner [Fig. 1(b)]. Two scintillator-based indirect X-ray detectors (Optique Peter microscopes) are placed further downstream at a fixed distance from the focus, but with motorized travel in the horizontal and vertical directions [Fig. 1(c)]. The detector labeled as Detector 1 is partially transparent and was only used for the speckle tracking measurements. Detector 2 was used for both single-grating interferometry and speckle tracking measurements. Finally, the moiré interferometer, which is self-contained, is located just downstream of Detector 2 [Fig. 1(d)].
3. Wavefront sensing techniques
The past couple of decades have seen major advances in X-ray wavefront sensing (Naulleau et al., 2000; David et al., 2002; Rutishauser et al., 2011, 2012; Matsuyama et al., 2012; Kayser et al., 2014, 2016; Berujon et al., 2015; Assoufid et al., 2016; Liu et al., 2018), that have also benefited from the long history of wavefront sensing methods in the visible region of the spectrum. All three techniques discussed here make use of near-field diffraction for direct measurement of the wavefront gradient. As will be seen in the following, each technique has various advantages and disadvantages, but in the end all give similar, accurate results.
3.1. Single-phase-grating Talbot interferometry
When the periodic modulator, amplitude or phase grating, is illuminated with a partially or fully coherent X-ray wavefield, the so-called self-images can be measured downstream of the modulator. We refer to these measurements as interferograms. The interferograms are measured at discrete distances. In the case of an absorption grating, strong modulations occur at Talbot distances, but in the case of a phase grating strong modulations occur at intermediate distances called fractional distances. The contrast of the interferograms is maximized at the planes perpendicular to the optical axis (Suleski, 1997) given by distances
where η = 1 in the case of a π/2 phase grating and η = 2 in the case of a π phase shifting grating; p is a generalized parameter that we refer to as the Talbot order, d1 is the period of the grating, and λ is the X-ray wavelength. If the conical illumination (divergent beam generated for example by focusing optics) is applied, the fractional distance zF will be scaled by the geometrical magnification M (Fresnel scaling theorem; Paganin & Press, 2006),
where R2 is the distance of the image plane to the focal plane and R1 is the distance of the grating to the focal plane (see Fig. 2).
The pitch of the detected interferogram d2 will be equally scaled by the magnification,
Combining scaled equation for the fractional Talbot distance (2) and with geometric relation for the distances,
we obtain the convenient equation reported by Yashiro et al. (2009),
Equation (5) has two solutions for a given Talbot order. The solution with the plus sign means that the grating position is closer to the imaging plane, and that with the minus sign refers to the grating placed closer to the focal plane. If the latter option is used, high magnification and angular sensitivity can be achieved.
The interferogram measured downstream of the phase grating has the same spatial structure as the original phase grating with the best resemblance at the fractional Talbot distances. Any 2D periodic structure can be expressed using notation known from crystallography as
where and are the h, k are integers (Miller indices). If we set real space vectors of the periodic pattern |a| = |b| and the angle between them equal to π/2 we obtain a checkerboard lattice.
vectors andThe wavefront shape with residual distortions (aberrations), that we want to recover, is modulated on this periodic pattern at the detector plane as a vectorial displacement field u(r) of the ideal pattern (Fig. 2). The displacement field is given approximately by
where ϕa(r) refers to the aspheric component of the wavefront phase. This is an approximation in the case of large grating shear, which is discussed further below. The intensity distribution at the detector plane in the presence of a distortion field is given as
We call the coefficients chk complex visibility containing amplitude ahk and the displacement field is located around the corresponding carrier fringe with frequency qhk. The amplitude coefficients ahk vary along the optical axis and the local maxima are located at the corresponding fractional Talbot distances. It is also clear that around each carrier peak the measured displacement only has a component in the direction of the vector qhk. Therefore, in order to extract the full displacement field, at least two carrier peaks with reciprocal vectors not parallel to each other need to be analyzed. The zero-order term c00 = a00 represents the unperturbed intensity of the background. This term is used to obtain the amplitude of the wavefront. However, due to the fact that this method is in its principle shearing interferometry, the zero-order term contains shifted replicas resulting in blur of the demodulated amplitude (Servin et al., 2007). This can be neglected if the shear is smaller than the resolution element (period of the fringe). In the case of larger shear, the amplitude cannot be reconstructed uniquely and the extracted phase during the demodulation is the phase difference between two shifted beams at the detector plane, which is recovered using the Fourier method (Takeda et al., 1982; Servin et al., 2007). The differential phase can be obtained uniquely by applying the shear transfer function on the phase difference data (Elster & Weingärtner, 1999), but due to poles of the shear transfer function regularization has to be applied. An additional consideration in the choice of grating shear is the trade-off between sensitivity and As shear (and thus sensitivity) is increased, the fringes may begin to blur together in the case of large aspheric wavefront slopes. Further analysis of the influence of the shearing ratio on the X-ray wavefront data will be the scope of our future work.
The checkerboard π and π/2 phase gratings used for this study are shown in Fig. 3. The Si grating [Fig. 3(a)] has a pitch along the diagonal 2.725 µm, the height of the structure is 11 µm giving π phase shift at 9 keV and was patterned by reactive ion etching into Si substrate (Rutishauser et al., 2011). A second Si grating [Fig. 3(b)] has a pitch along the diagonal 14.142 µm, the height of the structure is 12 µm giving π phase shift at 9.5 keV. The patterning was performed with electron beam lithography into a hydrogen silsesquioxane resist, which was used as a mask to etch into the silicon (Liu et al., 2018). The last grating [Figs. 3(c) and 3(d)] is a diamond grating with a pitch along the diagonal of 2.828 µm and structure height of 2.932 µm, giving π/2 phase shift at 8 keV. The grating has been patterned by electron beam lithography of chemical vapor deposition (CVD) diamond membrane (Makita et al., 2017).
To understand the performance of the single-grating interferometer we performed scans of the phase gratings along the optical axis in the `minus geometry' in equation (5) and recorded a series of images. For fair comparison we used two types, π silicon and π/2 diamond phase shifting gratings, shown in Figs. 3(a) and 3(d), and analyzed the visibility of the basic and mixed harmonics (Fig. 4). The detection was made with a scintillator-based, 4.5× microscope (Optique Peter white beam microscope with Andor Zyla 5.5 camera). The distance from focus to grating is displayed on the x-axis of the plots in Figs. 4(a) and 4(e) for the two gratings, and the distance from focus to detector was fixed at 1.925 m. Figs. 4(a) and 4(e) show the visibility of the basic harmonics (diagonal direction) and mixed harmonics (0° and 90°) direction of the two gratings. Interestingly the mixed harmonics for the π grating are reaching nearly the same visibility as the basic harmonics while in the case of the π/2 grating the mixed harmonics are suppressed. Therefore if one wants to have sensitivity in more than two directions using checkerboard gratings the π grating is a more suitable choice. The short-period oscillations on the visibility curves especially for basic harmonics are caused by optical power flowing to higher orders.
Further measurements were made using the 14.1 µm π phase silicon grating [Fig. 3(b)]. This grating was placed at 478 mm from the focus, with the detector again located at 1.925 m from the focus. These measurements were used for the phase plate alignment, discussed in Section 4, and for comparison with the speckle tracking method, discussed in Section 5.
The precise grating-to-focus and focus-to-detector distances have been calibrated using the longitudinal scan of the grating along the optical axis. For each position the fringe size in the given direction has been measured and the magnification was determined from the known grating geometry. Data where visibility for the given harmonic was below 15% have not been considered as the error in determination of the fringe size was high. The magnification curve has then been fitted by least-squares method. An example for the distances calibration of the Si π phase shifting grating, with diagonal pitch size 2.725 µm, using the 45° oriented diagonal fringe is shown in Fig. 5.
This is the most important calibration step; however, to obtain more accurate results any detector aberrations can be mapped as well. This can be done by, for example, placing an absorbing grid directly in front of the scintillator or by scanning the detector in directions perpendicular to the beam. The tilt of the grating with respect to the detector (and beam) can be recovered via a rotational scan of the grating around the optical axis.
3.2. Dual grating Talbot interferomety (moiré deflectometry)
The next at-wavelength wavefront diagnostic method discussed in this report is the X-ray grating interferometry (XGI) method, realized for measurements in the moiré mode. The wavefront properties in shot-to-shot LCLS SASE operation, propagated to a pair of hard X-ray offset mirrors at the XPP beamline, have already been investigated in moiré mode (Rutishauser et al., 2012). Here we describe a similar setup in which the spatially coherent radiation was further monochromated with a double-crystal monochromator to 9.5 keV and focused by means of a set of compound refractive lenses as schematically depicted in Fig. 6(a). The instrument, seen in Fig. 1(d), developed at the Swiss Light Source X05DA Optics beamline (Flechsig et al., 2009), is a modular, compact, transportable and self-contained moiré XGI setup. In the moiré mode the incident X-ray beam is diffracted by periodic, micrometre-sized binary structures just like in single-phase-grating interferometry discussed in Section 3.1. The X-ray wavefronts propagating through the grating have small shear angles and create an interference pattern. Due to the Talbot effect, the interference has maximum contrast at certain, discrete distances downstream of the first grating. These are the locations where the diffraction orders overlap and interferences occur creating self-images of the grating at specific distances called fractional Talbot distances. The best diffraction efficiency of the diffracting grating into the ±1st diffraction order is obtained with binary π-phase shifting gratings and a duty cycle of 0.5. Maximum contrast for the constructive interference pattern at fractional Talbot orders depends on the wavelength and periodicity of the phase grating. Contrary to single-phase-grating Talbot interferometry, a second grating is inserted in front of the detector and used as a transmission mask (which has a period matching the one of the interference pattern). The interference pattern produced by the first grating at the distance PA, where the second absorption grating is located, is magnified from the expected self-referenced image by the design magnification of the interferometer [M = (FP + PA)/FP]. We note that the period of the second grating was designed to match the self-image of the phase grating in the diverging beam (Rutishauser, 2013). The moiré XGI experiment was optimized for 9.5 keV photon energy by considering the available space downstream of the CRL stack. For divergence matching a periodicity of 3.75 µm was used for the first grating P and the absorption grating had the same duty cycle with periodicity of 2 µm. By optimizing the spatial illumination and visibility of moiré interferograms at the detector plane we found that the 11th fractional Talbot order gave best results, while maintaining a compact 15.7 cm distance between the two gratings. more detailed description of the moiré XGI setup optimized for various setups has been given by Krempaský et al. (2018).
Figs. 6(b)–6(d) summarize the calibration of the moiré XGI which in our case is based on rotating the phase and absorbing gratings with respect to each other around the optical axis. The moiré patterns seen in Fig. 6(b) are integrated over 100 shots to achieve sufficient moiré fringe visibility. For a quantitative analysis Fig. 6(c) shows a calibration scan by recording the moiré patterns at varying angular orientations of the absorption grating. The fringe periods px and py in the horizontal and vertical directions are extracted via two-dimensional Fourier analysis. For π-phase shifting gratings the interference fringe period and the absorption grating period are connected through orientation angles β denoted in Fig. 6(a), that can be obtained from a minimization procedure of data in Fig. 6(c) (Rutishauser, 2013; Kayser et al., 2017). More specifically, the phase and absorption grating absolute angles in our case were determined by keeping the phase grating fixed; vertical arrows in Fig. 6(d) refer to absolute absorption grating angles in measurements summarized in Fig. 7. We note that the shape of the curves in Fig. 6(c) confirm that all the wavefronts discussed below relate to focusing beams (Rutishauser, 2013). A more detailed description of the XGI-based moiré interferometry has been given by Pfeiffer et al. (2005), Weitkamp et al. (2005), Wang et al. (2011), Rutishauser (2013) and Kayser et al. (2017).
Once the phase grating absolute angle and absorption grating offset β is derived from the calibration scan, a full wavefront characterization can be determined from single images which we further inspect in the vertical [Figs. 7(f)–7(h)] and horizontal directions [Fig. 7(a′)–7(f′)], respectively. The panels summarize the flowcharts of the computational algorithm. First a moiré interferogram in panel (a,a′) is Fourier filtered in panel (c,c′) (Takeda et al., 1982), vertical dashed lines in panel (b) indicate the filter width used to retrieve the Fourier transform first-order component. Panels (d,d′) extract the moiré fringe phase images from which the wavefront propagation (deflection) angle in the direction perpendicular to the grating lines is retrieved. Next the wavefront phase is obtained by integration in the corresponding directions in the detector plane. Finally, panels (e,e′) show the spherical fit of the wavefront phase and (f,f′) show the wavefront aspherical shapes retrieved by subtracting a second-order polynomial. For a quantitative description of the wavefront distortions data are converted to height profiles by multiplying the phase distortions by λ/2π. The height profiles indicate that the distortions are comparable with the X-ray wavelength (∼0.13 nm) in both directions. Both lineouts have a pronounced dip in the middle typical of wavefront distortions around the center of the CRL exit pupil (Seiboth et al., 2017), consistent with the wavefront profile measured by means of speckle tracking (Fig. 9) discussed below.
Next we discuss the reduction of wavefront distortions by correcting the residual spherical aberration of the whole CRL stack by a corrective phase plate. Stacked lineouts in Fig. 7(g) show gradual alignment of the CRL exit pupil with a diameter of 300 µm. The top lineout labeled `out', also seen in panel (f), corresponds to a completely removed phase plate. The remaining lineouts represent gradual improvements of the wavefront distortions as the phase plate is shifting toward the central position (0 µm). For qualitative and quantitative comparison with single-grating Talbot interferometry summarized in Fig. 10(b), a comparison of the wavefront distortions between the two methods at the central position is shown in Fig. 7(h). It turns out that the small differences between the lineouts are mainly due to backlash limitations of the motorized stage (∼8 µm). Indeed, as seen in Fig. 10(b), the optimal phase plate position was found at 2 µm. These experimental observations confirm that mechanical alignment of the CRL stack is critical for achieving diffraction-limited focusing.
A full wavefront characterization from a single moiré interferogram implies that both the amplitude and phase information are determined: the first is proportional to the intensity profile of the beam and the second is related to the wavefront's gradient. Both quantities define the complex electric field of the X-ray beam, which we next back-propagate to the focus. Fig. 7(i) shows the retrieved through-focus and focal plane intensity profiles in the vertical projection. With the phase plate inserted, the average Gaussian fit of the beam caustic indicates a vertical focus FWHM around 220 nm. Compared with single-shot 2D focus retrieval based on single-grating Talbot interferometry seen in Fig. 11(f), the beam waist from 100 FEL pulses is ∼50 nm larger. Such a discrepancy can be attributed to subtle mechanical misalignment of the CRL stack mentioned above, as well as data averaging from 100 FEL pulses.
To conclude, the wavefront analysis between moiré and single-grating Talbot grating interferometry shows consistent improvement of the wavefront height profile from ∼1.5λ down to ∼λ/4. Given the fact that the phase plate conceptual design for a stack of 20 CRLs was based on an average lens model (Seiboth et al., 2018) and the of the cured IP-S photoresist is only estimated, not measured, the performance of the phase plate correction is consistent with expected results. The presented moiré XGI setup thus provides a valuable at wavelength diagnostics tool for qualitative and quantitative, spatially resolved X-ray wavefront metrology at synchrotron radiation beamlines or XFEL endstations.
3.3. Speckle tracking
X-ray speckle tracking is a wavefront sensing technique that can accurately retrieve the wavefront gradient of the X-ray beam by making use of random intensity modulations (Bérujon et al., 2012). A phase object with small features is used to generate two near-field speckle images, which are then analyzed using numerical cross-correlations and template matching algorithms to identify the angular displacement of small subsets from the first image into the second. Given that in the optical near-field region the distortion of the speckle pattern depends only on the wavefront propagation (Cerbino et al., 2008), the modulation displacements are proportional to the wavefront W (and phase ϕ) gradients through the equations
where αx, y are measured deflection angles. Finally, the wavefront is recovered by numerically integrating these two orthogonal gradients using either a least-square minimization algorithm (O'Leary & Harker, 2008, 2012) or a fast Fourier transform based algorithm like the one of Frankot & Chellappa (1988).
Note that although a random pattern used to modulate the wavefront contains many frequencies in its Fourier spectrum, not all of them are recorded onto the detector. This is again due to the Talbot effect which, for a fixed distance, acts as a spectral filter with a q-frequency modulation .
A speckle-based wavefront sensor such as the one used here is adequate for measuring hard X-rays with photon energies between 8 keV and 40 keV and can be used in two different regimes: the differential and the absolute modes. The setup for differential mode measurements only requires a speckle scatterer and an X-ray detector to record consecutive speckle images. This can be used to track wavefront changes over time or to isolate the contribution to the wavefront distortion generated by an individual optical element, e.g. a lens or a phase plate. The absolute mode in contrast can be used to measure the true effective wavefront of the beam by using two speckle images acquired simultaneously at two different distances from the speckle scatterer (Berujon et al., 2015). The corresponding setup is illustrated in Fig. 8, where distances were chosen taking into account the magnification of the system while also allowing sufficient propagation so as to obtain the desired sensitivity. The method itself does not place stringent restrictions on the distances between the speckle generator and the detector(s). One effect of changing these distances in the setup will be to vary the resolvable pattern frequencies. In any case, within the near field the speckle pattern will always contain useful frequencies that can be used for modulation. Typically, we set the distance d2 at a value roughly equal to (sN)2/λ, where s represents the pixel size, N the average speckle size in pixels, and λ the photon wavelength, which corresponds to a Fresnel number F ≃ 1, at the limit of the near-field regime. The absolute mode is experimentally more demanding for single pulse characterization since it requires two separate synchronized and well aligned indirect X-ray detectors. The first of these detectors must be semi-transparent to X-rays in order to allow sufficient to fall onto the second detector. Our technical solutions consisted of a first detector based on a thin 25 µm YAG:Ce scintillator and a pierced silica substrate mirror with a 1.5 mm hole, ensuring a transparency of over 25% at 9.5 keV. As we shall demonstrate, this speckle-based wavefront sensing approach can be performed with sub-wavelength accuracy for single pulse measurements.
Measurements were performed in the differential mode, collecting speckle images with and without the phase plate present in the beam. By numerically comparing these images, the wavefront contribution of the phase plate is recovered, as shown in Fig. 9. Note that in this example the phase plate was not yet perfectly centered. The phase plate wavefront profile recovered here is compared with the phase plate design curve and with the profile obtained using single-grating interferometry in Fig. 12. Given that the phase plate was not yet perfectly centered at the time when the speckle measurements were performed, a circular mask with a 100 µm radius was applied to the data in order to ensure that a full 360° azimuthal average could be computed for every point of the resulting profile.
4. Toward automated beamline alignment
Maintenance of beamline alignment in cases where tight focusing is required poses a significant challenge at XFEL beamlines. In these cases, alignment typically needs to be checked at the beginning of every shift. Wavefront sensors that are integrated into the beamline have the potential to make a major impact on both focusing quality as well as operational efficiency. Automatic processing of the wavefront measurement can be applied to close the loop on mirror alignment. Here we show a first step toward this goal, with fast wavefront monitoring enabling real-time interactive alignment.
The first step toward automation is real-time data processing. In some cases, each optical degree of freedom can be associated directly with a single aspect of the wavefront. In general the effects of each degree of freedom on the wavefront can be calibrated with the wavefront sensor in order to automatically optimize the wavefront; this general approach has been used for decades to optimize telescope and visible laser wavefronts (Wallner, 1983).
Here, we use the wavefront sensor to align a phase plate interactively with visual feedback. In this case the wavefront error relative to phase plate position is mostly decoupled between the horizontal and vertical a); this is a reproduction of a plot that can be viewed in real time at LCLS. The wavefront lineouts (with spherical term removed) at three different positions of the scan (endpoints and optimized position) are shown in Fig. 10(b). 2D reconstructions of the wavefront phase and resulting focal spot during this scan are shown in Video S1 of the supporting information.
The horizontal position can be optimized by minimizing the r.m.s. aspheric wavefront error along a 1D horizontal lineout of the beam, as shown in Fig. 10(5. Phase plate alignment and comparison
During a single experiment at the LCLS, direct comparisons were made between the three techniques discussed in Section 3. A convenient accuracy comparison can be made via the phase profile of the phase plate used to improve the focus, since the phase plate was manufactured with a known profile. This measurement can be made simply by subtracting the wavefront with the phase plate inserted from the one without it [see Figs. 11(a)–11(c) for the corresponding measurements with a π-phase checkerboard grating]. A quantitative comparison between wavefront measurement techniques can be made by comparing radial lineouts of the phase profiles, which is shown in Fig. 12. The lineouts as measured with the single-grating technique and the speckle tracking method are overlaid with the design in Fig. 12(a), with their differences shown in Fig. 12(b). As can be seen, the two measurements agree within ∼λ/50 and they both agree with the design to within λ/20, with the main difference near a radial distance of zero. This disagreement may be due to the slightly lower resolution of the grating technique. The feature at the center of the phase plate design has FWHM ∼10 µm and the sampling period of this particular grating interferometer is ∼7 µm at the plane of the phase plate.
The clear improvement in focus quality can be seen when comparing the retrieved focus for both cases in Figs. 11(e) and 11(f). While residual astigmatism, likely due to the diamond crystal monochromator, is still apparent, the phase plate removes the majority of the higher-order aberrations.
6. Conclusions
Here a direct comparison between various wavefront sensing techniques available to hard XFELs is made, with evidence that they all provide accurate and detailed information. This is demonstrated based on comparison of the wavefront itself as well as difference data obtained with and without a corrective phase plate. There are various trade-offs between all three techniques discussed here. The clearest difference lies in the scattering media. Both grating techniques rely on a phase grating (e.g. checkerboard or hexagonal structure) and the speckle tracking method relies on a more general phase object such as sandpaper or other fine-grained objects. All three methods require a relatively high resolution image of the beam downstream of the scatterer, which typically means using a scintillator-based indirect X-ray imaging system as was used in this work. However, in the dual grating technique the downstream analyzer grating is used to generate a low-frequency beat pattern (moiré) prior to detection such that the technique does not rely as heavily on detector resolution as do the single-grating and speckle tracking techniques. In addition, the grating geometry and design can be optimized in such a way to result in a very compact device, with small distances between gratings and detector. All three techniques can be used to obtain the wavefront on a single-shot basis, but as discussed in Section 3.3 a second downstream detector is required in the speckle tracking case. In addition, whereas grating interferometry relies on the quality of the grating fabrication for its accuracy, the speckle tracking technique makes use of simple scattering materials and a more complex algorithm to achieve the same accuracy, typically with slightly higher resolution. If an appropriate phase modulator is used, such as a diamond phase grating, the photon energy range in the case of the single-grating setup can be pushed down to ∼4 keV. For the other two techniques the lower photon energy boundary is limited by the pure transparency of the first detector in speckle tracking technique and absorption grating damage threshold in moiré deflectometry resulting in a ∼8 keV lower boundary. Finally, when one wants to retrieve the absolute profile of the focus a measurement of the beam's amplitude in addition to wavefront must also be made. The amplitude information is only readily available in the case of either single or dual grating interferometry when the grating shear is small (e.g. of the order of the fringe spacing) and comes at the expense of reduced sensitivity to wavefront aberration. These trade-offs can be considered when making a decision on which measurement scheme should be used at a given beamline.
Grating interferometry and speckle tracking are excellent candidates for in situ XFEL diagnostics due to their operation out of focus, thus avoiding damage, and their ability to provide single-shot information. We have shown here that it is possible to use these techniques for real-time optics alignment, which will enable automated beamline alignment and more accurate focus characterization in the future. As the analysis for the grating data relies on several single-step numerical operations such as Fourier filtering and line or surface fitting, the high-speed implementation on, for example, graphical computing units (GPUs) or field-programmable gate arrays (FPGAs) will be possible. This will provide a further step towards implementation of automatic feedback systems and real-time data display. More frequent use of this capability at XFELs will lead to more efficient use of beam time as well as providing additional information for experiments requiring challenging data analysis.
Supporting information
2D reconstructions of the wavefront phase and resulting focal spot. DOI: https://doi.org/10.1107/S1600577519005721/xl5031sup1.mp4
Footnotes
1This article will form part of a virtual special issue containing papers presented at the PhotonDiag2018 workshop.
Funding information
Use of the Linac Coherent Light Source (LCLS), SLAC National Accelerator Laboratory, is supported by the US Department of Energy, Office of Science, Office of Basic Energy Sciences under Contract No. DE-AC02-76SF00515. This project has received funding from the European Union's Horizon 2020 research and innovation program under grant agreement No 654220, 654360 and 730872, having benefited from the access provided by the Paul Scherrer Institute in Villigen within the framework of the NFFA-Europe Transnational Access Activity. PV acknowledges SFX user's consortium for providing support for this project. FS acknowledges funding from the Volkswagen Foundation.
References
Ackermann, W., Asova, G., Ayvazyan, V., Azima, A., Baboi, N., Bähr, J., Balandin, V., Beutner, B., Brandt, A., Bolzmann, A., Brinkmann, R., Brovko, O. I., Castellano, M., Castro, P., Catani, L., Chiadroni, E., Choroba, S., Cianchi, A., Costello, J. T., Cubaynes, D., Dardis, J., Decking, W., Delsim-Hashemi, H., Delserieys, A., Di Pirro, G., Dohlus, M., Düsterer, S., Eckhardt, A., Edwards, H. T., Faatz, B., Feldhaus, J., Flöttmann, K., Frisch, J., Fröhlich, L., Garvey, T., Gensch, U., Gerth, Ch., Görler, M., Golubeva, N., Grabosch, H. -J., Grecki, M., Grimm, O., Hacker, K., Hahn, U., Han, J. H., Honkavaara, K., Hott, T., Hüning, M., Ivanisenko, Y., Jaeschke, E., Jalmuzna, W., Jezynski, T., Kammering, R., Katalev, V., Kavanagh, K., Kennedy, E. T., Khodyachykh, S., Klose, K., Kocharyan, V., Körfer, M., Kollewe, M., Koprek, W., Korepanov, S., Kostin, D., Krassilnikov, M., Kube, G., Kuhlmann, M., Lewis, C. L. S., Lilje, L., Limberg, T., Lipka, D., Löhl, F., Luna, H., Luong, M., Martins, M., Meyer, M., Michelato, P., Miltchev, V., Möller, W. D., Monaco, L., Müller, W. F. O., Napieralski, O., Napoly, O., Nicolosi, P., Nölle, D., Nuñez, T., Oppelt, A., Pagani, C., Paparella, R., Pchalek, N., Pedregosa-Gutierrez, J., Petersen, B., Petrosyan, B., Petrosyan, G., Petrosyan, L., Pflüger, J., Plönjes, E., Poletto, L., Pozniak, K., Prat, E., Proch, D., Pucyk, P., Radcliffe, P., Redlin, H., Rehlich, K., Richter, M., Roehrs, M., Roensch, J., Romaniuk, R., Ross, M., Rossbach, J., Rybnikov, V., Sachwitz, M., Saldin, E. L., Sandner, W., Schlarb, H., Schmidt, B., Schmitz, M., Schmüser, P., Schneider, J. R., Schneidmiller, E. A., Schnepp, S., Schreiber, S., Seidel, M., Sertore, D., Shabunov, A. V., Simon, C., Simrock, S., Sombrowski, E., Sorokin, A. A., Spanknebel, P., Spesyvtsev, R., Staykov, L., Steffen, B., Stephan, F., Stulle, F., Thom, H., Tiedtke, K., Tischer, M., Toleikis, S., Treusch, R., Trines, D., Tsakov, I., Vogel, E., Weiland, T., Weise, H., Wellhöfer, M., Wendt, M., Will, I., Winter, A., Wittenburg, K., Wurth, W., Yeates, P., Yurkov, M. V., Zagorodnov, I. & Zapfe, K. (2007). Nat. Photon. 1, 336–342. Web of Science CrossRef Google Scholar
Allaria, E., Callegari, C., Cocco, D., Fawley, W. M., Kiskinova, M., Masciovecchio, C. & Parmigiani, F. (2010). New J. Phys. 12, 075002. Web of Science CrossRef Google Scholar
Aquila, A., Barty, A., Bostedt, C., Boutet, S., Carini, G., dePonte, D., Drell, P., Doniach, S., Downing, K. H., Earnest, T., Elmlund, H., Elser, V., Gühr, M., Hajdu, J., Hastings, J., Hau-Riege, S. P., Huang, Z., Lattman, E. E., Maia, F. R. N. C., Marchesini, S., Ourmazd, A., Pellegrini, C., Santra, R., Schlichting, I., Schroer, C., Spence, J. C. H., Vartanyants, I. A., Wakatsuki, S., Weis, W. I. & Williams, G. J. (2015). Struct. Dyn. 2, 041701. Web of Science CrossRef PubMed Google Scholar
Assoufid, L., Shi, X., Marathe, S., Benda, E., Wojcik, M. J., Lang, K., Xu, R., Liu, W., Macrander, A. T. & Tischler, J. Z. (2016). Rev. Sci. Instrum. 87, 052004. Web of Science CrossRef PubMed Google Scholar
Bérujon, S., Ziegler, E., Cerbino, R. & Peverini, L. (2012). Phys. Rev. Lett. 108, 158102. Web of Science PubMed Google Scholar
Berujon, S., Ziegler, E. & Cloetens, P. (2015). J. Synchrotron Rad. 22, 886–894. Web of Science CrossRef IUCr Journals Google Scholar
Bostedt, C., Boutet, S., Fritz, D. M., Huang, Z., Lee, H. J., Lemke, H. T., Robert, A., Schlotter, W. F., Turner, J. J. & Williams, G. J. (2016). Rev. Mod. Phys. 88, 015007. Web of Science CrossRef Google Scholar
Cerbino, R., Peverini, L., Potenza, M. A. C., Robert, A., Bösecke, P. & Giglio, M. (2008). Nat. Phys. 4, 238–243. Web of Science CrossRef CAS Google Scholar
David, C., Nöhammer, B., Solak, H. H. & Ziegler, E. (2002). Appl. Phys. Lett. 81, 3287–3289. Web of Science CrossRef CAS Google Scholar
Elster, C. & Weingärtner, I. (1999). Appl. Opt. 38, 5024–5031. CrossRef PubMed CAS Google Scholar
Flechsig, U., Jaggi, A., Spielmann, S., Padmore, H. & MacDowell, A. (2009). Nucl. Instrum. Methods Phys. Res. A, 609, 281–285. CrossRef CAS Google Scholar
Frankot, R. T. & Chellappa, R. (1988). IEEE Trans. Pattern Anal. Mach. Intell. 10, 439–451. CrossRef Web of Science Google Scholar
Fuchs, M., Trigo, M., Chen, J., Ghimire, S., Shwartz, S., Kozina, M., Jiang, M., Henighan, T., Bray, C., Ndabashimiye, G., Bucksbaum, P. H., Feng, Y., Herrmann, S., Carini, G. A., Pines, J., Hart, P., Kenney, C., Guillet, S., Boutet, S., Williams, G. J., Messerschmidt, M., Seibert, M. M., Moeller, S., Hastings, J. B. & Reis, D. A. (2015). Nat. Phys. 11, 964–970. Web of Science CrossRef CAS Google Scholar
Kayser, Y., David, C., Flechsig, U., Krempasky, J., Schlott, V. & Abela, R. (2017). J. Synchrotron Rad. 24, 150–162. Web of Science CrossRef CAS IUCr Journals Google Scholar
Kayser, Y., Rutishauser, S., Katayama, T., Kameshima, T., Ohashi, H., Flechsig, U., Yabashi, M. & David, C. (2016b). Opt. Lett. 41, 733–736. CrossRef CAS PubMed Google Scholar
Kayser, Y., Rutishauser, S., Katayama, T., Ohashi, H., Kameshima, T., Flechsig, U., Yabashi, M. & David, C. (2014). Opt. Express, 22, 9004–9015. Web of Science CrossRef PubMed Google Scholar
Ko, I., Kang, H.-S., Heo, H., Kim, C., Kim, G., Min, C.-K., Yang, H., Baek, S., Choi, H.-J., Mun, G., Park, B., Suh, Y., Shin, D., Hu, J., Hong, J., Jung, S., Kim, S.-H., Kim, K., Na, D., Park, S., Park, Y., Jung, Y., Jeong, S., Lee, H., Lee, S., Lee, S., Oh, B., Suh, H., Han, J.-H., Kim, M., Jung, N.-S., Kim, Y.-C., Lee, M.-S., Lee, B.-H., Sung, C.-W., Mok, I.-S., Yang, J.-M., Parc, Y., Lee, W.-W., Lee, C.-S., Shin, H., Kim, J., Kim, Y., Lee, J., Park, S.-Y., Kim, J., Park, J., Eom, I., Rah, S., Kim, S., Nam, K. H., Park, J., Park, J., Kim, S., Kwon, S., An, R., Park, S., Kim, K., Hyun, H., Kim, S., Kim, S., Yu, C.-J., Kim, B.-S., Kang, T.-H., Kim, K.-W., Kim, S.-H., Lee, H.-S., Lee, H.-S., Park, K.-H., Koo, T.-Y., Kim, D.-E. & Lee, K. (2017). Appl. Sci. 7, 479. CrossRef Google Scholar
Krempaský, J., Koch, F., Vagovič, P., Mikeš, L., Jaggi, A., Svetina, C., Flechsig, U., Patthey, L., Marathe, S., Batey, D., Cipiccia, S., Rau, C., Seiboth, F., Seaberg, M., David, C. & Wagner, U. (2018). Proc. SPIE, 10761, 107610D. Google Scholar
Liu, Y., Seaberg, M., Zhu, D., Krzywinski, J., Seiboth, F., Hardin, C., Cocco, D., Aquila, A., Nagler, B., Lee, H. J., Boutet, S., Feng, Y., Ding, Y., Marcus, G. & Sakdinawat, A. (2018). Optica, 5, 967–975. Web of Science CrossRef CAS Google Scholar
Makita, M., Karvinen, P., Guzenko, V., Kujala, N., Vagovic, P. & David, C. (2017). Microelectron. Eng. 176, 75–78. CrossRef CAS Google Scholar
Matsuyama, S., Yokoyama, H., Fukui, R., Kohmura, Y., Tamasaku, K., Yabashi, M., Yashiro, W., Momose, A., Ishikawa, T. & Yamauchi, K. (2012). Opt. Express, 20, 24977–24986. Web of Science CrossRef PubMed Google Scholar
Milne, C., Schietinger, T., Aiba, M., Alarcon, A., Alex, J., Anghel, A., Arsov, V., Beard, C., Beaud, P., Bettoni, S., Bopp, M., Brands, H., Brönnimann, M., Brunnenkant, I., Calvi, M., Citterio, A., Craievich, P., Csatari Divall, M., Dällenbach, M., D'Amico, M., Dax, A., Deng, Y., Dietrich, A., Dinapoli, R., Divall, E., Dordevic, S., Ebner, S., Erny, C., Fitze, H., Flechsig, U., Follath, R., Frei, F., Gärtner, F., Ganter, R., Garvey, T., Geng, Z., Gorgisyan, I., Gough, C., Hauff, A., Hauri, C., Hiller, N., Humar, T., Hunziker, S., Ingold, G., Ischebeck, R., Janousch, M., Juranić, P., Jurcevic, M., Kaiser, M., Kalantari, B., Kalt, R., Keil, B., Kittel, C., Knopp, G., Koprek, W., Lemke, H., Lippuner, T., Llorente Sancho, D., Löhl, F., Lopez-Cuenca, C., Märki, F., Marcellini, F., Marinkovic, G., Martiel, I., Menzel, R., Mozzanica, A., Nass, K., Orlandi, G., Ozkan Loch, C., Panepucci, E., Paraliev, M., Patterson, B., Pedrini, B., Pedrozzi, M., Pollet, P., Pradervand, C., Prat, E., Radi, P., Raguin, J., Redford, S., Rehanek, J., Réhault, J., Reiche, S., Ringele, M., Rittmann, J., Rivkin, L., Romann, A., Ruat, M., Ruder, C., Sala, L., Schebacher, L., Schilcher, T., Schlott, V., Schmidt, T., Schmitt, B., Shi, X., Stadler, M., Stingelin, L., Sturzenegger, W., Szlachetko, J., Thattil, D., Treyer, D., Trisorio, A., Tron, W., Vetter, S., Vicario, C., Voulot, D., Wang, M., Zamofing, T., Zellweger, C., Zennaro, R., Zimoch, E., Abela, R., Patthey, L. & Braun, H. (2017). Appl. Sci. 7, 720. Web of Science CrossRef Google Scholar
Naulleau, P. P., Goldberg, K. A. & Bokor, J. (2000). J. Vac. Sci. Technol. B, 18, 2939–2943. CrossRef CAS Google Scholar
O'Leary, P. & Harker, M. (2008). Proceedings of the IEEE Indian Conference on Computer Vision, Graphics and Image Processing., 16–19 December 2008, Bhubaneswar, India, pp. 150–157. Google Scholar
O'Leary, P. & Harker, M. (2012). IEEE Trans. Instrum. Meas. 61, 1237–1251. Google Scholar
Paganin, D. & Press, O. U. (2006). Coherent X-ray Optics. Oxford Science Publications. Google Scholar
Pfeiffer, F., Bunk, O., Schulze-Briese, C., Diaz, A., Weitkamp, T., David, C., van der Veen, J. F., Vartanyants, I. & Robinson, I. K. (2005). Phys. Rev. Lett. 94, 164801. Web of Science CrossRef PubMed Google Scholar
Rutishauser, S. (2013). PhD thesis, ETH Zurich, Switzerland. Google Scholar
Rutishauser, S., Samoylova, L., Krzywinski, J., Bunk, O., Grünert, J., Sinn, H., Cammarata, M., Fritz, D. M. & David, C. (2012). Nat. Commun. 3, 947. Web of Science CrossRef PubMed Google Scholar
Rutishauser, S., Zanette, I., Weitkamp, T., Donath, T. & David, C. (2011). Appl. Phys. Lett. 99, 221104. Web of Science CrossRef Google Scholar
Seiboth, F., Schropp, A., Scholz, M., Wittwer, F., Rödel, C., Wünsche, M., Ullsperger, T., Nolte, S., Rahomäki, J., Parfeniukas, K., Giakoumidis, S., Vogt, U., Wagner, U., Rau, C., Boesenberg, U., Garrevoet, J., Falkenberg, G., Galtier, E. C., Ja Lee, H., Nagler, B. & Schroer, C. G. (2017). Nat. Commun. 8, 14623. Web of Science CrossRef PubMed Google Scholar
Seiboth, F., Wittwer, F., Scholz, M., Kahnt, M., Seyrich, M., Schropp, A., Wagner, U., Rau, C., Garrevoet, J., Falkenberg, G. & Schroer, C. G. (2018). J. Synchrotron Rad. 25, 108–115. Web of Science CrossRef IUCr Journals Google Scholar
Servin, M., Cywiak, M. & Dávila, A. (2007). Opt. Express, 15, 17805–17818. CrossRef PubMed CAS Google Scholar
Sikorski, M., Song, S., Schropp, A., Seiboth, F., Feng, Y., Alonso-Mori, R., Chollet, M., Lemke, H. T., Sokaras, D., Weng, T.-C., Zhang, W., Robert, A. & Zhu, D. (2015). J. Synchrotron Rad. 22, 599–605. Web of Science CrossRef CAS IUCr Journals Google Scholar
Suleski, T. J. (1997). Appl. Opt. 36, 4686–4691. CrossRef PubMed CAS Web of Science Google Scholar
Takeda, M., Ina, H. & Kobayashi, S. (1982). J. Opt. Soc. Am. 72, 156–160. CrossRef Web of Science Google Scholar
Tschentscher, T., Altarelli, M., Brinkmann, R., Delissen, T., Schwarz, A. & Witte, K. (2006). Synchrotron Radiat. News, 19(6), 13–19. CrossRef Google Scholar
Wallner, E. P. (1983). J. Opt. Soc. Am. 73, 1771–1776. CrossRef Google Scholar
Wang, H., Sawhney, K., Berujon, S., Ziegler, E., Rutishauser, S. & David, C. (2011). Opt. Express, 19, 16550–16559. Web of Science CrossRef PubMed Google Scholar
Weitkamp, T., Nöhammer, B., Diaz, A., David, C. & Ziegler, E. (2005). Appl. Phys. Lett. 86, 054101. Web of Science CrossRef Google Scholar
Yabashi, M., Tanaka, H. & Ishikawa, T. (2015). J. Synchrotron Rad. 22, 477–484. Web of Science CrossRef CAS IUCr Journals Google Scholar
Yashiro, W., Takeda, Y., Takeuchi, A., Suzuki, Y. & Momose, A. (2009). Phys. Rev. Lett. 103, 180801. Web of Science CrossRef PubMed Google Scholar
Zhu, D., Feng, Y., Stoupin, S., Terentyev, S. A., Lemke, H. T., Fritz, D. M., Chollet, M., Glownia, J. M., Alonso-Mori, R., Sikorski, M., Song, S., van Driel, T. B., Williams, G. J., Messerschmidt, M., Boutet, S., Blank, V. D., Shvyd'ko, Y. V. & Robert, A. (2014). Rev. Sci. Instrum. 85, 063106. Web of Science CrossRef PubMed Google Scholar
This is an open-access article distributed under the terms of the Creative Commons Attribution (CC-BY) Licence, which permits unrestricted use, distribution, and reproduction in any medium, provided the original authors and source are cited.