Introduction
The European Spallation Source (ESS) in Lund, Sweden, is constructing a high-intensity 2 GeV proton linear accelerator designed for 5 MW operation [1]. The accelerator comprises a normal-conducting (NC) front end operating at 352.21 MHz, followed by a superconducting (SC) linac at 704.42 MHz (excluding the spoke cavities). As shown in Fig. 1, the Drift Tube Linac (DTL) and SC sections are subdivided into individual tanks and cryomodules, with the gray-shaded cryomodules designated to remain unpowered during the initial 2 MW operation at 800 MeV [2-4]. The high-level parameters for the ESS are summarized in Table 1. Designed for a 62.5 mA peak beam current with a 14 Hz repetition rate, the ESS demands accurate and precise RF phase control in each cavity to maintain beam quality and minimize beam losses. By 2023, the initial commissioning had accelerated the beam through the early NC sections to approximately 74 MeV.
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F001.jpg)
| Parameter | Value |
|---|---|
| Beam power (MW) | 5 |
| Beam energy (GeV) | 2 |
| Peak beam current (mA) | 62.5 |
| Beam pulse length (ms) | 2.86 |
| Beam pulse repetition rate (Hz) | 14 |
| Duty factor (%) | 4 |
| RF frequency (MHz) | 352.21 / 704.42 |
| Availability (%) | 95 |
Accurate measurement of the beam phase, defined as the phase experienced by the beam relative to the RF field, is critical for maintaining beam quality and minimizing losses, particularly in high-power accelerators such as the ESS. Various methods exist for calibrating beam phases. Direct approaches include phase-scan techniques (e.g., ΔT phase scan [4-7], phase-scan signature matching [7, 8]), which vary the RF phase and observe downstream beam changes. Although effective, these methods often need dedicated beam studies, requiring the sequential calibration of individual cavities with adjacent ones deactivated or significantly detuned, thereby disrupting normal operations. They are typically performed offline during commissioning or maintenance, making them labor-intensive. Furthermore, gradual ambient drifts, such as changes in temperature and humidity, within low-level RF (LLRF) control loops necessitate periodic recalibrations during routine operation.
Alternative strategies have been designed to minimize the disruption of the normal operation of the accelerator. The “drifting beam method,” pioneered at SNS [9], uses the LLRF system to measure transient RF signals excited by the beam in an unpowered SC cavity. The analysis of these transients yields the relative beam phase. This avoids extra beam diagnostics but requires temporarily unpowering the cavity. Researchers at DESY proposed another method based on the linear fitting of the trajectory of the RF transient induced by a beam pulse in the in-phase/quadrature (I/Q) plane. The beam pulse is typically short, on the order of tens of microseconds, and the measurement is performed within a powered SC cavity [10-14]. The DESY approach allows online measurement but usually requires operating the SC cavity in an open-loop configuration.
Adapting the DESY approach to the ESS NC buncher cavity poses a distinct challenge [15, 16]. The buncher cavity has a measured half-bandwidth (ω0.5) of approximately 18 kHz, corresponding to a time constant (
To mitigate detuning-induced errors, we developed a detuning compensation algorithm by solving the cavity differential equations to predict the theoretical deflection angle (
However, operating RF cavities in the open-loop mode is neither practical nor safe for high-current proton linacs, such as the ESS. In open-loop operation, the RF field can deviate from its setpoint, and strong beam loading [22, 23] further increases the risk of beam losses. Therefore, it is preferable to maintain a closed-loop LLRF operation during measurements. To avoid interference from the feedback system during phase calibration, we deliberately selected a calibration window approximately equal to the LLRF loop delay (
In the following sections, we first revisit the cavity differential equation and analyze the impact of cavity detuning on the beam-induced RF transient. Based on this analysis, a detuning-aware beam phase calibration method is proposed, together with a practical implementation strategy under closed-loop conditions. Experimental validation was performed using the ESS MEBT buncher cavity, demonstrating the effectiveness of the proposed technique under realistic operating scenarios.
Principle of Beam Phase Calibration Using Beam-Induced RF Transients
The beam phase calibration method based on beam-induced RF transients in powered RF cavities was originally proposed by DESY [13, 14]. In the following subsection, we present the theoretical basis of DESY’s approach, including the derivation of the transient field trajectory and the conditions under which the linear approximation applies directly. Throughout this study, boldface symbols (e.g., Vc, Ib) denote complex-valued signals or quantities.
Transient RF Trajectory Calibration: Concept and Example
Figure 2 illustrates the basic principle of beam phase measurement using beam-induced RF transients. As shown in Fig. 2a, the cavity field is initially in a steady state with normalized amplitude and zero phase. When a short beam pulse passes through the cavity in the open-loop mode, it induces a transient perturbation, denoted as Vcb(t), shifting the cavity voltage from its nominal value to a new complex value
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F002.jpg)
Figure 3 shows the measured beam-induced RF transient in the ESS buncher cavity B2 (see Fig. 1) under open-loop conditions, generated by a 5 μs, 55 mA beam pulse with a beam phase of approximately -44°. The relevant RF parameters are listed in Table 2. As seen in Fig. 3a, the cavity remains in a steady state prior to beam arrival. At approximately t=177 μs, the cavity voltage Vc1(t) in the presence of the beam exhibits a pronounced drop in both the amplitude and phase relative to the no-beam case Vc0(t). A zoomed-in view of the shaded region in Fig. 3a, as shown in Fig. 3b reveals the detailed structure of the beam-induced RF transient. Figure 3c displays the corresponding transient trajectory of Vcb(t) in the I/Q plane, reconstructed from the sampled RF waveforms acquired by the digital LLRF system.
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F003.jpg)
| Parameter | Value |
|---|---|
| Beam pulse repetition rate (Hz) | 14 |
| Cavity voltage (kV) | 59.7 |
| RF frequency (MHz) | 352.21 |
| Cavity half bandwidth (ω0.5) (kHz) | ~18 |
| Normalized shunt impedance (r/Q) (Ω) | ~75 |
| Coupling factor (β) | ~1 |
In the following, we present the theoretical basis of this approach, including the derivation of the transient field expression and the conditions under which the linear approximation remains valid.
The time evolution of the cavity field, with and without beam loading, can be described by the following differential equations [24, 26-30]:_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M001.png)
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M002.png)
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M003.png)
If the cavity operates in an open-loop mode, the cavity forward signal remains approximately unchanged during beam injection, such that _2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M004.png)
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M005.png)
To simplify the analysis without loss of generality, we assume that the beam-induced voltage Vb(t) points along the X-axis (real axis) in the complex plane; that is, its phase angle is set to zero. Under this assumption,
This approximation is justified by the fact that, as shown in Sect. 4, the beam current pulse typically resembles a quasi-rectangular waveform with a sub-microsecond rise time. Hence, in the early stage, when the beam first enters the cavity, its effect closely resembles that of a step excitation. With this simplification, the solution to Eq. (4) becomes [27]:_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M006.png)
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M007.png)
Detuning Impact Analysis
When the cavity operates off-resonance (
To gain analytical insight into the early-time behavior, we consider the limit _2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M008.png)
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M009.png)
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M010.png)
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M011.png)
According to Eq. (9), as
Figure 4 shows Vcb,step(t) under various detuning conditions. In Fig. 4a, both real and imaginary components evolve over time, with the response angle determined by the detuning angle
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F004.jpg)
Figure 4 and Eq. (8) provide insight into the applicability of the DESY method. When cavity detuning is present, the step response Vcb,step(t) includes an imaginary component, causing the corresponding transient vector to deviate from the direction of Vb in the complex I/Q plane. The angle between Vcb,step and Vb is determined by both the detuning magnitude and observation time t. It is important to note that t must remain less than the beam pulse width
For SC cavities, the loaded quality factor QL is typically high, resulting in a narrow half-bandwidth (tens to hundreds of Hz) and a large time constant
In contrast, for the ESS NC buncher cavity B2 (see Fig. 1) with a time constant
It should be emphasized that Eq. (6) is valid only for the zero-state response of Eq. (4), where the beam-induced voltage Vb(t) is modeled as a unit step function aligned along the X-axis. In practical measurements, however, the observed beam-induced RF transient also includes the steady-state cavity field, and the beam-induced voltage vector Vb(t) may point in an arbitrary direction within the 360-degree I/Q plane. Therefore, the normalized transient signal Vcb(t) is expressed as:_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M012.png)
Substituting Vb in Eq. (10) with Ib using Eq. (2) yields:_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M013.png)
Figure 5 shows the simulation results based on Eq. (11), where different detuning angles produce distinct trajectories of Vcb(t) in the I/Q plane. The simulation assumed a peak beam current of Ib0=55 mA, pulse width of 5 μs, and beam phase of approximately -45°. Figures 5a and b illustrate the time evolution of the amplitude and phase and the corresponding I/Q-plane trajectories, respectively.
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F005.jpg)
In this section, the beam excitation is approximated as a quasi-rectangular pulse with a sub-microsecond rise time, as is typically observed in accelerator systems [22]. Based on this, the beam input was modeled as a unit step function to analyze the detuning effects on the beam phase measurement for both SC and NC cavities. Although this assumption simplifies the analysis, the qualitative conclusions remain valid for arbitrary beam pulse shapes. A general derivation is provided in Appendix A.
Beam Phase Calibration Algorithm with Detuning Compensation
To enable accurate phase calibration under detuning, this section presents a correction framework based on a theoretical deflection estimation. We first derive the deflection angle induced by detuning and then discuss its application under closed-loop operation.
Theoretical Estimation of Deflection Angle Caused by Detuning
According to Eq. (6) in Sect. II, the theoretical phase deflection angle _2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M014.png)
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F006.jpg)
Figure 7 presents 2D contour plots of the theoretical deflection angle
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F007.jpg)
Feasibility of Closed-Loop Implementation
Having established the theoretical framework for detuning compensation, we now turn to its practical application under closed-loop conditions, which are essential for safe and stable beam delivery in high-current proton linacs, such as the ESS.
Accordingly, we exploit the LLRF loop delay window
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F008.jpg)
Figure 9 illustrates the calibration process under closed-loop and detuned conditions. The beam phase
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F009.jpg)
Normalize the steady-state cavity voltage Vc prior to beam arrival to
Extract the transient response Vcb(t) within the loop delay window
Compute the cavity detuning angle _2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M015.png)
Finally, compute the beam phase using:_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-M016.png)
Experimental Validation
The experimental validation of the detuning-compensated beam phase calibration algorithm, including its closed-loop feasibility, was conducted using the ESS MEBT normal-conducting buncher cavity (B2, Fig. 1). The beam pulse width was fixed at Tps=5 μs, with the beam current and phase adjusted as needed. BCTs and a BPM (in Q5, Fig. 1) independently measures the beam current and phase. RF pulse waveforms (Fig. 3, 8) and key RF parameters (Table 2) characterize the setup.
Figure 10 compares the measured beam-induced RF transients Vcb with the simulated results under various detuning angles
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F010.jpg)
Figure 11 shows the open-loop beam phase measurements (Ib0=55 mA) before and after the detuning correction. Subfigures (a) and (b) use
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F011.jpg)
To validate the method under realistic accelerator conditions, closed-loop beam phase measurements were conducted. Figure 12 shows the BCT and BPM measurements of the beam current (top) and phase (bottom). Figures 12a and b show low- (Ib0=5 mA) and high-current (Ib0=60 mA) cases. Notably, at a higher current, intra-pulse phase fluctuations of approximately 2° are evident, and their impact on measurement precision is examined later.
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F012.jpg)
Figure 13 compares the trajectories of the beam-induced transient signal Vcb in the I/Q plane under open-loop and closed-loop conditions. For the 5 mA case (Fig. 13a), the signal is relatively weak and more susceptible to noise, leading to reduced accuracy in phase determination. For the 60 mA case (Fig. 13b), although the feedback introduces a slight curvature to the trajectory, the open-loop and closed-loop traces remain nearly identical within the loop delay window (approximately 13 samples, including the initial
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F013.jpg)
The impact of the calibration window length Tw was further evaluated for 5 mA and 60 mA beam currents in the open- and closed-loop modes. Figure 14 summarizes the results. Figures 14(a) and (b) show probability density histograms of the measured beam phase for various Tw, with upper plots for open-loop and lower for closed-loop. Different colors represent different Tw.
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F014.jpg)
At 5 mA (Fig. 14a), under open-loop operation, increasing the calibration window Tw leads to a narrower beam phase distribution, corresponding to a lower root-mean-square (RMS) error. The histogram peak stabilizes at approximately -85.5°, which is consistent with the theoretical prediction shown in Fig. 12a. After switching to the closed-loop operation, the measurements remained in good agreement with the open-loop results when
At 60 mA (Fig. 14b), under open-loop operation, the phase distributions are more concentrated due to improved signal-to-noise ratio. Nevertheless, intrapulse beam phase fluctuations (as observed in Fig. 12b) cause the histogram peak to shift with increasing Tw, for example, from approximately -42.5°at Tw=1 μs to -45° at Tw = 4 μs. Under closed-loop operation, a similar trend is observed: the results match the open-loop reference when
Figures 14c and 14d present the average (top) and RMS error (bottom) of the measured beam phase versus Tw for the 5 mA and 60 mA cases. For 5 mA (Fig. 14c), the average phase remains stable across different
Figure 15 compares the calibrated beam phase (blue), obtained from Vcb fit under closed-loop operation, with BPM5 measurements (green) across different beam currents. The BPM data are obtained by averaging the phase signal over the 2.5–5 μs interval (see Fig. 12). BPM measurements revealed beam phase differences at various currents. This may be attributed to the defocusing effects of the buncher cavity, where beams of different intensities pass through the cavity along slightly different orbits, thereby causing variations in the BPM readings. As shown in Fig. 15, at low beam currents, BPM5 measurements match well with the calibrated beam phase from the Vcb fit under closed-loop operation. However, at higher currents, increasing deviations (approximately 1.5°) are observed owing to beam phase fluctuations during the pulse duration (see Fig. 12b). It should be noted that BPM-based measurements are generally considered more accurate because they average the beam phase over the entire pulse, particularly during the steady-state portion. In this study, a dedicated phase-scan calibration was carefully performed a few days prior to the experiment, which minimized the impact of possible ambient drifts on the BPM results.
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F015.jpg)
Figure 16 presents the closed-loop beam phase measurement results with a calibration window of
_2026_06/1001-8042-2026-06-108/alternativeImage/1001-8042-2026-06-108-F016.jpg)
In summary, the experimental data validate the effectiveness of the proposed method in compensating for detuning effects and achieving accurate beam phase measurements under realistic accelerator conditions. This approach enables non-invasive, online beam phase calibration under fully closed-loop operation, even in high-current normal-conducting cavities, such as those at the ESS. By avoiding disruption of routine operations, this method provides a practical and scalable solution for real-time diagnostics, routine calibration, and early fault detection in modern proton linacs [23].
Conclusions and Future Work
In this study, we systematically investigated a beam phase measurement method based on transient beam loading and quantitatively analyzed the influence of cavity detuning on the measurement results for both superconducting and normal-conducting RF cavities. A theoretical expression for the detuning-induced phase deflection angle was derived, and a compensation algorithm was proposed. The feasibility of implementing this method was experimentally validated using the buncher cavity (B2) in the MEBT section of the ESS accelerator. The effectiveness of the proposed algorithm was demonstrated by comparing the open-loop and closed-loop measurements under various detuning scenarios.
The results confirm that within the LLRF loop delay window (
When both detuning and feedback are present, the trajectory of Vcb in the I/Q plane becomes more complex, but still follows identifiable patterns. Future research may leverage artificial intelligence (AI) techniques to overcome the current
The European Spallation Source design
. Phys. Scr. 93,Beam commissioning of normal conducting part and status of ESS project
, In:ESS normal conducting linac commissioning results
. In:First RF phase scans at the European Spallation Source
. In:Development and implementation of δt procedure for the SNS linac
. In:The AT tune-up procedure for the LAMPF 805-MHz linac, Los Alamos Laboratory Report LA-6374-MS
, 1976. Available at https://www.osti.gov/servlets/purl/7353211Transient beam loading based calibration for cavity phase and amplitude setting
. In:Pasta-an RF phase scan and tuning application
. In:Determination of field amplitude and synchronous phase using the beam-induced signal in an unpowered superconducting cavity
. Nucl. Instrum. Methods Phys. Res. A 571, 574–582 (2007). https://doi.org/10.1016/j.nima.2006.10.397DESY, Transient beam loading based calibration of the vector-sum for the TESLA test facility
. In:New method for beam induced transient measurement
. Meas. Sci. Technol. 18, 2348–2355 (2007). https://doi.org/10.1088/0957-0233/18/8/008.On-line RF amplitude and phase calibration
. In:Experience with beam-transient LLRF calibration in XFEL
. In:Beam-transient-based LLRF voltage signal calibration for the European XFEL
. In:On-line beam synchronous phase calibration using beam-induced RF signals
. In:On-line beam phase and current measurement using deep learning models
. In:Application of disturbance observer-based control on pulsed superconducting radio frequency cavities
. Phys. Rev. Accel. Beams 24,RF commissioning of the compact energy recovery linac superconducting cavities in pulse mode
. Nucl. Instrum. Methods Phys. Res. A 985,Ultrahigh accelerating gradient and quality factor of CEPC 650 MHz superconducting radio-frequency cavity
. Nucl. Sci. Tech. 33, 125 (2022). https://doi.org/10.1007/s41365-022-01109-8Measurement of the cavity-loaded quality factor in superconducting radio-frequency systems with mismatched source impedance
. Nucl. Sci. Tech. 34, 123 (2023). https://doi.org/10.1007/s41365-023-01281-5Classification of superconducting radio-frequency cavity faults of CAFE2 using machine learning
. Nucl. Sci. Tech. 36, 104 (2025). https://doi.org/10.1007/s41365-025-01685-5Application of a modified iterative learning control algorithm for superconducting radio-frequency cavities
. Nucl. Instrum. Methods Phys. Res. A 1026,Approach to calibrate beam phase using steady-state RF forward signal under closed-loop operation
. In:In situ mitigation strategies for field emission-induced cavity faults using low-level radiofrequency system
. Nucl. Sci. Tech. 33, 140 (2022). https://doi.org/10.1007/s41365-022-01125-8Virtual cavity probe for the real-time identification of cavity burst-noise type in superconducting radio-frequency systems
. Nucl. Instrum. Methods Phys. Res. A 1068,Vector sum control of pulsed accelerating fields in Lorentz force detuned superconducting cavities
. Ph.D. thesis,Development of a finite state machine for the automated operation of the LLRF control at FLASH
, Ph.D. thesis,Real-time cavity simulator-based low-level radio-frequency test bench and applications for accelerators
. Phys. Rev. Accel. Beams 21,Approach to calibrate actual cavity forward and reflected signals for continuous wave-operated cavities
. Nucl. Instrum. Methods Phys. Res. A 1034,A phenomenological model of the fundamental power coupler for a superconducting resonator
. Nucl. Sci. Tech. 34, 167 (2023). https://doi.org/10.1007/s41365-023-01215-1Yuan He is an editorial board member for Nuclear Science and Techniques and was not involved in the editorial review, or the decision to publish this article. All authors declare that there are no competing interests.

