원시데이터 수집 시스템
선정목록으로

Space-charge distortion of transverse profiles measured by electron-based ionization profile monitors and correction methods

관련 필름·전자재료 · (14) 드라이 필름(포토레지스트)

기본 정보

저자
  1. D. Vilsmeier — Johann Wolfgang Goethe-University Frankfurt, 60323 Frankfurt am Main, Germany
  2. M Sapinski — Johann Wolfgang Goethe-University Frankfurt, 60323 Frankfurt am Main, Germany
  3. R. Singh — Johann Wolfgang Goethe-University Frankfurt, 60323 Frankfurt am Main, Germany
  4. D. Vilsmeier
  5. M Sapinski
  6. R. Singh
DOI
10.1103/physrevaccelbeams.22.052801
저널
Physical Review Accelerators and Beams
발행년도
2019
발행기관
American Physical Society
피인용수
8
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1103/physrevaccelbeams.22.052801
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W2899509568

평가 내용

관련도
관련
사업분야
필름·전자재료 · (14) 드라이 필름(포토레지스트)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 드라이 필름(포토레지스트)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Measurements of transverse profiles using Ionization Profile Monitors (IPMs)\nfor high brightness beams are affected by the electromagnetic field of the\nbeam. This interaction may cause a distortion of the measured profile shape\ndespite strong external magnetic field applied to impose limits on the\ntransverse movement of electrons. The mechanisms leading to this distortion are\ndiscussed in detail. The distortion itself is described by means of analytic\ncalculations for simplified beam distributions and a full simulation model for\nrealistic distributions. Simple relation for minimum magnetic field scaling\nwith beam parameters for avoiding profile distortions is presented. Further,\napplication of machine learning algorithms to the problem of reconstructing the\nactual beam profile from distorted measured profile is presented. The obtained\nresults show good agreement for tests on simulation data. The performance of\nthese algorithms indicate that they could be very useful for operations of IPMs\non high brightness beams or IPMs with weak magnetic field.\n

본문 98,062자

본문 펼치기
## Space-charge distortion of transverse profiles measured by electron-based Ionization Profile Monitors and correction methods D. Vilsmeier <sup>_∗_</sup> _Johann_ _Wolfgang_ _Goethe-University_ _Frankfurt,_ _60323_ _Frankfurt_ _am_ _Main,_ _Germany_ M. Sapinski and R. Singh _GSI_ _Helmholtz_ _Centre_ _for_ _Heavy_ _Ion_ _Research,_ _64291_ _Darmstadt,_ _Planckstr._ _1,_ _Germany_ (Dated: April 23, 2022) ## Abstract Measurements of transverse profiles using Ionization Profile Monitors (IPMs) for high brightness beams are affected by the electromagnetic field of the beam. This interaction may cause a distortion of the measured profile shape despite strong external magnetic field applied to impose limits on the transverse movement of electrons. The mechanisms leading to this distortion are discussed in detail. The distortion itself is described by means of analytic calculations for simplified beam distributions and a full simulation model for realistic distributions. Simple relation for minimum magnetic field scaling with beam parameters for avoiding profile distortions is presented. Further, application of machine learning algorithms to the problem of reconstructing the actual beam profile from distorted measured profile is presented. The obtained results show good agreement for tests on simulation data. The performance of these algorithms indicate that they could be very useful for operations of IPMs on high brightness beams or IPMs with weak magnetic field. _∗_ [d.vilsmeier@gsi.de](mailto:d.vilsmeier@gsi.de) I. INTRODUCTION The principle of beam profile measurement using Ionization Profile Monitors (IPMs) is seemingly very simple. The beam particles ionize the residual gas. The products of the ionization - electrons or ions - are extracted towards a position-sensitive detector using the guiding electric field (also referred to as ’clearing’ or ’external’ field) provided by electrodes. The distribution of the particles on the detector ideally corresponds to a projection of the transverse distribution of the beam density. This simple and straightforward principle, illustrated in Fig. 1, is non-destructive for the beam and thus an appealing application for synchrotrons and storage rings. In this context IPMs are installed in many hadron accelerators [1] and even investigated for usage on electron machines [2]. Figure 1: Sketch of an IPM together with read-out system. The electric and magnetic guiding fields are aligned, perpendicular to the beam direction as well as to the read-out system [3]. However already for medium-intensity beams the movement of electrons or ions is eas ily affected by the transient beam electric field. Because of their lower mass, electrons are removed much faster from the influence of bunch fields, however the effect of these fields on their trajectories is proportionally larger. Usually ion-based devices are preferred due to simpler assembly (no need of ion-trapping [4]), smaller impact of fringe fields of neigh bouring magnets and lack of background signal from electrons generated from various other sources [5]. However the influence of beam fields plays a major role for high-brightness beams and thus electron-based IPMs are preferred over ion-based devices, mainly because the electron movement can be easily confined to small gyroradius by applying external magnetic field. Another argument in favor of electron-based devices is the fact that they are more suitable for time-resolved measurements because the electrons have much smaller time-of-flights towards the detector. Distortions of the measured beam profile using ion-based IPMs are either mitigated by increasing the electric guiding field or corrected by empirical mathematical models [6–9]. For operation of electron-based IPMs with magnetic field it was first proposed to tune the magnetic field strength such that the electrons perform exactly one gyration between the beam and the detector [10]. However this method does not work for high-brightness beams, in which electrons get a significant momentum transfer not only transverse to the detector plane but also in the direction towards the detector. Therefore increasing the magnetic field in order to reduce the magnitude of gyroradius is the typical counteraction against the distortion of the measured beam profiles. This is also because profile correction methods, similar to the ones developed for ion-based IPMs, do not exist for electron-based devices. One reason for that is the more complex particle movement in the presence of a combination of electric and magnetic fields. This movement and therefore the profile distortion, strongly depend on the beam fields and hence on bunch charge, transverse and longitudinal bunch shape as well as bunch spacing. The first beam space-charge induced effects in an electron-based IPM operated with magnetic guiding field were observed in the Large Hadron Collider (LHC) at beam energies of 4 TeV and magnetic guiding field of 0 _._ 2 T [11]. Following studies have analyzed this phenomenon and estimated a magnetic field strength of 1 T required to suppress profile distortions [12–14]. However such large field strengths pose a technological as well as financial challenge, especially because of the relatively large gap between the poles needed to fit the detector vacuum chamber. Besides beam space-charge induced profile distortion there are various other phenomena which can have an effect on measured profiles. These are briefly discussed below however not addressed any further throughout this study: 1. Ionization by bunch field. At extreme field strengths the gas ionization cross-section is modified due to the Stark shift of energy levels and at even higher fields the gas gets ionized by the collective bunch electric field [15], rather than by interaction with single beam particles. 2. Burnout of the rest gas. Under some conditions, the ionization rate of the rest gas can be higher than the replenishment of gas in the volume of the beam leading to non-proportionality between beam density and amount of ionization events. This can be counterbalanced by, for instance, using gas jet [16]. 3. Guiding field non-uniformity. If the electric and magnetic guiding fields are non uniform, it will additionally impact the resulting particle trajectories [17]. Also if the guiding fields are not perfectly aligned with respect to each other this introduces an additional disturbance. 4. Gas ionization from synchrotron radiation and the influence of wake fields on particle trajectories may constitute additional sources of profile distortion. However these effects have not been observed or studied up to now. Some of the mentioned effects emerge from the influence of the particle beam and depend mainly on the amplitude of the beam electric field and the duration of the corresponding pulse. An overview of various effects in dependence on these two parameters is shown in Fig. 2 alongside the beam parameters of several hadron accelerators, the most powerful laser system up-to-date (LFEX), 3rd generation light source (ALBA) and advanced free electrons laser (SwissXFEL). The peak fields in waist of LFEX laser beam reaches 1 _×_ 10 <sup>7</sup> MV m <sup>_−_</sup> <sup>1</sup>, well beyond the limit of gas ionization by bunch electric field. In comparison, the highest field in an accelerator - a focused SwissXFEL beam - will be reaching about 2 _×_ 10 <sup>4</sup> MV m <sup>_−_</sup> <sup>1</sup> . All hadron machines are currently below 10 MV m <sup>_−_</sup> <sup>1</sup> but the bunch lengths are about 3 orders of magnitude larger than those of LFEX and XFEL. Fig. 2 also indicates two effects related to beam space-charge interaction: electrons being trapped by the beam fields exceeding the electric guiding field and electron velocities reaching into the relativistic regime. Depending on the acquisition system in use, additional distortion of the measured dis tributions may occur. The electron or ion detection is usually based on amplification of the signal using Multi-Channel Plate (MCP) and either conversion of resulting electrons to light using a phosphor screen followed by a camera or direct conversion to electric signals using anode-strips. Such systems may suffer from non-uniformity of MCP gain, Phosphor deterioration or point-spread function of the optical system positioned after the Phosphor. Recent developments focus on use of hybrid silicon pixel detector instead of MCP/Phosphor or MCP/anode-strip combination and have shown to sidestep some of these issues [18]. Figure 2: Amplitude and duration of transient beam electric fields generated in various scientific apparatus. Approximate boundaries indicating appearance of phenomena like electron trapping or relativistic regime are shown. The estimates were done for a magnetic guiding field of 0 _._ 2 T. The dashed vertical line indicates the gyro-period for electrons moving in the 0 _._ 2 T magnetic field. The present study focuses on application of electron-based IPMs in high-brightness hadron machines such as the Large Hadron Collider (LHC), the Super Proton Synchrotron (SPS) at CERN or the SIS-100 under construction at FAIR. For these machines the beam space induced profile distortion becomes a prominent factor that potentially hinders the successful operation of electron-based IPMs. This type of profile distortion as well as possible mitigation strategies are the focus of the present study. II. PROFILE DISTORTION In the following sections we will focus on profile distortion effects related to the electron movement which is governed by their interaction with the present electromagnetic fields. For the scope of this contribution, we assume perfectly uniform and aligned guiding fields and do not consider gas target and acquisition system related effects which were mentioned in the previous section. The coordinate system used throughout this study is _x_, along the measured profile (horizontal), _y_, towards the acquisition system (vertical) and _z_, along the beam (longitudinal). For illustration purposes we refer in this section to the data obtained for an example case which has been studied by means of simulations. The corresponding parameters are given in Table I and correspond to a possible LHC flat top configuration (nominal value of bunch charge is about 1 _._ 3 _·_ 10 <sup>11</sup>, but charges above 2 _·_ 10 <sup>11</sup> are expected for HL-LHC). The LHC beam case is well studied [12–14, 19–21]. As another example we will shortly discuss the SIS-100 IPM system for proton beam at flat top. Table I: Beam and device parameters for the example case which corresponds to a possible LHC flat top configuration. Parameter Value Beam particle type Protons Energy/u 6 _._ 5 TeV Bunch population 2 _._ 1 _×_ 10 <sup>11</sup> ppb Bunch length (4 _σz_ ) 0 _._ 9 ns Bunch width (1 _σx_ ) 270 µm Bunch height (1 _σy_ ) 360 µm Electrode distance 85 mm Applied voltage 4 kV Magnetic field 0 _._ 2 T Number of sim. electrons 100 000 Time step size 0 _._ 3125 ps A. Effects related to electron movement The electron movement is initialized by the ionization process and further influenced by the interaction with the guiding fields and the electromagnetic field of the particle beam ( _space-charge_ _interaction_ ). The relevant effects can be summarized by the following three aspects : _•_ _Ionization momenta_ - The initial momenta of electrons, obtained during the ionization process, clearly influence their further trajectories. Due to the interaction with the magnetic guiding field an initial momentum component along the beam axis results in a transverse displacement of the subsequent gyromotion while a transverse mo mentum component results in a longitudinal displacement. This effect becomes more pronounced for small guiding field strengths as well as for small beam sizes where the magnitude of the gyromotion increases relative to the beam dimensions. For relativis tic beams the electrons are mainly ejected transverse to the beam direction [22]. _•_ _Space-charge_ _interaction_ - The interaction of electrons with the electric field of the particle beam may significantly alter their trajectories, resulting in noticeable distor tions of measured profiles. This interaction cannot be treated analytically without introducing significant approximations and hence must be studied by the means of numerical simulations. As this effect correlates with the magnitude of the beam elec tric field, it becomes especially significant for high intensity and high energy beams. However also small magnetic guiding fields may not be sufficient to counteract the beam field interaction and hence provoke an increase in gyroradii. _•_ _Gyromotion_ - The electrons perform a spiral movement under the influence of the external magnetic guiding field. Depending on the magnitude of the gyroradius an electron may experience a significant displacement with respect to its center of gyra tion. This effect is especially significant for small beam sizes since the magnitude of the displacement increases relative to the beam size. Often the magnetic guiding field is sufficient for suppressing profile distortion. However in extreme cases the space-charge interaction can become so strong, with electric fields of up to a few MV m <sup>_−_</sup> <sup>1</sup> (typical extraction fields are around 50 kV m <sup>_−_</sup> <sup>1</sup> ), that electrons are (a) trapped inside the space-charge region since the beam electric field outweighs the electric guiding field around the center of the bunch, and (b) forced on significantly different trajectories, resulting in a vast increase of gyroradii. Since the above effects depend on the various parameters of the particle beam it is often not obvious to determine an appropriate strength for the magnetic guiding field which allows to sufficiently suppress the gyroradius increase. Having in mind the above-mentioned effects we may subdivide the IPM volume into two regions: _•_ _Space-charge_ _region_ - This is the region in the vicinity of the beam where the inter action with the beam’s electromagnetic field has a major influence. The gyro-velocity of electrons are subject to a perpetual oscillation induced by the _⃗_ E _×⃗_ B drift along the beam and the magnitude of this oscillation is altered when the beam center ap proaches and recedes from the positions of the electrons. Because of the complex shape of the electromagnetic fields the electron motion exhibits other electromagnetic drifts as well, for example _polarization_ _drift_ due to the time dependence of the beam electric field [23]. For estimating the dimensions of this region one can consider the _⃗_ E _×⃗_ B drift velocity as an indicator for space-charge action. The region in which this _⃗_ E _×⃗_ B drift velocity is more than 1% of the undisturbed gyro-velocity, is of the order of a few millimeters. _•_ _Detector_ _region_ - This is the region close to the acquisition system where the beam fields diminish to a negligible magnitude. This means the electron movement are solely subject to the electric and magnetic guiding fields and hence the electrons perform a pure gyromotion planar to the detector while being accelerated towards it. The characteristics of this gyromotion (gyroradius and gyrocenter position) depend on the previous beam space-charge interaction. Note that as the bunch recedes from the electrons’ positions the space-charge region will shrink in time. While this region can be quite large during the bunch center passing, the transverse electric field quickly diminishes according to the bunch’s line density. Therefore also electrons that are ionized near the bunch’s center will eventually end up performing a pure gyromotion as in the detector region. Fig. 3 shows the bunch electric field as it decreases towards the detector ( _y_ ) and along the beam axis ( _z_ ) and hence illustrates the separation in space-charge and detector region. While the two dependencies are shown separately, their collective effect results in a much stronger decrease as the bunch recedes from the electrons’ positions and hence the effective space-charge region is smaller than indicated by the single dependencies. This is because the beam velocity is significantly larger than the electrons’ velocities along the beam axis and hence the spatial dependence ( _z_ ) can be thought of as a time-dependence ( _t_ ). Considering an electron’s _initial_ position during ionization and _final_ position during de tection, _x_ 0 and _xf_ respectively, the overall displacement ∆ _x_ = _xf_ _−_ _x_ 0 can be ascribed to three different effects: 1. ∆ _x_ 1 – Displacement of the electron’s gyro-center _x_ <sup>_c_</sup> 0 <sup>with respect to the initial position,</sup> Figure 3: Evolution of the transverse bunch electric field _Ex_ at _x_ = _σx_ in direction towards the detector (y) and during beam passage (z, t), for the parameters in Table I. The x-position is fixed to 1 _σx_ and y- and z-position are fixed to zero if not varied. due to its initial velocity along the beam: ∆ _x_ 1 = _x_ <sup>_c_</sup> 0 <sup>_−_</sup> <sup>_x_</sup> <sup>0.</sup> <sup>Electrons</sup> <sup>that</sup> <sup>are</sup> <sup>ejected</sup> transverse to the longitudinal beam axis, in horizontal direction, merely suffer from a displacement of their gyrocenter along that axis, i.e. not affecting their horizontal position which determines the transverse profile. If they are ejected along the beam however there will be a corresponding displacement transverse to it. This type of displacement is typically around a few tens of microns and can be assessed with dif ferential ionization cross sections which usually depend on the projectiles charge state and energy. In relativistic cases, transverse ejection dominates and so the resulting displacement is mainly along the beam [22]. 2. ∆ _x_ 2 - Displacement of the space-charge altered gyrocenter _x_ <sup>_c_</sup> _s_ <sup>with</sup> <sup>respect</sup> <sup>to</sup> <sup>the</sup> initial gyrocenter: ∆ _x_ 2 = _x_ <sup>_c_</sup> _s_ <sup>_c_</sup> _s_ <sup>_−_</sup> <sup>_x_</sup> 0 <sup>_c_</sup> 0 <sup>_c_</sup> <sup>.</sup> <sup>This</sup> <sup>shift</sup> <sup>is</sup> <sup>found</sup> <sup>to</sup> <sup>be</sup> <sup>induced</sup> <sup>by</sup> <sup>the</sup> <sup>magnetic</sup> field of the beam. In addition the longitudinal electric field of the beam induces an E _×⃗_ B drift in horizontal direction which adds up as an additional displacement of the gyrocenter. However for relativistic beams the exposure to the longitudinal field is short and hence this drift tends to be negligible. The net effect of this type of displacement is around a few microns even for high beam currents. 3. ∆ _x_ 3 - Displacement of the final position with respect to the stable gyrocenter due to the nature of the gyromotion: ∆ _x_ 3 = _xf_ _−_ _x_ <sup>_c_</sup> _s_ <sup>.</sup> <sup>The</sup> <sup>electrons</sup> <sup>perform</sup> <sup>a</sup> <sup>gyromotion</sup> in the plane above the detector and in case this motion spans over multiple elements of the detecting system, the electrons might be detected on any of them. If the moment of detection is not correlated to the phase of the gyromotion then the resulting displacement is random. Since this type of displacement is proportional to the resulting gyroradii it depends on the magnitude of the preceding space-charge interaction and can be around some hundreds of microns up to a few millimeter. Fig. 4 shows an example trajectory which exhibits the different electromagnetic drifts, the separation in space-charge and detector region, as well as the different kind of displacements ∆ _x{_ 1 _,_ 2 _,_ 3 _}_ mentioned above. The increase in gyroradius is also clearly visible. The maximum polarization drift distance, corresponding to the parameters in Table I, is estimated to be 852 µm as further discussed in appendix A. These effects only consider displacements in horizontal direction, along the measured profile. In fact the electrons experience an additional significant displacement in longitudinal direction, along the beam, due to the _⃗_ E _×⃗_ B drift induced by the transverse electric field of the beam _Ex_ . However such drifts can be neglected in case the physical situation is similar along the beam axis (i.e. uniform guiding fields, similar gas pressure). In typical setups the size of the readout system is much smaller than the corresponding area of the surrounding IPM field box and it is centered therein. Hence these conditions are satisfied. Fig. 5 shows the velocity increase of electrons which is induced by the space-charge interaction and consequentially leads to a deformation of measured profiles as shown by Fig. 6. The mean of initial velocities is 9 _._ 94 _×_ 10 <sup>5</sup> m s <sup>_−_</sup> <sup>1</sup> which corresponds to a gyroradius of 28 _._ 3 µm. The total displacement of an electron is compound of the three above-mentioned stages: ∆ _x_ = ∆ _x_ 1 + ∆ _x_ 2 + ∆ _x_ 3. Regarding the transverse _⃗_ E _×⃗_ B drift due to non-zero longitudinal field component _Ez_ one can consider the fact that the transverse field is scaled with relativistic factor of _γ_ _≈_ 7000. Since the _⃗_ E _×⃗_ B drift velocity is proportional to the electric field strength and the longitudinal drifts typically are of the order of a few millimeter the expected _⃗_ E _×⃗_ B drift distance transverse to the beam axis is expected to be at least _γ_ <sup>_−_</sup> <sup>1</sup> times smaller, resulting in transverse _⃗_ E _×⃗_ B drift distances in the sub micrometer regime. Figure 4: Example trajectory obtained for _r_ 0 = (1 _._ 5 _σx,_ 0 _,_ 0) _,_ _v_ 0 = 10 <sup>6</sup> _·_ ( _−_ 1 _,_ 0 _,_ 1)m s <sup>_−_</sup> <sup>1</sup> and generated 2 _σz_ before the bunch center (beam parameters corresponding Table I). The term ”undisturbed trajectory” refers to the case if there were no space-charge interaction, i.e. only pure gyromotion. Because the initial and final gyroradius is about 100 µm the corresponding part of the trajectory appears as a flat ellipse due to large scale of the z-drift. The ”shifted gyrocenter” is induced by the transverse electric field of the beam and acts as a starting point for the polarization drift; this shift is described by equation Eq. (6). ”Bunch center passing” indicates the moment when the electron and the bunch center are aligned with respect to z-position. The ”initial” and ”final gyrocenter” are separated by a distance of 0 _._ 5 µm. The labels “Movement in detector / space-charge region” refer to the period that is spent in each of the regions, not the spatial domain, as the vertical axis indicates movement along the beam axis. There is no transverse _⃗_ E _×⃗_ B drift because the simulation was configured with _Ez_ = 0. Figure 5: Velocity increase, given as the ratio of velocity at detection and velocity at ionization, plotted against the initial horizontal position of electrons. Dots denote average values while vertical bars indicate 1 standard deviation. The transverse electric field in x-direction, measured at _y_ = _z_ = 0 at the center of the bunch, is overlaid. Beam parameters corresponding to Table I. Figure 6: Simulated example profiles for beam parameters corresponding to Table I using magnetic guiding field strengths of 100 mT and 200 mT respectively. The beam standard deviation is 270 µm and the resulting standard deviations of the simulated profiles are 366 µm and 305 µm respectively. B. Description for uniform beam distributions Electron trajectories are mainly influenced by the transverse electric field of the beam and the magnetic guiding field. This interaction alters the trajectories in a complex way which cannot be predicted analytically for any realistic beam distribution without further assumptions. In order to get an analytic estimate of the interaction we assume a simplified case in which the longitudinal electric field is zero and the transverse electric field is approximated by a linearly increasing field _Ex_ ( _x_ ) = _E ·x_ where _E_ _<_ 0 (this corresponds to the electric field inside a uniformly charged cylinder bunch of positive ions). For a Gaussian bunch shape this approximation is also well applicable at the center of the bunch as can be seen from Fig. 5 (neglecting the y- and z-dependence of the field). We also consider no bunch magnetic field since it is small compared to the magnetic guiding field _B_ which is acting in y-direction. The electric guiding field _Eg_ is acting in y-direction as well and hence has no influence on the motion in the xz-plane. In this simplified scenario the particle motion in the xz-plane is obtained as: _x_ 0 _−_ <sup>_<u>qB</u>_</sup> <sup><u>¯</u></sup> (1) Ω <sup>2</sup> <sup>_vz_</sup> <sup>0</sup> Ω <sup>_<u>x</u>_</sup> <sup><u>0</u></sup> <sup>sin(Ω</sup> <sup>_t_</sup> <sup>) +</sup> Ω <sup>_<u>q</u>_</sup> <sup><u>¯</u></sup> _x_ ( _t_ ) = <sup>_<u>v</u>_</sup> Ω <sup>_<u>x</u>_</sup> <sup><u>0</u></sup> Ω <sup>_<u>q</u>_</sup> <sup><u>¯2</u></sup> <sup>(</sup> <sup>_Bvz_</sup> <sup>0</sup> <sup>_−_</sup> <sup>_Ex_</sup> <sup>0) cos(Ω</sup> <sup>_t_</sup> <sup>) +</sup> �1 + <sup>_<u>qE</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> <sup>_<u>qB</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> <sup>_vx_</sup> <sup>0 cos(Ω</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_<u>q</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> <sup>_<u>B</u>_</sup> <sup>3</sup> - _x_ 0 _−_ <sup>_<u>qE</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> <sup>_vz_</sup> <sup>0</sup> _t_ (2) _z_ ( _t_ ) = _−_ <sup>_<u>qB</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> Ω <sup>2</sup> <sup>_<u>B</u>_</sup> <sup>3</sup> <sup>(</sup> <sup>_Bvz_</sup> <sup>0</sup> <sup>_−_</sup> <sup>_Ex_</sup> <sup>0) sin(Ω</sup> <sup>_t_</sup> <sup>) +</sup> �� _BE_ <sup>+</sup> Ω <sup>_<u>qE</u>_</sup> <sup><u>¯2</u></sup> _B_ <sup>2</sup> + _z_ 0 + <sup>_<u>qB</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> <sup>_vx_</sup> <sup>0</sup> _x_ ˙ ( _t_ ) = _vx_ 0 cos(Ω _t_ ) _−_ <sup>_<u>q</u>_</sup> <sup><u>¯</u></sup> (3) Ω <sup>(</sup> <sup>_Bvz_</sup> <sup>0</sup> <sup>_−_</sup> <sup>_Ex_</sup> <sup>0) sin(Ω</sup> <sup>_t_</sup> <sup>)</sup> <sup>_<u>qB</u>_</sup> <sup><u>¯</u></sup> Ω <sup>_vx_</sup> <sup>0 sin(Ω</sup> <sup>_t_</sup> <sup>) +</sup> <sup>_<u>q</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> <sup>_<u>B</u>_</sup> <sup>2</sup> _x_ 0 _−_ <sup>_<u>qE</u>_</sup> <sup><u>¯</u></sup> (4) Ω <sup>2</sup> <sup>_vz_</sup> <sup>0</sup> _z_ ˙( _t_ ) = <sup>_<u>qB</u>_</sup> <sup><u>¯</u></sup> Ω <sup>_<u>q</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> <sup>_<u>B</u>_</sup> <sup>2</sup> <sup>(</sup> <sup>_Bvz_</sup> <sup>0</sup> <sup>_−_</sup> <sup>_Ex_</sup> <sup>0) cos(Ω</sup> <sup>_t_</sup> <sup>) +</sup> - _BE_ <sup>+</sup> Ω <sup>_<u>qE</u>_</sup> <sup><u>¯2</u></sup> _B_ <sup>2</sup> where we have used the following abbreviations ( _q_ is the elementary charge and _m_ is the electron mass): _q_ ¯ _≡_ <sup>_<u>q</u>_</sup> <sup>_<u>q</u>_</sup> (5a) _m_ Ω <sup>2</sup> (5b) Ω <sup>2</sup> _≡_ _q_ ¯ <sup>2</sup> _B_ <sup>2</sup> _−_ _qE_ ¯ _>_ 0 _,_ Ω= _√_ Eq. (1) shows that the particle performs an oscillating movement in x-direction while Eq. (2) shows a similar oscillation as well as an _⃗_ E _×⃗_ B drift in z-direction. The absolute value of the gyro-velocity is given by _|_ _vxz_ ( _t_ ) _|_ = - _x_ ˙ ( _t_ ) <sup>2</sup> + _z_ ˙( _t_ ) <sup>2</sup> . From Eq. (3) and Eq. (4) we can see that this velocity expression contains terms sin <sup>2</sup> (Ω _t_ ), cos <sup>2</sup> (Ω _t_ ) and sin(Ω _t_ ) _·_ cos(Ω _t_ ) which are _π_ -periodic as well as terms sin(Ω _t_ ) and cos(Ω _t_ ) which are 2 _π_ -periodic. Fig. 7 shows the gyro-velocity evolution for three example particles subject to the realistic electric field of a Gaussian bunch. The expected twofold periodicity is clearly visible while an additional damping effect occurs due to the longitudinal field dependence when the beam recedes from the particles’ positions. The minima and maxima of the velocities become apparent when considering the two-dimensional trajectories ( _x_ ( _t_ ) _, z_ ( _t_ )). At one turn-around point the velocities from _⃗_ E _×⃗_ B drift and the oscillating movement are aligned and add up, resulting in a large velocity while at the other turn-around point they are opposite resulting in a smaller velocity (or even a backward drift). Such behavior can as well be observed from simulations as described below. Fig. 7 shows the velocities of various particles for different starting points _x_ 0 subject to the realistic field of a Gaussian charge distribution. One can observe a variation of the amplitude modulation as well as different periods of the oscillation depending on the starting point. This is due to the non-linear shape of the Gaussian-bunch electric field for positions farther away from the bunch center (compare the electric field plot in Fig. 5). Analyzing Eq. (1) to Eq. (4) we can infer various parameters of the resulting electron motion. _1._ _Shift_ _of_ _gyration_ _center_ From Eq. (1) one can read the center of oscillation _x_ 0 _−_ <sup>_<u>qB</u>_</sup> <sup><u>¯</u></sup> (6) Ω <sup>2</sup> <sup>_vz_</sup> <sup>0</sup> _xc_ = �1 + <sup>_<u>qE</u>_</sup> <sup><u>¯</u></sup> Ω <sup>2</sup> which contains an additional term corresponding to the transverse bunch electric field. This shift however is compensated due to the time-dependence of the electric field and the corre sponding polarization drift as shown in Appendix B. The same effect can be observed from simulations as well. This results in the initial and final gyrocenter to be aligned with respect to each other as shown in Fig. 4. Note that a displacement of the gyrocenter with respect to the initial position _x_ 0 however occurs due to a non-zero initial velocity component along the beam _vz_ 0. This shift is not compensated for by any other effects. Figure 7: Left: Gyro-velocity evolution for different starting positions _r_ 0 = ( _x_ 0 _,_ 0 _,_ 0). Initial velocity is _v_ 0 = 10 <sup>6</sup> <sup>_√_</sup> 2 _~~−~~_ 1 _·_ (1 _,_ 1 _, −_ 1)m s _−_ 1 and electrons are generated _σz/_ 2 before the bunch center (beam parameters corresponding Table I). Right: The corresponding x-position evolution which turns into pure gyromotion for _t_ ⪆ 1 ns. _2._ _Displacement_ _due_ _to_ _gyromotion_ In the detector region, without the influence of the beam electric field, the electrons perform a pure gyromotion with gyroradius proportional to the planar velocity. Because of the velocity oscillations in the space-charge region, described by Eq. (3) and Eq. (4) as well as Fig. 7, the electrons are likely to end up with an increased velocity in the detector region and consequentially with an increased gyroradius. Fig. 8 shows the distribution of gyro-velocity change. Around 90% of electrons end up with an increased gyro-velocity due to space-charge interaction and hence end up with increased gyroradii. The resulting gyromotion implies possible displacements to positions different from the center of the gyromotion. This effect is discussed in detail in [13, 14]. _3._ _Time-of-flight_ In order to obtain an estimate for the final gyroradius of electrons we need to derive an estimate for their time-of-flight until they reach away from the influence of disturbing Figure 8: Distribution of gyro-velocity ratios, final over initial velocity, due to space-charge interaction (parameters corresponding to Table I). beam fields. Since the above analytic considerations are valid only inside the bunch, we set the space-charge region as the region inside the bunch and the detector region as the region outside the bunch. This assumption neglects modifications of the particles’ velocities outside the bunch while in reality they may remain affected by the bunch electric field at these positions as the space-charge region may extend farther out. A more complex description would be to treat the decreasing part of the field outside the bunch by another linear field model, similarly to the one inside, and to reuse the above derived equations for that case by applying appropriate coordinate transformations. However since this approach is significantly more complex we stick with the former approach as it turns out to be sufficient as indicated by the following simulation results. For estimating the time-of-flights one cannot simply rely on the time the bunch needs to recede from the electron but one needs to consider the electron leaving the bunch volume (i.e. the space-charge region) in the transverse direction as well. In order to obtain a more accurate estimate for this time-of-flight in the vertical direction we need to take the bunch electric field and the electric guiding field into account. We do so by simplifying the longitudinal time dependence by an exponential dependency instead of the Gaussian dependency, in order to relax the explicit time dependence. The spatial dependence is linear as before. The corresponding equation of motion is: _y_ ¨( _t_ ) = _qE_ ¯ _g −_ _qEy_ ¯ exp where _Eg_ is the electric guiding field strength. - _−_ <sup>_<u>|t|</u>_</sup> _σz_ (7) For a detailed derivation of the resulting motion ( _y_ ( _t_ ) _,_ _y_ ˙( _t_ )) consider Appendix C. In order to estimate the time-of-flights we need to find the roots of the functions _f_ 1( _t_ ) = ~~�~~ _x_ ( _t_ ) <sup>2</sup> + _y_ ( _t_ ) <sup>2</sup> _−_ _R_ where _R_ is the radius of the cylinder bunch and _x_ ( _t_ ) is given by Eq. (1) and _f_ 2( _t_ ) = _z_ ( _t_ ) _−_ ( _t −_ 4 _σz_ ) _βc_ where _β_ = _v/c_, with _c_ the speed of light; whatever value of _t_ is smaller determines the moment when the electron leaves the bunch. The final parameters are then obtained by plugging this value back into the analytic velocity equations Eq. (3) and Eq. (4). For more details on the computation consider Appendix D. Fig. 9 shows the gyroradius distributions computed the analytic estimation for different magnetic field strengths, compared with the results obtained from complete simulations in cluding all effects by using realistic Gaussian bunch fields. The beam and device parameters correspond to Table I. The simulations were performed using the Virtual-IPM simulation tool [24]. The estimated distributions show agreement in the shape as well as the mean and variance. The additional tails of the calculated distributions emerge as a result of the electric field strength being independent of time in Eq. (1) through Eq. (4). Hence for elec trons which are ionized before the bunch center the electric field is underestimated and it is overestimated for electrons which are ionized after the bunch center, leading to a corre sponding under- and overestimation of the resulting gyroradii which manifests itself in form of the tails of the distribution. The overall agreement of analytic prediction and simulation suggests the applicability of the derived equations. These equations, even though obtained for simplified bunch shape, can be used to further study the phenomenon of profile distortion as shown in the following section. C. Magnetic field tuning and scaling for realistic beams Since IPMs find application in different circumstances including a variety of beam pa rameters it is useful to establish a relation between the beam parameters and the magnetic field required to suppress profile distortion. Such a relation allows for simple checks when designing new devices. Different criteria for a sufficient field strength are possible such as absolute thresholds ensuring that most of the electrons’ gyroradii are below an acceptable threshold (e.g. requiring a certain fraction to be below some percentage of the bunch width or to be smaller than the detector resolution) or relative thresholds that ensure that the increase of measured profile standard deviation remains below some percent threshold. A previous study considered the gyroradius increase as a criterion [12] but since the relation Figure 9: Comparison of gyroradius distributions calculated from analytic equations with distributions obtained from complete simulations with realistic Gaussian bunch fields. Simulation parameters corresponding to Table I and the magnetic guiding field is varied. between a particular gyroradius distribution and the resulting measured beam profile is not obvious we will focus on the standard deviation increase as a more direct measure for the further investigations. Note that due to the nature of profile distortion, which results in enlarged tails but also a heavier peak, already small values of standard deviation increase correspond to strongly non-Gaussian profile shapes as depicted in Fig. 6. We establish a fit of the three most significant beam parameters relevant for profile distortion, the transverse and longitudinal bunch size and the bunch charge: _B_ min, 1% = <sup>_<u>N a</u>_</sup> _z_ <sup>_bσ_</sup> _t_ <sup>_c_</sup> (8) _σz_ <sup>_b_</sup> _t_ _· d_ + <sup>_<u>f</u>_</sup> _σt_ <sup>_e_</sup> where _a, b, c, d, e, f_ are fit parameters, _σt_ is the standard deviation of the (symmetric) transverse beam distribution to be measured in units units of millimeter, _σz_ is the standard deviation of the bunch line density in units of nanosecond and _N_ is the number of charges per bunch in units of 1 _×_ 10 <sup>12</sup> . _B_ min, 1% is the minimum magnetic field required to obtain _σt_ <sup>measured</sup> with at least 1% accuracy with respect to _σt_ <sup>beam</sup> . The first term in Eq. (8) corresponds to the space-charge interaction while the second term is attributed to the effect of the initial velocity distribution which, as a constant effect, has a relatively increasing effect on smaller beam profiles; hence the dependence on _σt_ . The accuracy threshold was chosen to be a rather challenging 1% because this would be useful in investigation of emittance blow-up in modern colliders [25]. In a subsequent fit this threshold is converted to a parameter. For verifying the relationship and to infer the parameters we use the analytic consider ations from the previous section as well as simulations with three different bunch shapes: Gaussian, Uniform and Parabolic Ellipsoid. For simplicity the bunch shapes are considered to be rotational symmetric around the beam axis ( _σt_ _≡_ _σx_ = _σy_ ). The charge density distributions of these shapes are given by: _−_ <sup>_<u>z</u>_</sup> <sup>2</sup> 2 _σz_ <sup>2</sup> Gaussian _∝_ exp _−_ <sup>_<u>x</u>_</sup> <sup>2 +</sup> <sup>_<u>y</u>_</sup> <sup>2</sup> 2 _σt_ <sup>2</sup> - _−_ <sup>_<u>z</u>_</sup> <sup>2</sup> 2 _σz_ <sup>2</sup> - _,_ if _x_ <sup>2</sup> + _y_ <sup>2</sup> _≤_ _σt_ <sup>2</sup> <sup>_,_</sup> <sup>with</sup> <sup>radius</sup> <sup>_σt_</sup> Uniform Parabolic Ellipsoid   _∝_ exp  _≡_ 0 _,_ otherwise    _σt_ <sup>2</sup> <sup>_<u>y</u>_</sup> <sup>2</sup> _−_ <sup>_<u>z</u>_</sup> <sup>2</sup> _t_ <sup>2</sup> _σz_ <sup>2</sup> <sup>_<u>z</u>_</sup> <sup>2</sup> _σz_ <sup>2</sup> <sup>_≤_</sup> <sup>1</sup> <sup>_,_</sup> <sup>with</sup> <sup>semi-axes</sup> <sup>_σz, σt_</sup> _∝_ 1 _−_ <sup>_<u>x</u>_</sup> <sup>2+</sup> <sup>_<u>y</u>_</sup> <sup>2</sup> _σ_ <sup>2</sup> <sup>_<u>z</u>_</sup> <sup>2</sup> _,_ if <sup>_<u>x</u>_</sup> <sup>2+</sup> <sup>_<u>y</u>_</sup> <sup>2</sup> _σz_ <sup>2</sup> _σt_ <sup>2</sup> _σt_ <sup>2</sup> <sup>_<u>y</u>_</sup> <sup>2</sup> + <sup>_<u>z</u>_</sup> <sup>2</sup> _t_ <sup>2</sup> _σz_ <sup>2</sup>  _≡_ 0 _,_ otherwise (9) We only consider relativistic beams since for low energy beams the ionization cross sec tions take on substantially different shapes [26], the generated electrons are exposed to the beam electric field for a longer period due to the reduced beam velocity and thus also effects from the longitudinal electric field start to play a role. We used relativistic _β_ _≥_ 0 _._ 99 when generating the fit data. The relationship Eq. (8) is fitted with simulation data obtained with the Virtual-IPM simulation tool, for the parameters given in Table II. These parameters correspond to the Gaussian bunch shape. For the other bunch shapes the parameters are scaled where ap propriate in order to minimize the squared difference between initial beam distributions; for more details consider Appendix E. The resulting scaling factors are given in Table II as well. Table III shows the fit parameters obtained for the various bunch shapes as well as the quality of fit. They show agreement among each other and also with the results obtained for the analytic derivations. Applying the formula to the example case in Table I we obtain a minimum required field of 536 mT for suppressing the increase in standard deviation below 1 %. A previous study, supported by a different simulation tool, estimated the minimum magnetic field required for distortion-free measurements to be 1 T [13]. Using these two magnetic field strengths in our simulations we obtain an increase in standard deviation of 0 _._ 6 % and 0 _._ 08 % respectively which is in conformity with Eq. (8) and the results of the pre vious study. Applying the same formula to a set of beam parameters corresponding to the planned IPM on SIS-100 proton beam (29 _._ 9 GeV energy, 2 _×_ 10 <sup>13</sup> charges, _σt_ = 2 _._ 17 mm, _σz_ = 15 ns), the minimum required field is estimated to 76 mT while the current design foresees a field of 84 mT [27]. Table II: Beam parameter ranges for simulation of the different bunch shapes. Scaling factors for minimizing the squared difference between the initial one-dimensional profiles of the different shapes are indicated as well. Each parameter follows a logarithmic distribution over 20 points resulting in a total of 8000 data points. Bunch -width _σt_ -length _σz_ -charge _N_ Gaussian 0 _._ 2 mm to 20 mm 0 _._ 3 ns to 300 ns 1 _×_ 10 <sup>9</sup> to 1 _×_ 10 <sup>13</sup> Uniform _×_ 1 _._ 76 _×_ 1 _×_ 1 Parabolic Ellipsoid _×_ 2 _._ 44 _×_ 2 _._ 44 _×_ 1 A previous derivation of minimum required magnetic field strength that was done for related circumstances, however considering the gyroradius increase as an intermediate quan tity instead of the final profile standard deviation, shows a similar dependence on the beam parameters [12]. In order to assess the effect of a chosen threshold for standard deviation increase _τ_ = _σmσt_ <sup>_−_</sup> <sup>1</sup> _−_ 1, with measured (simulated) standard devation _σm_, on the minimum required magnetic field we include this parameter as well in a subsequent fit of the form: _<u>N</u>_ <sup>_a_</sup> _B_ min = _t_ _z_ <sup>_bσ_</sup> _t_ <sup>_c_</sup> (10) _t_ <sup>_eτ h_</sup> _σz_ <sup>_b_</sup> <sup>_a_</sup> _<u>f</u>_ _t_ <sup>_cτ g_</sup> <sup>_· d_</sup> <sup>+</sup> _σt_ <sup>_e_</sup> The results are similar to the ones obtained before and are shown in Table IV. Table III: Fit parameters for Eq. (8) for different bunch shapes as well as for the analytic considerations of section II B. The quality of fit in form of mean squared error (MSE) is given as well. a b c d e f MSE [ T <sup>2</sup> ] Analytic 0.555 0.555 0.998 0.163 1.007 0.032 3 _._ 65 _×_ 10 <sup>_−_</sup> <sup>4</sup> Uniform 0.609 0.605 1.013 0.110 0.986 0.049 8 _._ 57 _×_ 10 <sup>_−_</sup> <sup>4</sup> Gaussian 0.613 0.590 1.082 0.105 0.967 0.038 6 _._ 35 _×_ 10 <sup>_−_</sup> <sup>4</sup> Parabolic 0.623 0.595 1.027 0.103 0.974 0.046 8 _._ 76 _×_ 10 <sup>_−_</sup> <sup>4</sup> Table IV: Fit parameters for equation Eq. (10) for the Gaussian bunch shape. The quality of fit in form of mean squared error (MSE) is given as well. a b c d e f g h MSE [ T <sup>2</sup> ] 0.592 0.559 1.052 0.020 0.938 0.005 0.384 0.479 3 _._ 79 _×_ 10 <sup>_−_</sup> <sup>4</sup> Another way to include the threshold in the formula is to model the remaining fit pa rameters as dependent on the threshold: _<u>N</u>_ <sup>_a_</sup> <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> _B_ min = _σz_ <sup>_b_</sup> <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> _t_ (11) _z_ <sup>_b_</sup> <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> _σt_ <sup>_c_</sup> <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> _· d_ ( _τ_ ) + <sup>_<u>f</u>_</sup> <sup><u>(</u></sup> <sup>_<u>τ</u>_</sup> <sup><u>)</u></sup> _σt_ <sup>_e_</sup> <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> _t_ This formulation captures potential variations in the beam parameter dependence for varying thresholds _τ_ . The results however, as shown in Table V, confirm that the effect of varying threshold is mainly a scaling factor. These results are in agreement with the _τ_ <sup>_f_</sup> scaling shown from Eq. (10) and Table IV. III. PROFILE CORRECTION The first remedy against the space-charge profile distortion is to increase the applied magnetic guiding field, such that the gyroradii are bounded by user defined limits as shown by Eq. (8), Eq. (10) and Eq. (11) with corresponding parameters given by, respectively, Table III, Table IV and Table V. These relations are fit for the broad parameter range in Table II. Most magnetic IPM designs fall into this category and further analysis is not required. However for some extreme scenarios very large magnetic fields are required [13], Table V: Fit parameters for equation Eq. (11) for the Gaussian bunch shape. The quality of fit in form of mean squared error (MSE) is given as well. For _τ_ = 1 % the results slightly deviate from the ones in Table III because the underlying simulation data was regenerated. Threshold [%] a b c d e f MSE [ T <sup>2</sup> ] 1 0.626 0.584 1.065 0.103 0.974 0.044 7 _._ 85 _×_ 10 <sup>_−_</sup> <sup>4</sup> 2 0.605 0.571 1.064 0.093 0.942 0.031 3 _._ 46 _×_ 10 <sup>_−_</sup> <sup>4</sup> 3 0.596 0.553 1.073 0.082 0.927 0.025 3 _._ 64 _×_ 10 <sup>_−_</sup> <sup>4</sup> 4 0.572 0.536 1.061 0.077 0.903 0.021 3 _._ 06 _×_ 10 <sup>_−_</sup> <sup>4</sup> 5 0.571 0.538 1.039 0.071 0.927 0.019 2 _._ 13 _×_ 10 <sup>_−_</sup> <sup>4</sup> 6 0.574 0.538 1.047 0.064 0.898 0.018 2 _._ 13 _×_ 10 <sup>_−_</sup> <sup>4</sup> 7 0.571 0.554 1.051 0.059 0.878 0.017 1 _._ 76 _×_ 10 <sup>_−_</sup> <sup>4</sup> 8 0.565 0.545 1.029 0.056 0.884 0.016 1 _._ 47 _×_ 10 <sup>_−_</sup> <sup>4</sup> 9 0.551 0.544 0.990 0.055 0.907 0.014 1 _._ 03 _×_ 10 <sup>_−_</sup> <sup>4</sup> 10 0.547 0.553 1.000 0.051 0.891 0.014 1 _._ 05 _×_ 10 <sup>_−_</sup> <sup>4</sup> which are both expensive to obtain and occupy significant space in already cramped syn chrotrons. As technology advances more applications for high energy and high brightness beams are to be expected, putting current magnetic IPM designs to test. For these scenar ios, correction mechanisms to obtain a measure of actual profile from the distorted profile, have been studied. Foremost of them was the study of a hardware electron ”sieve”, which aims to filter electrons based on their gyroradius before they reach the acquisition system, and a numerical reconstruction on the resulting ”sieved” profiles can be performed [14]. Though the study with simulations gave promising results, the sieve was found to be rather complex and thick structure difficult to integrate in machine vacuum. Another approach was parametric curve fitting of the distorted profile with analytic functions and correlation of the beam width with those parameters [13]. The fit result however suffered from too few available data points and hence a general relationship between the fit parameters and the beam profile could not be established. Lately, approaches to record the inverse mapping between distorted profile to the original profile or the second moment of the original profile as a function of space charge parameters has been introduced either in form of look-up tables (LUT) [28] and supervised learning [20]. All the aforementioned correction methods rely on well understood and benchmarked IPM simulations. In this section, the problem of profile correction is generally introduced. Fol lowing that, several sub-approaches in the supervised learning scheme are mentioned and an extension to a full profile reconstruction from distorted profiles with arbitrary initial profile shapes is shown. A. Problem description In case of negligible space-charge interaction the distortion can be described via convolu tion of beam profile _P_ beam with a _point-spread function (PSF)_ to obtain the measured profile _P_ measured [13]. This PSF depends on the initial velocities of electrons and can assessed by means of differential ionization cross sections. The PSF itself describes the electron trans port in the IPM. It corresponds to the probability that an electron is detected on a certain position displaced from its ionization position and can be obtained from considering the time that an electron spends above the various bins of the detector [14]. This PSF is inde pendent of the position along the initial profile and hence the beam profile can be obtained by deconvolution. If the PSF depends on the position along the profile - as in case of space-charge influence on electron movement - a convolution cannot be used to describe the profile deformation anymore. As a more general transformation a matrix multiplication can be used instead: _P_ measured _,i_ = _Mij_ _· P_ beam _,j_ (12) where _Mij_ is the probability that an electron which was generated at position _j_ is collected at position _i_ . Comparing with convolution for the space-charge free case, the matrix _M_ contains the PSF as columns, shifted across the rows with the PSF center at the diagonal ( _Mij_ = PSF[ _i −_ _j_ ]). The transformation matrix depends on the beam parameters _Mij_ = _Mij_ ( _Np, σx, σz_ ) and for a given set of parameters it can be obtained by simulations. Performing simulations over a grid of space-charge distortion parameters one can establish a look-up table of matrices _M_ and their inverses _M_ <sup>_−_</sup> <sup>1</sup> . A fast iterative procedure to correct measured profiles using the simulated _M_ <sup>_−_</sup> <sup>1</sup> matrices is discussed in [28]. A newer approach of supervised machine learn ## Data Preparation Beam profile _Np_ _σz_ Profile Correction Forward process _f_ ( _M_ ) ## Measured profile Approximation of ## Predicted profile inverse process _f_ <sup>_′_</sup> ## _Np_ LUT ( M − 1 ) σz Figure 10: The physical process is modelled by a simulation tool and the inverse process is approximated by the chosen machine learning algorithm or stored parameter dependent inverse mapping matrix. ing is to deduce a set of rules for mapping measured profiles to their original counterparts. The idea is to infer a corresponding set of rules by providing distorted profiles alongside other relevant beam parameters and to map these to the original distribution of the beam. Fig. 10 shows a schema of profile correction with the aid of simulation data. B. Data generation by IPM simulations A recent joint effort between laboratories led to the development of a generic simula tion tool called ”Virtual-IPM” [24]. The Virtual-IPM tool has been used for simulating the movement of electrons inside the IPM, in presence of transient beam fields. Table VI shows the parameter ranges that are used for the simulations in order to span the relevant parameter space. The single bunches are modeled by three-dimensional Gaussian charge distributions. The electric field of bunches is computed via an analytic formula for a two dimensional Gaussian charge distribution in the transverse plane [29] while the longitudinal dependency is taken into account by rescaling the field with the beam’s line density. The longitudinal field component is neglected. This approximation is justified because the beam is highly relativistic and the longitudinal dimension of bunches is significantly larger than their transverse dimensions and therefore the electric field is mainly acting in the transverse plane. The advantage of the analytic formula, as compared to a numerical Poisson solver, is that it is much faster in computing the electric field and it does not suffer from discretiza tion effects. Both the electric and the magnetic field of the beam are taken into account. The external electric and magnetic guiding fields are modeled to be uniform within the field cage. The initial velocities of electrons are generated according to a double differential cross section for a Hydrogen target [22]. The passage of only a single bunch is simulated because the extraction times for electrons are only a few nanoseconds for the given electric guiding field while the bunch spacing is 25 ns. Table VI: Parameters for the simulation. The bunch population, length, width and height are varied, resulting in a total of 21 021 data samples. The parameter ranges roughly correspond to the LHC flat top. Parameter Values Beam particle type Protons Energy/u 6 _._ 5 TeV Bunch population 1 _._ 1 _×_ 10 <sup>11</sup> ppb to 2 _._ 1 _×_ 10 <sup>11</sup> ppb Bunch length (4 _σz_ ) 0 _._ 9 ns to 1 _._ 2 ns Bunch width (1 _σx_ ) 270 µm to 370 µm Bunch height (1 _σy_ ) 360 µm to 600 µm Electrode distance 85 mm Applied voltage 4 kV Magnetic field 0 _._ 2 T Number of sim. electrons 1 000 000 Time step size 0 _._ 3125 ps The output of the simulations is summarized by histograms with 9 _._ 9 mm range and 55 µm bin size, representing the electrons’ positions at the moment of ionization, in the following referred to as _initial_, and at the moment of detection, in the following referred to as _final_ . 55 µm resolution corresponds to a hybrid-pixel detector type which has been successfully operated in the PS IPMs [18]. C. Reconstruction of beam profile standard deviation Eq. (10) has the interesting property that for a given measured standard deviation of _σm_ and a given magnetic field _B_ the formula encodes the corresponding beam profile standard deviation _σt_ which gives rise to the distortion via the threshold parameter _τ_ = _σmσt_ <sup>_−_</sup> <sup>1</sup> _−_ 1. By rearranging Eq. (10) and inserting the definition of _τ_ the beam profile standard deviation emerges as the root of the function _<u>d · N</u>_ <sup>_a_</sup> _f_ ( _σt_ ) = <u>�</u> _<u>f</u>_ <u>�</u> _<u>g</u>_ + <u>�</u> _σt_ <sup>_e_</sup> <u>�</u> _h_ <sup>_−_</sup> <sup>_B_</sup> <sup>= 0</sup> (13) _z_ <sup>_bσ_</sup> _t_ <sup>_c_</sup> _σz_ <sup>_b_</sup> _t_ _t_ <u>�</u> _σt_ <sup>_−_</sup> <sup>1</sup> _t_ <sup>_−_</sup> <sup>1</sup> <sup>_σm_</sup> <sup>_−_</sup> <sup>1</sup> <u>�</u> _σt_ <sup>_−_</sup> <sup>1</sup> _t_ <sup>_−_</sup> <sup>1</sup> <sup>_σm_</sup> <sup>_−_</sup> <sup>1</sup> on the interval (0 _, σm_ ), which can be computed by means of numerical methods. We test this method on the simulation data prepared according to Table VI by using bisection method [30] with 0 _._ 1 µm tolerance. The resulting residuals have an overall mean and standard deviation of, respectively, 0 _._ 357 µm and 3 _._ 21 µm. The residuals plot Fig. 11 shows that the quality varies with beam profile standard deviation. Nevertheless most results are within 2% accuracy. Figure 11: Residuals for the beam profile standard deviation reconstruction based on Eq. (13) and tested with simulations corresponding to Table VI. Previous attempts of reconstructing the initial beam profile standard deviation value from measured profiles using Machine Learning methods have shown a better performance while being fitted on a much smaller parameter range [20]. Eq. (10) on the other hand has been fitted on a range which spans multiple orders of magnitude. D. Reconstruction of complete profiles with machine learning Relevant for the presented problem are methods to perform supervised regression for predicting continuous variables [31]. In general a supervised machine learning (ML) model represents an algorithm _f_, a mapping from input _x_ to output _yp_, called _decision_ _function_, that is specified by a set of parameters _θ_ _≡{θi}_ . The inputs and outputs are exactly opposite to the data preparation stage as shown in Figure 8. While the structure of such an algorithm (e.g. the number of parameters _|θ|_ ) depends on its hyper-parameters and is fixed, the goal is to tune _θi_ such that the corresponding function _f_ ( _x_ _|_ _θ_ ) describes the output best. The quality of this description is typically assessed by a so called _loss_ _function_ L( _x, y_ _|_ _θ_ ) _→_ R <sup>+</sup> which measures the deviation of the predictions _yp_ from the target output values _y_ . Minimizing this loss function is used as a criterion for optimization of the model parameters _θ_ . In order to find a suitable ML algorithm for a given problem their performances are compared. For doing so the data set is split in three subsets corresponding to training, validation and testing. The training set is used to fit the particular ML algorithms in order to determine the optimal parameters _θ_ . The validation set is used for assessing the performance of an algorithm once it is fitted. Validating on a distinct data set prevents effects of over-fitting the algorithm to that particular training set and hence ensures generalization of the algorithm. The test similarly aims to prevent a tuning bias towards the validation set, resulting from the multiple iterations corresponding to hyperparameter tuning. The test set is used to assess the final performance that is to be expected once a ML algorithm with a specific configuration has been chosen. _1._ _Full_ _profile_ _reconstruction_ Previous works have studied the usage of machine learning models for establishing a relationship between measured profile and original beam profile standard deviation [19, 20]. A very recent approach investigated reconstruction of the complete profile shape from measured profiles [21]. This approach used an additional global data transformation that is derived from the training data in order to converge during the fitting procedure. Here we present a novel approach that works only with per-profile normalization, providing a more consistent way of data preparation. _a._ _Model_ _architecture_ In order to establish a mapping between measured profiles to gether with bunch length and bunch intensity data to the original beam profiles we recall Eq. (12). This equations states that the process of profile distortion can be described by a matrix multiplication _M_ of the beam profile _P_ beam. In general this matrix is dependent on the beam parameters and hence the beam profile itself: _M_ _→_ _M_ ( _σz, Np, P_ beam). We make the assumption that the matrix is invertible and that the inverse matrix _M_ <sup>_−_</sup> <sup>1</sup> similarly de pends on the measured profile: _M_ <sup>_−_</sup> <sup>1</sup> _→_ _M_ <sup>_−_</sup> <sup>1</sup> ( _σz, Np, P_ measured). Because the distortion arises from a symmetric process, the gyration of electrons, and the shift of final with respect to initial gyration center is negligible, as illustrated by Fig. 4 and discussed in Appendix B and Ref. [14], the columns of _M_ are linearly independent and hence the invertibility criterion is fulfilled. The second assumption of _M_ <sup>_−_</sup> <sup>1</sup> being fully characterized by _P_ measured and _σz, Np_ is less obvious but it is vital for the following algorithm. In that sense the algorithm will only be successful if that condition is fulfilled. In the following we use simulation data to verify the validity of this assumption. Given _M_ <sup>_−_</sup> <sup>1</sup> ( _σz, Np, P_ measured) the original profile can be ob tained by means of a matrix multiplication _M_ <sup>_−_</sup> <sup>1</sup> with the measured profile _P_ measured. Here we identify the task of the neural network as the generation of the inverse matrix in depen dence of the measured profile as well as the additional beam parameters bunch length and bunch intensity. Fig. 12 sketches the procedure and shows the involvement of the machine learning model. Since the final prediction is obtained via a matrix multiplication (linear transformation) the neural network can be regarded as a generator model which produces linear models. The architecture of the machine learning model and the neural network is depicted in Fig. 12. The neural network uses two dense layers, that is layers which connect all nodes from the previous layer with their own nodes. The layers use ELU and ReLU activation function respectively. ELU stands for exponential linear unit and is defined by ELU( _x_ ) = _{x_ if _x_ _≥_ 0 else _e_ <sup>_x_</sup> _−_ 1 _}_ . ReLU stands for rectified linear unit and is defined by ReLU( _x_ ) = max(0 _, x_ ). Hence, up to this stage, the used architecture resembles a feed-forward network with a single hidden layer, as depicted in Fig. 13, where the output layer represents the flat transformation matrix. ReLU activation is used on that output layer because the physical interpretation of matrix elements being fractions of transferred electrons allows only entries greater than or equal to zero. The flat output is then reshaped to a square matrix and and each of its columns is normalized to unity due to the preservation of the electron signal. We performed (a) Profile reconstruction. (b) Matrix generation. Figure 12: Left: Sketch of the machine learning model which is used to perform the full profile reconstruction. The measured (distorted) profiles are used in two places, first to generate the transformation matrix and second for the subsequent dot product leading to the reconstructed beam profile. Right: Neural network architecture used for the matrix generation. Inputs _x_ 1 _x_ 2 _xk_ _xN_ _Wkj_ _Wji_ Output layer Outputs _o_ 1 _o_ 2 _oi_ _oL_ Hidden layer(s) Σ _bh_ 1 Σ _bh_ 2 Σ _bhM_ Σ _bo_ 1 Σ _bo_ 2 Σ _boL_ Figure 13: Schematic of the architecture of a feed-forward multi-layer perceptron. hyper-parameter search over the batch size, learning rate and the number of nodes in the first dense layer. The corresponding values are shown in Table VII. For identifying optimal configurations we monitored the final validation loss as well the ratio of initial to final validation loss in order to account for different starting losses. In a first step consensus about the batch size was found. With this optimal value fixed during a second and third iteration the optimal number of nodes and learning rate was identified respectively. The number of nodes however was found to have no significant influence on performance, if large enough, as shown in Fig. 14. The final configuration was batch size 236 (evenly divides the training set of 13 452 samples), learning rate 8 _._ 882 _×_ 10 <sup>_−_</sup> <sup>3</sup> and number of nodes in the first dense layer equal to 42. We used He-uniform initializer [32] and mean squared error (MSE) as the loss function. Table VII: Hyper-parameters that have been searched over and their values. Each hyper-parameter set is randomly sampled from the given distribution. Batch size is log-sampled with base 2 and learning rate and number of nodes are log-sampled with base 10. A total of 1000 samples were scanned over. Hyper-parameter Range Batch size 1 to 2048 Learning rate 1 _×_ 10 <sup>_−_</sup> <sup>2</sup> to 1 _×_ 10 <sup>_−_</sup> <sup>6</sup> Number of nodes 10 to 2288 _b._ _Data_ _preparation_ Data preparation is an important aspect of any machine learning analysis and helps the fitting procedure to converge. Also it needs to be ensured that the way of data preparation is compatible with real application requirements. The previous study on full profile reconstruction [21] used per-profile normalization followed by a per-feature normalization which was computed over the full training set. In the current study we focus on a more intuitive approach that only uses per-profile normalization. For data preparation we use the following steps: 1. Measured profiles are cropped to the range [ _−_ 3 _._ 90 mm _,_ 3 _._ 90 mm]. 2. Measured bunch length and number of charges per bunch are divided by, respectively, 1 _._ 2 ns and 2 _._ 1 _×_ 10 <sup>11</sup> . Figure 14: Comparison of neural network performance for different widths of the first dense (hidden) layer. Other hyper-parameters were fixed to initializer = He-uniform, batch size = 236, learning rate = 8 _._ 882 _×_ 10 <sup>_−_</sup> <sup>3</sup> . 3. Measured profiles are normalized to unit integral. 4. Measured profile bins are set to zero for values smaller than 5% of the peak value. The previous approach on the other hand computed a global valid range by consid ering a 5% peak-threshold region of the largest profile in the training set which was [ _−_ 0 _._ 93 mm _,_ 0 _._ 93 mm]. All profile bins outside that region were dropped and not used for the analysis. Hence, for comparison with the previous approach, we also apply this trans formation in addition, by dropping data and predictions outside that valid range. However during training we use the full range available. _c._ _Results_ We used mean squared error (MSE) as a loss function and monitored the mean absolute error (MAE) as an additional metric. For Gaussian profiles we also com pare the deviation of standard deviation of the target beam profiles and predicted pro files. Fitting converged after 25 epochs, yielding mean and standard deviation of MSE = 5 _._ 12 _×_ 10 <sup>_−_</sup> <sup>7</sup> _±_ 2 _._ 49 _×_ 10 <sup>_−_</sup> <sup>7</sup> _,_ MAE = 6 _._ 44 _×_ 10 <sup>_−_</sup> <sup>4</sup> _±_ 1 _._ 70 _×_ 10 <sup>_−_</sup> <sup>4</sup> on the test data set. The de viation of resulting profile standard deviation was ∆ _σx/σx_ = 2 _._ 01 % _±_ 1 _._ 00 % which is about one order of magnitude larger than what has been obtained from previous attempts with machine learning models directly targeting the profile standard deviation [20]. Table VIII shows the performance on the test set compared to the previously developed algorithm, the latter of which clearly performs better. Table VIII: Performance of old and new approach on the test data set, containing 4205 samples. Loss MSE [10 <sup>_−_</sup> <sup>7</sup> ] MAE [10 <sup>_−_</sup> <sup>4</sup> ] ∆ _σ/σ_ [%] Method meas. rec. rec. rec. Old 0 _._ 32 _±_ 0 _._ 11 1 _._ 28 _±_ 0 _._ 21 0 _._ 15 _±_ 0 _._ 11 370 _±_ 253 New 5 _._ 12 _±_ 2 _._ 49 6 _._ 44 _±_ 1 _._ 70 2 _._ 01 _±_ 1 _._ 00 The neural network has been trained on Gaussian profiles only. However in real world applications the actual beam shapes might deviate from this ideal scenario. Hence an impor tant requirement is that the reconstruction algorithm still works even if applied to different beam shapes. In order to verify this generalization we tested the performance on various non-Gaussian shapes, sampled from Generalized Gaussian distributions and Q-Gaussian distributions. The charge distributions are given by the following equations. Generalized Gaussian, used for instance in linac beam profile description [28]: - _<u>|x −</u>_ _<u>µ|</u>_ _α_ - _β_ <sup>�</sup> _<u>β</u>_ 2 _α_ Γ(1 _/β_ ) <sup>exp</sup> with shape parameters _α, β, µ_ ; _β_ = 2 _, α_ = denotes the gamma function [33]. _−_ (14) _√_ 2 _σx_ corresponds to a normal distribution. Γ Q-Gaussian, used in studies of tails of hadron beams [34]: _√β_ _Cq_ <u>1</u> �1 _−_ (1 _−_ _q_ ) _βx_ <sup>2�</sup> 1 _−q_ (15) with shape parameters _β, q_ ; _q_ = 1 _, β_ = _σx_ <sup>_−_</sup> <sup>2</sup> <sup>_/_</sup> <sup>2</sup> <sup>corresponds</sup> <sup>to</sup> <sup>a</sup> <sup>normal</sup> <sup>distribution.</sup> <sup>_Cq_</sup> <sup>is</sup> <sup>a</sup> normalization factor to provide unit integral. The parameters of the non-Gaussian shapes correspond to the ranges shown in Table VI but are rescaled in order to match the Gaussian distribution in their limits. For the Gen eralized Gaussian _αx,y,z_ = _σx,y,z_ and for the Q-Gaussian _βx,y,z_ = _σx,y,z_ <sup>_−_</sup> <sup>2</sup> <sup>_/_</sup> <sup>2.</sup> <sup>Fig.</sup> <sup>15</sup> <sup>shows</sup> <sup>an</sup> example profile for each profile shape together with the predicted reconstruction. Note that the Q-Gaussian profiles for _q_ = 2 are significantly wider than the training profiles and as a result show only very little distortion. The overall performance, as shown in Table IX and Fig. 16, decreases about one order of magnitude as compared to the Gaussian profiles. The new approach however shows (a) Generalized Gaussian _β_ = 1 _._ 5 (b) Generalized Gaussian _β_ = 3 (c) Q-Gaussian _q_ = 0 _._ 6 (d) Q-Gaussian _q_ = 2 Figure 15: Example profiles for non-Gaussian beam shapes together with reconstruction. “Measured” refers to the profile recorded by the detector (simulated in this case), “Target” refers to the initial beam distribution (the target of the reconstruction procedure) and “Reconstructed” refers to the result of the reconstruction procedure (which ideally should match the target). These examples are the ones with largest MSE error after reconstruction for each set. The Q-Gaussian profiles with _q_ = 2 (bottom right corner) are significantly wider than the training profiles. improved performance when compared to the results of the previous approach. Because the wide _q_ = 2 Q-Gaussian profiles significantly exceed the input range of the algorithm the corresponding profile tail information is dropped and hence the performance degrades. This is however not an issue as one can always validate the range of measured profiles before feeding them into the algorithm. The obtained results on different profile shapes imply that the neural network identifies the underlying distortion mechanism rather than memorizing the specific profile shape which it has been trained on. Table IX: Test performance on various non-Gaussian beam shapes shown in Eq. (14) and Eq. (15), measured by mean square error (MSE) in units of 10 <sup>_−_</sup> <sup>6</sup> . The mean and standard deviation of MSE performance is given. <sup>old</sup> rec MSE <sup>new</sup> rec Beam shape Parameters MSEmeas MSE <sup>old</sup> rec rec Gen. Gaussian _β_ = 1 _._ 5 8 _._ 09 _±_ 6 _._ 92 7 _._ 76 _±_ 1 _._ 43 6 _._ 57 _±_ 1 _._ 20 _β_ = 3 48 _._ 2 _±_ 28 _._ 6 14 _._ 5 _±_ 1 _._ 27 10 _._ 9 _±_ 1 _._ 96 Q-Gaussian _q_ = 0 _._ 6 59 _._ 8 _±_ 30 _._ 4 11 _._ 9 _±_ 8 _._ 54 6 _._ 30 _±_ 1 _._ 47 _q_ = 2 0 _._ 28 _±_ 0 _._ 09 105 _±_ 28 _._ 9 8 _._ 71 _±_ 1 _._ 89 The results were obtained using various scientific Python packages, including Keras [35], Matplotlib [36], NumPy [37], Pandas [38], SciPy [39], Tensorflow [40] and Virtual-IPM [24]. IV. SUMMARY Distortions of measured beam profiles by electron-based magnetic Ionization Profile Moni tors is a relatively new issue affecting the successful operation of these devices at some present and future accelerators operated for high-brightness beams. We discussed the underlying effects and their magnitude for this type of distortion in detail at the example of a possible LHC flat top configuration, supported by both analytic calculations as well as complete nu merical simulations. Analytic descriptions for the simplified case of a uniform bunch shape are derived and benchmarking of these results with complete simulations was performed by using a well established simulation tool. Simple formulae for computing the minimum mag netic field strength required to avoid space-charge induced profile distortion from relevant beam parameters are presented. They are validated against the derived analytic results for uniform beam as well as for complete simulations of various realistic beam shapes, including Uniform, Gaussian and Parabolic shapes. Following that we addressed the problem of re construction of the real beam profile from distorted measurement. First an approach based on the previously developed formulas for minimum magnetic field is presented which allows to infer the beam profile standard deviation from measured profile standard deviation on a (a) Generalized Gaussian _β_ = 1 _._ 5 (b) Generalized Gaussian _β_ = 3 (c) Q-Gaussian _q_ = 0 _._ 6 (d) Q-Gaussian _q_ = 2 Figure 16: Performance on non-Gaussian beam shapes. The Q-Gaussian profiles with _q_ = 2 (bottom right corner) are significantly wider than the training profiles. broad range of beam parameters. The second approach addressed the problem of complete profile shape reconstruction and was realized by using a dedicated machine learning model involving neural network. The performance of this method was tested on various realistic profile shapes, including Gaussian, Q-Gaussian and Generalized Gaussian shapes. By fitting the model only with Gaussian profiles we showed that the approach generalizes as well to beam shapes significantly different than normal distributions. [1] Simulation, design and operational experience with Ionization Profile Monitors, ARIES work shop, GSI, May 2017, `[http://indico.gsi.de/e/IPM17](http://indico.gsi.de/e/IPM17)` [2] J. Mießner, H.-J. Grabosch, R. Sternberger, M. Markert, K. Tiedtke and A. Hofmann, “An Ionization Profile Monitor for the determination of the FLASH and PITZ beam parameter”, in _Proceedings_ _of_ _IPAC_ _2011_, San Sebastian, Spain, 2018 [3] P. Forck, “Lecture notes on beam instrumentation”, JUAS, 2018 [4] K. Satou _et_ _al._, “A Novel Field Cage Design for the CPS IPM and Systematic Errors in Beam Size and Emittance”, in _Proceedings_ _of_ _IPAC_ _2018_, Vancouver, Canada, 2018 [5] K. Satou and T.M. Mitsuhashi, “Simulation and Progress in Ionization Profile Monitors for High Intensty Proton Beam”, in _Proceedings_ _of_ _IBIC_ _2017_, Grand Rapids, MI, USA, 2017 [6] W. DeLuca, “Beam detection using residual gas ionization”, IEEE Transactions on Nuclear Science 16 (1969) [7] R. E. Thern, “Space-charge distortion in the Brookhaven Ionization Profile Monitor”, in _Proceedings_ _of_ _PAC_ _1987_, Washington, D.C., USA, 1987 [8] W. Graves, Ph.D. thesis, “Measurement of Transverse Emittance in the Fermilab Booster”, University of Wisconsin, Madison, USA, 1994 [9] J. Amundson, J. Lackey, P. Spentzouris, G. Jungman and L. Spentzouris, “Calibration of the Fermilab Booster ionization profile monitor”, Phys. Rev. ST Accel. Beams vol. 6, p. 102801, 2003 [10] F. Hornsta and M. Trump, “A High Resolution Highly Sensitive Nonintercepting Beam Profile Monitor For The Los Alamos Meson Facility (LAMPF)”, in _Proc. of Proton Linear Accelerator_ _Conference_, Batavia, Illinois, USA, 1970 [11] M. Sapinski, W. Andreazza, B. Dehning, A. Guerrero, M. Patecki and R. Versteegen, “The first experience with LHC Beam Gas Ionization Monitor”, in _Proceedings_ _of_ _IBIC_ _2012_, Tsukuba, Japan, 2012 [12] M. Patecki, M.Sc. thesis, “Analysis of LHC Beam Gas Ionization monitor data and simulation of the Electron transport in the detector”, CERN-THESIS-2013-155, 2013 [13] D. Vilsmeier, B. Dehning and M. Sapinski, “Investigation of the effect of beam space-charge on electrons in Ionization Profile Monitors”, in _Proceedings_ _of_ _HB_ _2014_, East-Lansing, MI, USA, 2014 [14] D. Vilsmeier, B.Sc. thesis, “Profile distortion by beam space-charge in Ionization Profile Mon itors”, CERN-THESIS-2015-035, 2015 [15] L.V. Keldysh, “ Ionization in the Field of a Strong Electromagnetic Wave”, JETP, Vol. 20, No. 5, p. 1307 (May 1965) [16] H.D. Zhang _et_ _al._, “Development of a Supersonic Gas Jet Beam Profile Monitor”, in _Proceed-_ _ings_ _of_ _IBIC_ _2015_, Melbourne, Australia, 2015 [17] C.C. Wilcox, B. Jones, A. Pertica and R.E. Williamson, “An Investigation into the Behaviour of Residual Gas Ionisation Profile Monitors in the ISIS Extracted Beamline”, in _Proceedings_ _of_ _IBIC_ _2016_, Barcelona, Spain, 2016 [18] S. Levasseur _et_ _al._, “Time-Resolved Transverse Beam Profile Measurements with a Rest Gas Ionisation Profile Monitor Based on Hybrid Pixel Detectors”, in _Proceedings_ _of_ _IPAC_ _2018_, Vancouver, Canada, 2018 [19] R. Singh, M. Sapinski and D. Vilsmeier, “Simulation Supported Profile Reconstruction With Machine Learning”, in _Proceedings_ _of_ _IBIC_ _2017_, Grand Rapids, MI, USA, 2017 [20] D. Vilsmeier, M. Sapinski, R. Singh and J.W. Storey, “Reconstructing Space-Charge Distorted IPM Profiles with Machine Learning Algorithms”, Journal of Physics: Conference Series 1067, 7 (2018) [21] M. Sapinski, R. Singh, D. Vilsmeier and J.W. Storey, “Application of Machine Learning for the IPM-Based Profile Reconstruction”, in _Proceedings_ _of_ _HB_ _2018_, Daejeon, Korea, 2018 [22] Alexander B. Voitkiv, Norbert Gr¨un and Werner Scheid, “Hydrogen and helium ion ization by relativistic projectiles in collisions with small momentum transfer”, J.Phys.B: At.Mol.Opt.Phys 32 (1999) [23] R. Fitzpatrick, _Plasma_ _Physics:_ _An_ _Introduction_ (CRC Press, Taylor & Francis Group, 2014) [24] D. Vilsmeier, P. Forck and M. Sapinski, “A Modular Application for IPM Simulations”, in _Proceedings_ _of_ _IBIC2017_, Grand Rapids, MI, USA, 2017, version 1.3.1 [25] M. Kuhn _et_ _al._, “Origins of Transverse Emittance Blow-up during the LHC Energy Ramp”, in _Proceedings_ _of_ _5th_ _International_ _Particle_ _Accelerator_ _Conference_ IPAC2014, Dresden, Ger many, paper TUPRO01 [26] M.E. Rudd, Y.-K. Kim, D.H. Madison and J.W. Gallagher, “Electron production in proton collisions: total cross sections”, Rev. Mod. Phys 57, 4 (1985) [27] M. Schwickert, O. Chorniy, T. Giacomini, P. Kowina, H. Reeg, T. Reichert and R. Singh, “Status of Beam Diagnostics for SIS100”, in _Proceedings of IPAC2017_, Copenhagen, Denmark, 2017 [28] J. Egberts, Ph.D. thesis, “IFMIF-LIPAc Beam Diagnostics: Profiling and Loss Monitoring Systems”, Universit‘e Paris Sud, Ecole Doctorale 534 MIPEGE, 2012 [29] M. Bassetti and G. A. Erskine, “Closed expression for the electrical field of a two-dimensional Gaussian charge”, CERN-ISR-TH/80-06, 1980 (unpublished) [30] William H. Press, Saul A. Teukolsky, William T. Vetterling and Brian P. Flannery, _Numerical_ _Recipes:_ _The_ _Art_ _of_ _Scientific_ _Computing_ (Cambridge University Press, 2007) [31] Hastie, Trevor and Tibshirani, Robert and Friedman, Jerome, _The_ _Elements_ _of_ _Statistical_ _Learning_ (Springer New York Inc., 2001) [32] Kaiming He, Xiangyu Zhang, Shaoqing Ren and Jian Sun, “Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification”, CoRR abs/1502.01852 (2015) [33] I. S. Gradshte˘ın and Iosif M. Ryˇzik, _Table_ _of_ _Integrals,_ _Series_ _and_ _Products_ (Academic Press, 8 <sup>th</sup> Edition, 2014) [34] S. Papadopoulou, F. Antoniou, T. Argyropoulos, M. Fitterer, M. Hostettler and Y. Papa philippou, _Modelling_ _and_ _measurements_ _of_ _bunch_ _profiles_ _at_ _the_ _LHC_, Journal of Physics: Conference Series 874, 1 (2017) [35] Fran¸cois Chollet _et_ _al._, “Keras”, `[https://keras.io](https://keras.io)`, 2015, version 2.2.4 [36] John D. Hunter, “Matplotlib: A 2D Graphics Environment”, Computing in Science & Engi neering 9 (2007), version 2.2.2 [37] T. Oliphant, _A_ _guide_ _to_ _NumPy_ (Trelgol Publishing, 2006), version 1.14.5 [38] Wes McKinney, “Data Structures for Statistical Computing in Python”, in _Proceedings_ _of_ _the_ 9 <sup>_th_</sup> _Python_ _in_ _Science_ _Conference_, Austin, Texas, 2010, version 0.23.3 [39] Eric Jones, Travis Oliphant, Pearu Peterson _et_ _al._, “SciPy: Open source scientific tools for Python”, `[http://www.scipy.org/](http://www.scipy.org/)`, 2001, version 1.1.0 [40] Mart´ın Abadi _et_ _al._, “TensorFlow: Large-scale machine learning on heterogeneous systems”, 2015, Software available from `tensorflow.org`, version 1.10.0 A. ESTIMATION OF MAXIMUM POLARIZATION DRIFT DISTANCE The polarization drift velocity is described by the formula [23] (16) - _<u>E⊥</u>_ _B_ _v_ ( _t_ ) = <sup><u>1</u></sup> _ω_ _<u>d</u>_ _dt_ where _ω_ is the gyrofrequency of electrons and _E⊥_ is the electric field component perpen dicular to the magnetic field _B_ . The maximum drift distance can be computed by - _∞_ _δ_ = _v_ ( _t_ ) _dt_ (17) 0 where _t_ = 0 describes the time when the electron is longitudinally aligned with the bunch center, since for _t_ _<_ 0 the electron drifts in the opposite direction. For estimating the bunch electric field we use the formula for the transverse electric field of a two-dimensional Gaussian bunch scaled with the longitudinal charge line density: - _−_ <sup>_<u>β</u>_</sup> <sup>2</sup> <sup>_<u>c</u>_</sup> <sup>2</sup> <sup>_<u>t</u>_</sup> <sup>2</sup> 2 _σz_ <sup>2</sup> (18) _Er_ ( _x, y, t_ ) = <sup>_<u>Ne</u>_</sup> _ϵ_ 0 <u>1</u> _~~√~~_ 2 _π_ 3 _σz_ - 1 _−_ exp _−_ <sup>_<u>x</u>_</sup> <sup>2 +</sup> <sup>_<u>y</u>_</sup> <sup>2</sup> 2 _σr_ <sup>2</sup> �� exp where _N_ is the number of charges _σr_ is the standard deviation of the transverse charge distribution and _σz_ is the standard deviation of the longitudinal charge line density (in dimension of length); _β_ is the relativistic beta factor of the particle beam. We further neglect the time dependence of _x_ and _y_ because we consider _β_ _≈_ 1 together with non-relativistic electrons and hence the change in beam electric field will be driven by the beam movement which is expressed through the explicit time dependence in equation Eq. (18). The beam magnetic field is neglected as well since it is much smaller than the mag netic guiding field. Hence the electric field component _E⊥_ is determined to be perpendicular to the magnetic guiding field and is thus given by Eq. (18). It follows that the time derivative in Eq. (16) is given by the partial time derivative of Eq. (18). Integrating the resulting expression according to Eq. (17) one obtains (dropping the sign): <u>1</u> _δ_ ( _x, y_ ) = _ωB_ _<u>Ne</u>_ _ϵ_ 0 <u>1</u> _~~√~~_ 2 _π_ 3 _σz_ - 1 _−_ exp _−_ <sup>_<u>x</u>_</sup> <sup>2 +</sup> <sup>_<u>y</u>_</sup> <sup>2</sup> 2 _σr_ <sup>2</sup> �� (19) The maximum of the resulting function _δ_ ( _x_ ) is given by: <u>1</u> _δmax_ = _ωB_ <u>1</u> _≈_ _ωB_ _<u>N</u>_ _σrσz_ _<u>N</u>_ _σrσz_ _<u>e</u>_ - - _<u>w</u>_ <u>¯</u> 1 _−_ exp 2 �� _ϵ_ 0 _~~√~~_ <u>1</u> 3 2 _π_ _~~√~~_ _−w_ ¯ _ϵ_ 0 2 _π_ (20) 5 _._ 18 _×_ 10 <sup>_−_</sup> <sup>10</sup> where _w_ ¯ = 2 _w−_ 1 ( _−_ 0 _._ 5 exp( _−_ 0 _._ 5)) + 1 and _w−_ 1 is the product log function [33]. Inserting the the beam parameters from Table I and using _σr_ = _σx_ we obtain a maximum drift distance of _δmax_ = 852 µm. B. COMPENSATION OF GYRATION CENTER SHIFT Eq. (6) indicates the shift of the gyration center with respect to the undisturbed case (for which _E_ = 0). Using Eq. (5) this becomes: _xc_ = <sup>_<u>ω</u>_</sup> <sup>2</sup> Ω <sup>2</sup> - _x_ 0 _−_ <sup>_<u>vz</u>_</sup> <sup><u>0</u></sup> _ω_ (21) with _ω_ = _qB_ ¯ the gyrofrequency for the undisturbed case _E_ = 0. For the derivation of Eq. (1) - Eq. (4) the bunch electric field was assumed constant, i.e. _E_ = const. In order to incorporate the time-dependence due to bunch movement we can consider a series of partial solutions ( _xn_ ( _t_ ) _, zn_ ( _t_ )) each of which is valid on an interval [ _tn, tn_ +1] for which the time dependence remains approximately constant. These partial solutions are of the form: _xn_ ( _t_ ) = <sup>_<u>an</u>_</sup> Ω _n_ sin(Ω _nt_ ) _−_ <sup>_<u>bn</u>_</sup> Ω _n_ cos(Ω _nt_ ) + _cn_ _x_ ˙ _n_ ( _t_ ) = _an_ cos(Ω _nt_ ) + _bn_ sin(Ω _nt_ ) sin(Ω _nt_ ) + <sup>_<u>En</u>_</sup> _B_ <sup>_cn t_</sup> <sup>+</sup> <sup>_dn_</sup> (22) _zn_ ( _t_ ) = _−an_ _<u>ω</u>_ Ω <sup>2</sup> _n_ cos(Ω _nt_ ) _−_ _bn_ _<u>ω</u>_ Ω <sup>2</sup> _n_ cos(Ω _nt_ ) + <sup>_<u>En</u>_</sup> _B_ <sup>_cn_</sup> _<u>ω</u>_ Ω _n_ _z_ ˙ _n_ ( _t_ ) = _an_ where _En_ _≡_ _E_ ( _tn_ ) and _<u>ω</u>_ Ω _n_ sin(Ω _nt_ ) _−_ _bn_ _a_ 0 = _vx_ 0 _b_ 0 = _−_ <sup>_<u>ω</u>_</sup> Ω0 - _vz_ 0 _−_ <sup>_<u>E</u>_</sup> <sup><u>0</u></sup> _B_ <sup>_x_</sup> <sup>0</sup> - _vz_ 0 _−_ <sup>_<u>E</u>_</sup> <sup><u>0</u></sup> _B_ (23) _c_ 0 = <sup>_<u>ω</u>_</sup> <sup>2</sup> Ω <sup>2</sup> 0 - _x_ 0 _−_ <sup>_<u>vz</u>_</sup> <sup><u>0</u></sup> 0 - _x_ 0 _−_ <sup>_<u>vz</u>_</sup> <sup><u>0</u></sup> _ω_ _d_ 0 = _z_ 0 + <sup>_<u>ω</u>_</sup> _vx_ 0 <sup>2</sup> 0 Ω <sup>2</sup> 0 Note that _c_ 0 represents the (shifted) gyration center. In order to link the solutions and their coefficients together we require continuity at the boundary of time intervals: ( _xn_ ( _tn_ ) _,_ _x_ ˙ _n_ ( _tn_ ) _, zn_ ( _tn_ ) _,_ _z_ ˙ _n_ ( _tn_ )) = (! _xn−_ 1( _tn_ ) _,_ _x_ ˙ _n−_ 1( _tn_ ) _, zn−_ 1( _tn_ ) _,_ _z_ ˙ _n−_ 1( _tn_ )) (24) Using Eq. (22) we can write Eq. (24) in matrix representation with respect to the coeffi cients:  <u>sin(Ω</u> _<u>ntn</u>_ <u>)</u> _<u>ntn</u>_ <u>)</u> _−_ <sup><u>cos(Ω</u></sup> <sup>_<u>ntn</u>_</sup> <sup><u>)</u></sup> Ω _n_ Ω _n_         <sup>_<u>ntn</u>_</sup> <sup><u>)</u></sup> 1 0 Ω _n_         Ω _<u>ωn</u>_ <sup>sin(Ω</sup> <sup>_ntn_</sup> <sup>)</sup> _−_ Ω <sup>_<u>ω</u>_</sup> _n_ <sup>_<u>ω</u>_</sup> _<u>En</u>_ Ω _n_ <sup>cos(Ω</sup> <sup>_ntn_</sup> <sup>)</sup> _B_ _an_ _bn_ _cn_ _dn_       cos(Ω _ntn_ ) sin(Ω _ntn_ ) 0 0 =       _xn−_ 1( _tn_ ) _x_ ˙ _n−_ 1( _tn_ ) _zn−_ 1( _tn_ ) _z_ ˙ _n−_ 1( _tn_ ) (25) Ω <sup>_<u>ω</u>_</sup> <sup>2</sup> _n_ <sup>cos(Ω</sup> <sup>_ntn_</sup> <sup>)</sup> <sup>_−_</sup> Ω <sup>_<u>ω</u>_</sup> <sup>2</sup> _−_ Ω <sup>_<u>ω</u>_</sup> Ω <sup>_<u>ω</u>_</sup> <sup>2</sup> _n_ <sup>sin(Ω</sup> <sup>_ntn_</sup> <sup>)</sup> _<u>EBn</u>_ _<u>EBn</u>_ <sup>_tn_</sup> <sup>1</sup>              _<u>n</u>_ 0 _B_ The matrix on the left hand side has determinant _−_ Ω _ω_ <sup>_−_</sup> <sup>1</sup> <sup>_̸_</sup> = 0 and hence a unique solution for the coefficients ( _an, bn, cn, dn_ ) exists. Inverting the matrix we obtain:        <u>Ω</u> <sup>2</sup> _<u>n</u>_ <sup>2</sup> _<u>n</u>_ <sup>_<u>−ω</u>_</sup> <sup>2</sup> Ω <sup>2</sup> _n_ Ω _n_ _<u>ω</u>_ <u>Ω</u> <sup>2</sup> _<u>n</u>_ <sup>_<u>−ω</u>_</sup> <sup>3</sup> _<u>ω</u>_ _<u>ω</u>_ <sup>2</sup> _<u>−</u>_ <u>Ω</u> <sup>2</sup> _<u>n</u>_ <sup>2</sup> _<u>n</u>_ <sup>_<u>−ω</u>_</sup> <sup>3</sup> _<u>n</u>_ <sup>_<u>−ω</u>_</sup> <sup>2</sup> _<u>ω</u>_ sin(Ω _ntn_ ) cos(Ω _ntn_ ) 0 Ω _n_ Ω _n_ <sup>sin(Ω</sup> <sup>_ntn_</sup> <sup>)</sup>  _<u>ω</u>_ <sup>2</sup> _<u>−</u>_ <u>Ω</u> <sup>2</sup> _<u>n</u>_ Ω <sup>_<u>ω</u>_</sup> _n_ <sup>cos(Ω</sup> <sup>_ntn_</sup> <sup>)</sup> _<u>−</u>_ <u>Ω</u> <sup>2</sup> _<u>n</u>_ cos(Ω _ntn_ ) sin(Ω _ntn_ ) 0 _−_ <sup>_<u>ω</u>_</sup> Ω _n_ Ω (26) _<u>ω</u>_ <sup>2</sup> 0 0 _−_ <sup>_<u>ω</u>_</sup> Ω <sup>2</sup> _n_ Ω _n_       _<u>n</u>_ <sup>_<u>−ω</u>_</sup> <sup>3</sup> _tn_ Ω <sup>2</sup> _n_ _<u>ω</u>_ 1 _<u>ω</u>_ <sup>2</sup> _<u>−</u>_ <u>Ω</u> <sup>2</sup> _<u>n</u>_ Ω <sup>2</sup> _n_ Ω <sup>2</sup> _n_ _<u>n</u>_ _tn_ Ω <sup>2</sup> _n_ The parameter _cn_ encodes the gyration center shift and is given by the third line of the inverse matrix: _cn_ = <sup>_<u>ω</u>_</sup> <sup>2</sup> _xn−_ 1( _tn_ ) _−_ <sup>_<u>ω</u>_</sup> Ω <sup>2</sup> _n_ _z_ ˙ _n−_ 1( _tn_ ) (27) _n_ Ω <sup>2</sup> _n_ _n_ Inserting Eq. (22) into Eq. (27) we obtain: _<u>n</u>_ _cn_ = <sup>Ω2</sup> <u>0</u> = <sup><u>Ω2</u></sup> _<u>n−</u>_ <u>1</u> <sup>2</sup> Ω <sup>2</sup> _n_ _n−_ 1 _cn−_ 1 = _c_ 0 _i_ =0 _<u>i</u>_ Ω <sup>2</sup> _i_ <u>Ω</u> <sup>2</sup> _<u>i</u>_ _i_ +1 _c_ 0 = <sup>_<u>ω</u>_</sup> <sup>2</sup> (28) _n_ Ω <sup>2</sup> _n_ _n_ - _x_ 0 _−_ <sup>_<u>vz</u>_</sup> <sup><u>0</u></sup> _ω_ <u>0</u> <sup><u>Ω2</u></sup> Ω <sup>2</sup> _n_ _n_ Since for _n_ _→∞_ we have Ω _n_ _→_ _ω_ it follows that _cn_ _→_ _x_ 0 _−_ _vz_ 0 _ω_ <sup>_−_</sup> <sup>1</sup> which is the undisturbed gyration center. Hence the initial shift, encoded in _c_ 0, is compensated for _t_ _→∞_ . Actually this limit is already reached for _E_ _→_ 0 which is the case once the bunch has receded from the electron’s position. C. DERIVATION OF TIME-OF-FLIGHT FOR UNIFORM CHARGE DISTRIBU- TION <sup>_<u>qE</u>_</sup> _m_ <sup>_<u>g</u>_</sup> <sup>_,_</sup> <sup>_b ≡_</sup> <sup>_<u>q</u>_</sup> _m_ <sup>_<u>|E|</u>_</sup> We define _a ≡_ <sup>_<u>qE</u>_</sup> _m_ <sup>_<u>g</u>_</sup> _m_ <sup>_<u>|E|</u>_</sup> <sup>and</sup> <sup>thus</sup> <sup>obtain:</sup> (29) _y_ ¨( _t_ ) = _a −_ _by_ exp - _−_ <sup>_<u>|t|</u>_</sup> _σz_ We solve the differential equation for _t_ _≥_ 0 (denoted as _y_ <sup>_>_</sup> ) since for _t_ _≤_ 0 (denoted as _y_ <sup>_<_</sup> ) we can then reuse this solution together with the transformation _t �→−t_ . For _t ≥_ 0 the solution is: _y_ ( _t_ ) = _ησzJ_ 0 ( _u_ ( _t_ )) _G_ <sup>3</sup> 2 <sup>_,_</sup> _,_ <sup>0</sup> 4 - _<u>u</u>_ <u>(</u> _<u>t</u>_ <u>)</u> 2 (30) _−_ _ησzY_ 0 ( _u_ ( _t_ )) _G_ <sup>1</sup> 2 <sup>_,_</sup> _,_ <sup>3</sup> 0 - _<u>u</u>_ <u>(</u> _<u>t</u>_ <u>)2</u> 4 + _k_ 1 _J_ 0 ( _u_ ( _t_ )) + _k_ 2 _Y_ 0 ( _u_ ( _t_ )) _<u>−t</u>_ _b_ exp 2 _σz_, _Jn_, _Yn_ denote the Bessel functions of first and second where _η_ _≡_ _aσzπ_, _u_ ( _t_ ) _≡_ 2 _σz_ _√_ <sup>3</sup> 2 <sup>_,_</sup> _,_ <sup>0</sup> 4 <sup>_{x}_</sup> <sup>_≡_</sup> <sup>_G_</sup> 2 <sup>3</sup> _,_ <sup>_,_</sup> 4 <sup>0</sup> - _x,_ 2 <sup><u>1</u></sup> _−_ <sup><u>1</u></sup> 2 <sup>_,_</sup> <sup>1</sup> 0 _,_ 0 _,_ 0 _,−_ <sup><u>1</u></sup> 2 ��0 _,_ 10 _,_ 0 - denote (31) and _G_ <sup>1</sup> 2 <sup>_,_</sup> _,_ <sup>3</sup> 0 <sup>_{x}_</sup> <sup>_≡_</sup> <sup>_G_</sup> 2 <sup>1</sup> _,_ <sup>_,_</sup> 0 <sup>3</sup> - _x_ kind respectively and _G_ <sup>3</sup> 2 <sup>_,_</sup> _,_ <sup>0</sup> 4 <sup><u>1</u></sup> _−_ <sup><u>1</u></sup> 2 2 ���0 _,_ 0 _,_ 0 Meijer G-functions [33]. By using the relations _<u>d</u>_ 2 _,_ 4 <sup>_{x}_</sup> <sup>=</sup> <sup>_−J_</sup> <sup><u>0 (2</u></sup> <sup>_√x_</sup> <sup><u>)</u></sup> _dx_ <sup>_G_</sup> <sup>3</sup> <sup>_,_</sup> <sup>0</sup> _x_ _<u>d</u>_ 2 _,_ 0 <sup>_{x}_</sup> <sup>=</sup> <sup>_−_</sup> <sup><u>2</u></sup> <sup>_<u>Y</u>_</sup> <sup><u>0 (2</u></sup> <sup>_<u>x</u>_</sup> <sup><u>)</u></sup> _dx_ <sup>_G_</sup> <sup>1</sup> <sup>_,_</sup> <sup>3</sup> _x_ _<u>d</u>_ 2 _,_ 4 _dx_ <sup>_G_</sup> <sup>3</sup> <sup>_,_</sup> <sup>0</sup> 2 _,_ 0 <sup>_{x}_</sup> <sup>=</sup> <sup>_−_</sup> <sup><u>2</u></sup> <sup>_<u>Y</u>_</sup> <sup><u>0 (2</u></sup> <sup>_<u>x</u>_</sup> <sup><u>)</u></sup> <sup>1</sup> <sup>_,_</sup> <sup>3</sup> _x_ we confirm that the terms which contain the derivatives of the Meijer G-function cancel each other. We then obtain for _y_ ˙( _t_ ): _y_ ˙( _t_ ) = _−u_ ˙ ( _t_ )[ _ησzJ_ 1 ( _u_ ( _t_ )) _G_ <sup>3</sup> 2 <sup>_,_</sup> _,_ <sup>0</sup> 4 - _<u>u</u>_ <u>(</u> _<u>t</u>_ <u>)�</u> 2 (32) _−_ _ησzY_ 1 ( _u_ ( _t_ )) _G_ 2 <sup>1</sup> _,_ <sup>_,_</sup> 0 <sup>3</sup> - _<u>u</u>_ <u>(</u> _<u>t</u>_ <u>)2</u> 4 + _k_ 1 _J_ 1 ( _u_ ( _t_ )) + _k_ 2 _Y_ 1 ( _u_ ( _t_ ))] =! _v_ 0 we can derive the values for _k_ 1 _, k_ 2 Using the initial conditions _y_ (0) (setting _u_ 0 _≡_ _u_ ( _t_ 0)) =! _y_ 0 and _y_ ˙(0) 2 _,_ 4 - _<u>u</u>_ 20 - + _ηY_ 0 ( _u_ 0) _G_ 2 <sup>1</sup> _,_ <sup>_,_</sup> 0 <sup>3</sup> <sup>3</sup> <sup>_,_</sup> <sup>0</sup>     _<u>−vy</u>_ <u>0</u> _<u>−vy</u>_ <u>0</u> _u_ ˙ (0) <sup>_−_</sup> <sup>_ηJ_</sup> <sup>1 (</sup> <sup>_u_</sup> <sup>0)</sup> <sup>_G_</sup> 2 <sup>3</sup> _,_ <sup>_,_</sup> 4 <sup>0</sup>   (33) - _<u>u</u>_ <sup>2</sup> <u>0</u> 2 <sup>1</sup> _,_ <sup>_,_</sup> 0 <sup>3</sup> 4 <sup>2</sup> <u>0</u> 4  <sup>_J_</sup> <sup>0 (</sup> <sup>_u_</sup> <sup>0)</sup> <sup>_Y_</sup> <sup>0 (</sup> <sup>_u_</sup> <sup>0)</sup>   <sup>_k_</sup> <sup>1</sup> _k_ 2 2 <sup>3</sup> _,_ <sup>_,_</sup> 4 <sup>0</sup> - _<u>u</u>_ 20 - + _ηY_ 1 ( _u_ 0) _G_ <sup>1</sup> 2 <sup>_,_</sup> _,_ <sup>3</sup> 0 - _<u>u</u>_ <sup>2</sup> <u>0</u> <sup>1</sup> 2 <sup>_,_</sup> _,_ <sup>3</sup> 0 4 <sup>2</sup> <u>0</u> 4 _J_ 1 ( _u_ 0) _Y_ 1 ( _u_ 0)   =  2 _,_ 4  <sup>_y_</sup> <sup>0</sup> <sup>_−_</sup> <sup>_ηJ_</sup> <sup>0 (</sup> <sup>_u_</sup> <sup>0)</sup> <sup>_G_</sup> <sup>3</sup> <sup>_,_</sup> <sup>0</sup> _<u>−vy</u>_ <u>0</u> For the _t_ _≤_ 0 case we apply _t_ _�→−t_ and reuse the above solution. Note that the derivative _u_ ˙ ( _t_ ) changes its sign due to the transformation. For _t_ 0 _<_ 0 we obtain _k_ 1 <sup>_>, k_</sup> 2 <sup>_>_</sup> <sup>from</sup> =! _y_ ˙ _>_ (0)). the continuity condition at _t_ = 0: _y_ <sup>_<_</sup> (0) =! _y>_ (0) and _y_ ˙ _<_ (0) D. METHODS FOR MINIMUM MAGNETIC FIELD COMPUTATION For the computation of minimum magnetic field strength from analytic formulae we used the following methods. For each configuration (beam parameters + IPM parameters including magnetic field) 1000 particles were sampled from the initial beam distribution (sampling x- and y-position as well as the ionization time at _z_ = 0 since the guiding fields are assumed to be uniform and the resulting profile is integrated along z). The initial momenta are sampled from double differential cross sections [22]. For each particle its time-of-flight (TOF) until leaving the bunch region, described by _x_ ( _t_ ) <sup>2</sup> + _y_ ( _t_ ) <sup>2</sup> _≤_ _R_ <sup>2</sup> and _z_ ( _t_ ) _≤_ ( _t−_ 4 _σz_ ) _βc_, was computed as the minimum between the TOF in transverse direction, considering Eq. (1) and Eq. (30), as well as in z-direction, using the bunch velocity and the electron velocity in z-direction via Eq. (2) and Eq. (4). We then use Eq. (3) and Eq. (4) in order to compute the final transverse velocity _|_ _vxz_ ( _t_ of) _|_ = - _vx_ ( _t_ of) <sup>2</sup> + _vz_ ( _t_ of) <sup>2</sup> from which we calculate the gyroradius given the magnetic guiding field. We then consider gyration around the central point indicated by Eq. (1) and a random position of detection within the gyromotion range with probabilities proportional to the corresponding point-spread function (PSF) [14]. In order to increase the statistics, for each particle 100 final positions were sampled according to the corresponding PSF, all corresponding to the same initial position. This results in a total of 100 000 data points for computing the standard deviation of the beam profile and the measured profile respectively. Each configuration was scored according to the relative deviation of measured standard deviation with respect to standard deviation of the beam profile _λ_ = ( _σm−σb_ ) _σb_ <sup>_−_</sup> <sup>1, where</sup> <sup>_λ_</sup> <sup>denotes the score and</sup> <sup>_σm, σb_</sup> <sup>denote the measured and beam</sup> profile standard deviation respectively. A particular magnetic field strength is considered sufficient if _λ ≤_ 0 _._ 01. The magnetic field strength _B_ is computed by finding the root of the function _λ_ ( _B_ ) _−_ 0 _._ 01 using the bisection method [30] with a tolerance of 1 mT. E. SCALING FACTORS FOR DIFFERENT BUNCH SHAPES Different bunch shapes are compared to a Gaussian distribution and their free parameters are adjusted such that the resulting distribution has a minimal least square difference to the corresponding Gaussian distribution: - + _∞_ arg min _η_ _−∞_ ( _ρ_ ( _x|η_ ) _−N_ (0 _, σ_ )) <sup>_p_</sup> _dx_ (34) where _ρ_ ( _x|η_ ) represents a particular bunch shape parametrized by _η_ . Least squares differ ence ( _p_ = 2) is used for the Uniform bunch shape and _p_ = 4 is used for the Parabolic Ellipsoid shape for numerical stability. The L-BFGS-B solver from the scipy.optimize package [39] is used for minimizing Eq. (34). A. Gaussian The reference beam profile is a Gaussian distribution given by: - _−_ <sup>_<u>x</u>_</sup> <sup>2</sup> _ρG_ ( _x_ ) _∝_ exp _σt_ <sup>2</sup> (35) _t_ B. Uniform We consider a charge distribution that is uniform in the transverse shape and has a Gaussian dependency in the longitudinal direction: - _−_ <sup>_<u>z</u>_</sup> <sup>2</sup> 2 _σz_ <sup>2</sup> - _,_ for _x_ <sup>2</sup> + _y_ <sup>2</sup> _≤_ _R_ <sup>2</sup> (36) _ρU_ ( _x, y, z_ ) _∝_ Integration over _z_ and _y_ yields:  exp - _−_ <sup>_<u>z</u>_</sup> <sup>2</sup> 0 _,_ otherwise _R_ <sup>2</sup> _−_ _x_ <sup>2</sup> (37) _ρU_ ( _x|R_ ) _∝_ _√_ C. Parabolic Ellipsoid We consider a rotational symmetric ellipsoid with parabolic charge distribution: <sup><u>+</u></sup> <sup>_<u>y</u>_</sup> <sup>2</sup> _−_ <sup>_<u>z</u>_</sup> <sup>2</sup> _b_ _a_ <sup>2</sup> <sup>_<u>z</u>_</sup> <sup>2</sup> _,_ for _<u>x</u>_ <sup>2</sup> <u>+</u> _<u>y</u>_ <sup>2</sup> _a_ <sup>2</sup> _b_ <sup>2</sup> <sup>_<u>z</u>_</sup> <sup>2</sup> _a_ <sup>2</sup> <sup>_≤_</sup> <sup>1</sup> <u>+</u> _<u>y</u>_ <sup>2</sup> + <sup>_<u>z</u>_</sup> <sup>2</sup> _b_ <sup>2</sup> _a_ <sup>2</sup> (38) _ρP_ ( _x, y, z_ ) _∝_    1 _−_ <sup>_<u>x</u>_</sup> <sup>2+</sup> <sup>_<u>y</u>_</sup> <sup>2</sup> _b_ 0 _,_ otherwise Integration over _z_ and _y_ yields: _ρP_ ( _x|{a, b}_ ) _∝_ <sup>_<u>a</u>_</sup> _b_ <sup>3</sup> _b_ <sup>2</sup> _−_ _x_ <sup>2�2</sup> (39)

섹션 본문

섹션 본문이 없습니다.

참고문헌 10건

  1. Beam Detection Using Residual Gas Ionization IEEE Transactions on Nuclear Science · Institute of Electrical and Electronics Engineers · 1969 10.1109/tns.1969.4325373
  2. Calibration of the Fermilab Booster ionization profile monitor Physical Review Special Topics - Accelerators and Beams · American Physical Society · 2003 10.1103/physrevstab.6.102801
  3. Reconstructing space-charge distorted IPM profiles with machine learning algorithms Journal of Physics Conference Series · IOP Publishing · 2018 10.1088/1742-6596/1067/7/072003
  4. Hydrogen and helium ionization by relativistic projectiles in collisions with small momentum transfer Journal of Physics B Atomic Molecular and Optical Physics · IOP Publishing · 1999 10.1088/0953-4075/32/15/321
  5. Plasma Physics CRC Press eBooks · Informa · 2014 10.1201/b17263
  6. Electron production in proton collisions: total cross sections Reviews of Modern Physics · American Physical Society · 1985 10.1103/revmodphys.57.965
  7. The Elements of Statistical Learning Springer series in statistics · Springer Science+Business Media · 2001 10.1007/978-0-387-21606-5
  8. Modelling and measurements of bunch profiles at the LHC Journal of Physics Conference Series · IOP Publishing · 2017 10.1088/1742-6596/874/1/012008
  9. Matplotlib: A 2D Graphics Environment Computing in Science & Engineering · AIP Publishing · 2007 10.1109/mcse.2007.55
  10. The NumPy Array: A Structure for Efficient Numerical Computation Computing in Science & Engineering · AIP Publishing · 2011 10.1109/mcse.2011.37