<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>A non-linear Kalman filter for track parameters estimation in high energy physics</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>04/01/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10430295</idno>
					<idno type="doi">10.1016/j.nima.2023.168041</idno>
					<title level='j'>Nuclear Instruments and Methods in Physics Research Section A: Accelerators, Spectrometers, Detectors and Associated Equipment</title>
<idno>0168-9002</idno>
<biblScope unit="volume">1049</biblScope>
<biblScope unit="issue">C</biblScope>					

					<author>Xiaocong Ai</author><author>Heather M. Gray</author><author>Andreas Salzburger</author><author>Nicholas Styles</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The Kalman Filter is a widely used approach for the linear quadratic estimation of dynamical systems and is frequently employed within nuclear and particle physics experiments for the reconstruction of charged particle trajectories, known as tracks. Implementations of this formalism often make assumptions on the linearity of the underlying dynamic system and the Gaussian nature of the process noise and measurement model, which are violated in a number of track reconstruction applications. This paper introduces an implementation of a Non-Linear Kalman Filter (NLKF) within the ACTS track reconstruction toolkit. The NLKF addresses the issue of non-linearity by using a set of representative sample points during the projection of the track state to the measurement. In a typical use case, the NLKF outperforms the so-called Extended Kalman Filter in the accuracy and precision of the track parameter estimates obtained, with an increase in CPU time below a factor of two. It is therefore a promising approach for use in applications where precise estimation of track parameters is a key concern.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>The reconstruction of the trajectories of charged particles requires the identification of the set of hits corresponding to a single particle and the determination of the kinematic properties of the particle's trajectory by fitting that set of hits using a track model. The most commonly used algorithm for the reconstruction of charged particle trajectories, or tracks, in nuclear and particle physics is the Kalman Filter (KF). The KF was introduced approximately 70 years ago <ref type="bibr">[1]</ref> and is used in many fields including navigation, aerospace engineering, space engineering, remote surveillance, telecommunications, physics, audio signal processing and control engineering. The KF for track reconstruction was introduced to particle physics by the DELPHI experiment <ref type="bibr">[2]</ref> at the Large Electron Positron (LEP) collider at the European Organization for Nuclear Research (CERN).</p><p>The KF processes a set of discrete measurements to determine the internal state of a linear dynamical system. Both the measurements and the system can be subjected to independent random perturbations or noise. By combining predictions based on the previous state estimates with subsequent measurements, the impact of these perturbations on the following state estimates can be minimized. The KF is known to be the optimal linear estimator for such linear systems.</p><p>In track reconstruction <ref type="bibr">[3]</ref>, the description of the system incorporates the impact of magnetic fields and detector material on charged particle trajectories. 1 KF algorithms are used both in track finding, where the collection of measurements corresponding to a single charged particle trajectory are identified, and in track fitting, where the parameters describing the trajectory of the charged particle are determined from a set of measurements. To date, the KF remains the method with the best overall performance for most track reconstruction applications. See Ref. <ref type="bibr">[4]</ref> for a review.</p><p>KF algorithms for track reconstruction typically proceed in two steps. The starting point is the track seed, which is an initial coarse trajectory estimate for a candidate track, based on a small number of measurements, typically three or four. Subsequent measurements are added progressively to the track seed following a track propagation to reachable detection elements. Once all the measurements have been added, a smoothing operation is performed by either using the Rauch-Tung-Striebel (RTS) smoother formalism <ref type="bibr">[5]</ref> or running a second filtering sequence in the opposite direction, i.e. backward filtering. This means that information from all measurements are included in the track parameter estimates at all measurement points. Without the smoothing operation, only the parameters estimated at the final measurement point would include the information from all measurement points due to the progressive nature of the KF procedure. An extension of the KF is the Combinatorial Kalman Filter (CKF) <ref type="bibr">[6]</ref><ref type="bibr">[7]</ref><ref type="bibr">[8]</ref>, which can account for multiple matching hits during track finding.</p><p>Despite the success of the KF, a key limitation for many applications is the assumption of linear models for the system and measurement and Gaussian distributions for the system state, process and measurement noise. This has motivated the development of a number of extensions. One such extension is the linearized Extended Kalman filter (EKF) <ref type="bibr">[9]</ref> which uses a model that has been linearized via a first-order Taylor expansion. This description, while significantly improved, is insufficient in particular when the incidence angle of the charged particle on the measurement surface is large. The assumption within the EKF that the noise is described by a Gaussian distribution is not necessarily appropriate.</p><p>The Gaussian Sum Filter (GSF) <ref type="bibr">[10]</ref> relaxes the assumption of Gaussian process noise by assuming that the noise distribution can be described by a sum of Gaussian distributions <ref type="bibr">[11]</ref>. In the domain of nuclear and particle physics, this is particularly important when modelling radiative energy loss such as is common when electrons undergo bremsstrahlung as they pass through tracking detectors <ref type="bibr">[12,</ref><ref type="bibr">13]</ref>. The application of the GSF procedure is typically restricted to track candidates which have been identified as being a potential electron candidate (e.g. by combining track information with calorimeter information, or other forms of particle identification such as transition radiation). The GSF does not address potential effects arising from a non-linear measurement model in track fitting. This paper will explore a non-linear Kalman filter (NLKF) based on the Unscented Kalman filter (UKF) <ref type="bibr">[14,</ref><ref type="bibr">15]</ref>, as a method to mitigate some of the previously-discussed issues in charged particle reconstruction for high-energy nuclear and particle physics experiments. The UKF uses a set of discretely sampled points to parameterize the mean and covariance to account for non-linearities of the system and measurement models, and has been shown to have comparable performance to a second-order Gaussian filter. We investigate the performance of the NLKF in high energy physics use cases. We focus on the performance improvements observed through using the NLKF during the projection of the track state to the measurement compared to the EKF.</p><p>The manuscript is organized as follows. Section 2 provides a brief introduction to track reconstruction and A Common Tracking Software Toolkit (ACTS) <ref type="bibr">[16]</ref>. The formalism for the EKF is discussed in Section 3 and the extension to the NLKF in Section 4. Section 5 compares the performance of the EKF and the NLKF using a typical detector geometry. Brief conclusions are presented in Section 6.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Track reconstruction and the ACTS toolkit</head><p>A Common Tracking Software (ACTS) <ref type="bibr">[16]</ref> is a toolkit providing a set of encapsulated track reconstruction components that can be used by a wide range of experiments. ACTS features an internal geometry and navigation model, including a minimal Event Data Model (EDM) that allows client applications to augment and extend the data with information specific to the target experiment. It imposes minimal dependencies. ACTS is written in C++17 using modern programming best-practices and follows a component level design that provides encapsulated, stateless modules. These modules perform well-defined tasks for track reconstruction (e.g. track propagation or track fitting) and are designed to be executed in parallel call paths if desired, in compliance with modern multi-core CPU architectures. ACTS is currently used within a number of nuclear and particle physics experiments, e.g. ATLAS <ref type="bibr">[17]</ref>, sPHENIX <ref type="bibr">[18]</ref>, and is being investigated as a potential track reconstruction library by a number of others.</p><p>Using its internal geometry and navigation model, ACTS provides a fast track simulation engine, based on the concept of the ATLAS Fast Track Simulation (Fatras) <ref type="bibr">[19]</ref>. <ref type="foot">2</ref> The internal navigation model of the ACTS geometry is used to predict the particle trajectories through the detector. Hits are created at the intersection points of the trajectory with sensitive detector elements, and the interaction of particles with detector material is modelled using approximate electromagnetic and hadronic physics models. The multiple scattering is modelled as a random Gaussian noise and the energy loss is modelled with random numbers drawn from a Landau distribution according to the traversed material. The recorded hits are processed by a digitization module that emulates the detector readout and provides an estimate for the detector resolution.</p><p>In ACTS, candidate tracks are created from input measurements by a series of track reconstruction algorithms, and are represented by a series of track states that describe the trajectory at various points. A track state can be expressed in either a free (also called global) or a local representation. Local representations are constrained to a surface within the detector.</p><p>The free (global) track parameters, &#119892;, are 8-dimensional and represented as: &#119892; = (&#119909;, &#119910;, &#119911;, &#119905;, &#119889; &#119909; , &#119889; &#119910; , &#119889; &#119911; , &#119902;&#8725;&#119901;).</p><p>(</p><p>The first four parameters are the space-time coordinates (&#119909;, &#119910; and &#119911; for position and &#119905; for time) of the track state, &#119889; &#119909; , &#119889; &#119910; and &#119889; &#119911; represent the direction of the track at that point, and &#119902;&#8725;&#119901; is the ratio of the charge, &#119902;, and the momentum, &#119901;. <ref type="foot">3</ref> The &#119889; &#119909; , &#119889; &#119910; and &#119889; &#119911; are constrained by &#119889; 2 &#119909; + &#119889; 2 &#119910; + &#119889; 2 &#119911; = 1. The local track parameters, &#119897;, are 6-dimensional and represented as:</p><p>(</p><p>Here, &#119897;&#119900;&#119888; 0 and &#119897;&#119900;&#119888; 1 are the coordinates of the track in the local coordinate frame of a reference surface, the &#120601; and &#120579; are the azimuthal and polar angles, respectively, describing the track direction in the global coordinate frame, and the &#119902;&#8725;&#119901; and &#119905; are the same as the global track parameters. The reference surfaces can include different types and shapes, including cylindrical and planar surfaces, and surfaces describing straw-like detector or virtual lines. An example of a line surface is the perigee surface used to describe the track parameters near the vertex. <ref type="foot">4</ref> The track parameters on a perigee surface are called the perigee track parameters and, in this case, the &#119897;&#119900;&#119888; 0 and &#119897;&#119900;&#119888; 1 are often denoted as &#119889; 0 and &#119911; 0 , which are the transverse and longitudinal impact parameters. The perigee parameters are often used when the track is described by a single set of parameters because they are the parameters at its estimated point of production, which is typically of most relevance for physics analyses. See Ref. <ref type="bibr">[16]</ref>for more details of the track parametrization.</p><p>In the ACTS Kalman filtering algorithm, the track state is represented by the local track parameters expressed at measurement planes. Measurements are represented by a subset of the local track parameters, as explained in Section 4.3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Track fitting with an extended Kalman filter</head><p>This section introduces EKF-based track fitting using the mathematical prescription following Ref. <ref type="bibr">[3]</ref>.</p><p>Track fitting with a Kalman filter requires evolving the track state and its associated covariance matrix, as it is propagated through a discrete dynamical system. If we take the seed of the track fit as the first track state with index 0 and that there are &#119870; track states in total, this can be described by a track state propagation model:</p><p>Here,</p><p>&#8226; &#119909; &#119896;-1 and &#119909; &#119896; are the track state vector at the states &#119896; -1 and &#119896;, respectively. &#8226; &#120578; &#119896;-1 is the vector representing the noise when propagating from state &#119896; -1 to state &#119896;, i.e. process noise. It can be decomposed into two terms,</p><p>, where the former accounts for multiple scattering and the latter for energy loss due to ionization or radiation (in case of electrons).</p><p>&#8226; &#119891; &#119896;-1 is a function that encodes the track state propagation model from &#119896;-1 to state &#119896;, which describes the motion of the particle. It depends on the kinematics of the particle and the magnetic field.</p><p>The track state is projected onto the measurement using the measurement projection model:</p><p>Here,</p><p>&#8226; &#119910; &#119896; is the measurement vector at state &#119896;.</p><p>&#8226; &#120598; &#119896; is the measurement noise vector at state &#119896;.</p><p>&#8226; &#8462; &#119896; is the measurement projection function from track state to measurement, which depends on the kinematics of the particle and detector geometry.</p><p>Both the track state propagation model, &#119891; , and the measurement projection model, &#8462;, are often non-linear functions. The process noise &#120578; &#119898;  &#119896;-1 and measurement noise &#120598; &#119896; are assumed to be Gaussian distributions with zero means, and variances &#119876; &#119898; &#119896; and &#119881; &#119896; respectively. The process noise &#120578; &#119890; &#119896;-1 is also assumed to follow a Gaussian distribution with non-zero mean (since it will act to reduce the momentum) and variance &#119876; &#119890; &#119896; , even though it is known that it does not typically follow a Gaussian distribution.</p><p>As nuclear and particle experiments often have inhomogeneous magnetic fields, the &#119891; &#119896;-1 is evaluated to obtain &#119909; &#119896; using the Runge-Kutta method <ref type="bibr">[21]</ref> by numerically solving the second-order differential equations describing charged particles moving through magnetic fields. For example, the ATLAS experiment uses an adaptive Runge-Kutta-Nystr&#246;m approach <ref type="bibr">[22]</ref>, which adapts the step size to minimize computational costs while ensuring that the estimation error remains below a set threshold. The &#119910; &#119896; is obtained analytically by calculating the intersection of the track with the detector plane, which is described by &#8462; &#119896; .</p><p>The covariance of &#119909; &#119896; and &#119910; &#119896; are obtained based on the first-order derivative of the track state at &#119896; with respect to the track state at &#119896; -1, &#119865; &#119896;-1 , and that of the measurement at &#119896; with respect to the track state at &#119896;, &#119867; &#119896; , respectively, as follows:</p><p>where the &#119865; &#119896;-1 is obtained numerically using the Runge-Kutta method and the &#119867; &#119896; is calculated analytically using &#8462; &#119896; and &#119909; &#119896; .</p><p>The EKF has three steps: the prediction of the track state at state &#119896; based on previous &#119896; -1 measurements, the filtering of predicted track state at state &#119896; taking into account the measurement at state &#119896;, and the smoothing of the filtered track state with all measurements taken into account. A full description can be found in Ref. <ref type="bibr">[3]</ref>. Here we briefly outline the formulae where the &#119896; runs from 1 to K-1 used to update the track state vector, &#119909; and its covariance, &#119862;.</p><p>&#8226; Prediction:</p><p>where the upper index &#119896; -1 indicates the estimate prior to the filtering, i.e. with only the previous &#119896; -1 measurements taken into account. The &#119865; &#119896;-1 is evaluated at this stage using the filtered track state at &#119896; -1 and the predicted track state at state &#119896;. &#8226; Filtering:</p><p>where &#119898; &#119896; is the measurement on state &#119896;, and the &#119870; &#119896; is the Kalman gain matrix:</p><p>&#8226; Smoothing:</p><p>where the upper index &#119899; indicates the smoothed estimation with all &#119899; measurements taken into account, and the &#119860; &#119896; is the smoother gain matrix:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">The non-linear Kalman filter</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Non-linear effects in track reconstruction</head><p>A typical tracking detector at a particle collider is a cylindrical detector with concentric cylindrical layers around the collision point, which are oriented parallel to the beam direction, and disc layers on either side, which are oriented normal to the beam direction. This guarantees almost hermetic coverage of the phase space of the particles produced in the collisions, while complying with mechanical constraints and minimizing detector material. However, when a track from the beam interaction point intersects with a detector module, the dependence of the intersection position on the incident track direction is non-linear. Fig. <ref type="figure">1</ref> demonstrates an example of such non-linear effects using a straight line track model, i.e. the track direction is the same between state &#119896; -1 and &#119896;. A track propagates through a simplified detector (shown in Fig. <ref type="figure">2</ref>) consisting of two parallel detector planes oriented normal to the beam direction without the presence of magnetic field and material effects. As a simple assumption, at state &#119896; -1, the track parameters &#120601; and &#120579;, i.e. the azimuthal angle &#120601; and polar angle &#120579; of the track direction, have non-zero uncertainty while the track parameters &#119897;&#119900;&#119888; 0 and &#119897;&#119900;&#119888; 1 , i.e. the local coordinates of state in the cartesian frame of a plane (&#119897;&#119900;&#119888; 0 is along the global &#119909; axis and &#119897;&#119900;&#119888; 1 is along the global &#119910; axis), have zero uncertainty. The dependence of &#119897;&#119900;&#119888; 0 and &#119897;&#119900;&#119888; 1 at state &#119896; on the &#120601; and &#120579; at state &#119896; can be calculated analytically and is shown in Fig. <ref type="figure">1</ref>. In this example, the dependence is closest to linear when &#120601; and &#120579; are zero, which corresponds to the case when the track intersects the detector module at a perpendicular angle, or zero incidence angle, and become increasingly non-linear as the absolute angles increase. This effect is particularly significant for the &#120579;, which is highly correlated with the track incidence angle. As we will show, these non-linear effects can be addressed by the NLKF.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">NLKF formalism</head><p>The NLKF calculates the propagated or projected track state and covariance using a set of sample points around the mean of the track state being propagated or projected, with each point assigned a weight. This is analogous to the random sampling of a distribution function in Monte Carlo simulation, the method typically used to generate events corresponding to different physics processes, but using a set of representative sample points. For an &#119873;-dimensional track state vector &#119909; &#119896;-1 with covariance &#119862; &#119896;-1 at state &#119896; -1, 2&#119873; + 1 sample points are considered <ref type="bibr">[14,</ref><ref type="bibr">15]</ref>. These comprise the nominal track state vector plus 2&#119873; vectors obtained by varying the nominal track state vector along the direction of the eigenvectors of the covariance matrix. The magnitudes of the variations are chosen according to the eigenvalues of the covariance matrix. The eigenvectors and eigenvalues of the covariance matrix are obtained via Singular Value Decomposition (SVD) <ref type="bibr">[23]</ref>. &#119862; &#119896;-1 is a real symmetric matrix and therefore can be expressed through SVD as,</p><p>where &#119880; &#119896;-1 is a unitary matrix whose columns are the eigenvectors of &#119862; &#119896;-1 , and &#119878; &#119896;-1 is a diagonal matrix whose non-zero diagonal elements are the corresponding eigenvalues of &#119862; &#119896;-1 . Denoting the &#119894;th column of &#119880; &#119896;-1 as &#119906; &#119894; &#119896;-1 and the &#119894;th diagonal element of &#119878; &#119896;-1 as &#119904; &#119894; &#119896;-1 , we define &#119873; sets of orthogonal shifting vectors &#120575; &#119894; &#119896;-1 :</p><p>where &#8730; &#119904; &#119894; &#119896;-1 is the magnitude of the variation in the direction of &#119906; &#119894; &#119896;-1 . The 2&#119873; + 1 sample points for &#119909; &#119896;-1 are:</p><p>where &#120574; is a scaling parameter defined as,</p><p>and &#120572; is tunable parameter used to control the deviation of the sample point from the nominal point, in the range 0 &lt; &#120572; &#8804; 1.</p><p>The sample points for &#119909; &#119896;-1 can be propagated to state &#119896; using the track model in Eq. ( <ref type="formula">3</ref>),</p><p>and projected to a measurement point at state &#119896; using the measurement model in Eq. ( <ref type="formula">4</ref>),</p><p>The mean, &#7929;&#119896; , and covariance, &#119875; &#119896; , of the projected track state are calculated as</p><p>and the covariance between the track state and the measurement, &#119879; &#119896; , is calculated as</p><p>In Eqs. ( <ref type="formula">17</ref>) and ( <ref type="formula">18</ref>), the weights &#119908; (&#119894;) &#119898; and &#119908; (&#119894;) &#119888; are defined as</p><p>where &#120573; is a non-negative weighting parameter used to tune the weight of the Y (0) when calculating &#119875; &#119896; . A value of &#120573; = 2 as suggested in Ref. <ref type="bibr">[24]</ref> is used. The Kalman gain is calculated as</p><p>and used, with the mean and covariance, to update the track state and its covariance in the Kalman filtering step as follows</p><p>(21)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.">Implementation of NLKF in ACTS</head><p>In this paper, we apply only the non-linear corrections during the projection of the track state to the measurement point. In such cases, the propagation from state &#119896; -1 to state &#119896; is performed using the adaptive Runge-Kutta method in the presence of a magnetic field as in EKF and the sample points considered for &#119909; &#119896; are passed to &#8462; &#119896; in Eq. ( <ref type="formula">16</ref>) to obtain Y (&#119894;) &#119896; . As described in Section 2, a measurement is described by a subset of the local track parameters in ACTS. Therefore, projecting a track state to a measurement is equivalent to transforming the global track parameters to the local track parameters, where the track state is constrained to the measurement plane, and projecting the local track parameters to the measurement with an identity projection matrix. The track state is represented by global track parameters during its propagation between detector planes and transformed to local track parameters at the detector plane where a material effect needs to be taken into account or a measurement is present. In the latter case, the measurement is used to update the predicted track state &#119909; &#119896;-1 &#119896; and its covariance &#119862; &#119896;-1   &#119896;   represented by the local track parameters at state &#119896; using Kalman filtering formulae.</p><p>If the incidence angle of track on a detector plane is larger than a certain value, the transformation of a single set of global track parameters at state &#119896; to local track parameters at state &#119896; is replaced by the transformation of the 17 sets, <ref type="foot">5</ref> of global track parameters at state &#119896; to the local track parameters at state &#119896;. Eq. ( <ref type="formula">16</ref>) is used and the corrected local track parameters (&#119909; &#119896;-1,c &#119896; , the superscript c here and thereafter denotes 'corrected') and associated covariance (&#119862; &#119896;-1,c &#119896; ) are calculated according to Eq. ( <ref type="formula">17</ref>). In ACTS, the covariance in Eq. ( <ref type="formula">18</ref>) between the local track parameters and the measurement is part of the covariance matrix of the local track parameters, i.e.</p><p>and</p><p>The Kalman gain formulae for the EKF and NLKF are identical:</p><p>and Eq. ( <ref type="formula">21</ref>) for Kalman filtering becomes</p><p>The updated track state at state &#119896; with track position constrained to the measurement plane is then represented as global track parameters before being propagated to the next track state at &#119896; + 1 using the adaptive Runge-Kutta method. The state vector of the global track parameters is transformed from the state vector of the local track parameters representing the track state analytically. The state covariance is transformed using the first-order derivative of the representing global track parameters at state &#119896; with respect to the representing local track parameters at state &#119896;.</p><p>The smoothing formulae for NLKF are:</p><p>where</p><p>As in the formulae for EKF, the index &#119896; runs from 1 to &#119870; -1 in the above formulae.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.">Comparison of the EKF and NLKF for track fitting</head><p>Fig. <ref type="figure">2</ref> illustrates the impact of the non-linear effects on track parameter propagation and Kalman filtering procedure using the configuration shown in the top left panel. With a straight track model and no material effects, the track direction at plane &#119896; has the same value and uncertainty as those at plane &#119896; -1. The uncertainty of the intersection of the track at plane &#119896; is correlated with the uncertainty of the track direction at plane &#119896;. Given the uncertainty of the track direction, the 2-dimensional distribution of the local coordinates of the intersection of the track on plane &#119896; obtained using 10,000 sampled tracks is shown in the top right panel. It can be seen that the distribution of &#119897;&#119900;&#119888; 0 , shown in the bottom left panel, is non-Gaussian with positive skew. Both EKF and NLKF use Gaussian functions to model the distribution. The mean and width of the Gaussian functions differ between EKF and NLKF. With NLKF, the mean and width are closer to the mean and Root-Mean-Square (RMS) of the MC sample.</p><p>Such non-linear effects will impact the Kalman filtering procedure. In particular, the Kalman gain matrix in Eq. ( <ref type="formula">8</ref>) tends to either over-or under-estimate the polar angle of the track. This effect is demonstrated in the bottom right panel of Fig. <ref type="figure">2</ref> showing the pull distribution of the filtered polar angle. The pull value for a track parameter &#119907; is defined as,</p><p>Here &#119907; fit and &#120590; &#119907; are the estimated value and uncertainty of the track parameter &#119907; respectively, and &#119907; truth is the true simulated value of the &#119907;. If both the values and uncertainties of the track parameters are estimated correctly, the pull distributions are expected to follow normal distributions. The widths of the distributions are estimated using robust RMS evaluations rather than Gaussian fits. The mean and the RMS values of the pulls are compared between the EKF and the NLKF. For the EKF, the filtered polar angles are biased to larger values than their true values with a large RMS. For the NLKF, the mean of the polar angles is biased to negative values, but the RMS is significantly improved. The impact of the non-linear effects on the azimuthal angle is smaller. Both implementations have mean at zero and RMS at one.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Performance studies</head><p>The performance of the NLKF as implemented in Section 4.3 is evaluated using the Open Data Detector (ODD) <ref type="bibr">[25]</ref>. The layout of the ODD is shown in Fig. <ref type="figure">3</ref>. It consists of a pixel detector and two strip detectors with different intrinsic resolutions and uses a realistic material model using the DD4hep <ref type="bibr">[26]</ref> detector description tool. The ODD is immersed in a solenoidal magnetic field of 2 Tesla centred on the beam line.</p><p>A sample of 1 million simulated muons is used to study the performance, as muons are insensitive to the detector material and because the most probable use of the NLKF would be for high-precision track reconstruction applications. The muons are generated with transverse momentum 6 &#119901; &#119879; uniformly distributed in the range of 0.4 &lt; &#119901; &#119879; &lt; 100 GeV and pseudorapidity &#120578; uniformly distributed in the range of |&#120578;| &lt; 3.0. The range in &#119901; &#119879; allows us to study the impact of multiple scattering, which varies with &#119901; &#119879; and the range in &#120578; allows us to study muons that intersect the detector modules at a range of angles. The intersection points of the muons with the detectors, the simulated hits, are generated with the Fatras fast simulation engine within the ACTS toolkit. The input measurements to the Kalman filter algorithm are created by applying Gaussian smearing to the positions of the simulated hits to emulate the impact of detector resolution. One-and two-dimensional measurements in the local coordinate frames of the 6 Transverse momentum is the momentum in the transverse &#119909;-&#119910; plane,  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Table 2</head><p>The parameters used to construct the width of the Gaussian for smearing the generated vertex, momentum and &#119905; to obtain the seed of the track fit.</p><p>Track parameters Smearing parameters</p><p>detector planes are created in the strip and pixel detectors of ODD, respectively, by smearing with Gaussian distributions with zero mean and different width (&#120590;) as in Table <ref type="table">1</ref>.</p><p>The reconstructed seed of the track fit is emulated by smearing the vertex position, momentum and time of the generated muons using Gaussian distributions with zero mean and either momentumdependent or constant width. The production vertex is smeared to obtain the local coordinates &#119889; 0 and &#119911; 0 using Gaussian distributions with &#120590; = &#119886; 0 + &#119886; 1 &#119890; -&#119886; 2 &#119901; &#119879; , &#119902;&#8725;&#119901; is smeared using a Gaussian distribution with &#120590; = &#119886; 0 &#8725;&#119901;, and &#120601;, &#120579; and &#119905; are smeared using a Gaussian distributions with constant &#120590;. Table <ref type="table">2</ref> provides the parameters used to construct the width of the Gaussian used for the smearing, which are of similar order to the resolution of the tracking detectors in current nuclear and particle physics experiments.</p><p>The physics and the computational performance of the EKF and NLKF are studied. The non-linear correction for the NLKF is only performed when the incidence angle of a track with a detector plane is larger than 0.1 rad, a value chosen to balance between improved physics performance in the most relevant cases and increased computation time when the correction is applied. With such a threshold, the fraction of track states with the non-linear correction applied for the tracks in the region |&#120578;| &lt; 1 is about 55% and increases to approximately 95% for the tracks in the region 2.5 &lt; |&#120578;| &lt; 3.0. The NLKF performance is found to be insensitive to the tuning parameter &#120572; so a fixed value of &#120572; = 0.1 is used. The mean (top) and RMS (bottom) of the residual of fitted perigee track parameters &#119889; 0 (left) and &#119911; 0 (right) parameterized as a function of simulated particle &#120578; (20 &lt; &#119901; &#119879; &lt; 100 GeV) for the ODD with the presence of a solenoidal magnetic field of 2 T and material effects. The blue dots and orange triangles show the results obtained using EKF and NLKF, respectively. The dashed horizontal lines in the upper panel denote the expected mean of the residuals. The mean and RMS are calculated using the residual in the range of [-0.5, 0.5] mm.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">Track parameter estimation</head><p>The mean and RMS of the residuals, defined as &#119907; fit -&#119907; truth , and the pulls, defined in Eq. ( <ref type="formula">28</ref>), of the perigee track parameters obtained by propagating the smoothed track parameters at the first measurement plane to the perigee plane are used to evaluate the performance. The pull depends on the central value of the track parameter and its uncertainty, but the residual depends only on the central value. Ideally, a pull would have a mean of zero and an RMS of one and the residuals would have means of zero and an RMS corresponding to the detector resolution.</p><p>The mean and the RMS of the residuals and pulls are studied in bins as a function of &#120578;. The degree of non-linear effects, the number of detector layers and the amount of material that a charged particle passes through vary with &#120578;. The impact of the non-linear effects on &#119905; is negligible and therefore only the RMS of its pull as a function of &#120578; is shown.</p><p>The mean of the residuals of the impact parameters, &#119889; 0 and &#119911; 0 , as a function of &#120578; for simulated particles with &#119901; &#119879; &gt; 20 GeV are shown in the upper panel of Fig. <ref type="figure">4</ref>. The mean estimated using the EKF is biased from zero at higher |&#120578;| bins due to non-linear effects in this region. No such biases are observed when the NLKF is used. The mean of the pulls show similar biases to the residual means of the perigee track parameters.</p><p>The resolution of the impact parameters as a function of &#120578; for simulated particles with &#119901; &#119879; &gt; 20 GeV is shown in the lower panel of Fig. <ref type="figure">4</ref>. The resolution gets worse in the higher |&#120578;| bins and the effect is most significant for the EKF. The NLKF improves the resolution by up to 80% at higher |&#120578;| bins compared to the EKF, given the resolution of the seed track parameters<ref type="foot">foot_4</ref> in Table <ref type="table">2</ref>. All track parameters are studied, and similar improvements for &#120601; and &#120579; are observed, while there is no improvement in the resolution of &#119902;&#8725;&#119901;. The impact of non-linear effects depends on the resolution of the track parameters and hence, the improvement of NLKF with respect to EKF also depends on this, i.e. the worse the resolution of the initial track parameter estimate, the greater the improvement. For example, if the width of the Gaussian used to smear the &#120601; and &#120579; is changed from 1 &#8226; to 0.5 &#8226; and 2 &#8226; , the improvement of the residual for &#119889; 0 in the region 1.5 &lt; |&#120578;| &lt; 2.5 changes from 79% to 58% and 84%, respectively. Fig. <ref type="figure">5</ref> shows the RMS of the pulls of the perigee track parameters as a function of &#120578; for simulated particles with &#119901; &#119879; &gt; 20 GeV. The parameter &#119905; is unaffected by the non-linear effects and hence the RMS of its pulls is approximately one. Non-linear effects cause the RMS to deviate from one at higher |&#120578;| for &#119889; 0 , &#119911; 0 , &#120601;, &#120579; and &#119902;&#8725;&#119901; when using the EKF. The deviation is largest for &#119911; 0 and &#120579; where the RMS can reach up to 2.2 and smallest for &#119902;&#8725;&#119901;. The deviation is significantly reduced using the NLKF, i.e. the RMS for all track parameters is below 1.2 in the entire &#120578; range. The NLKF improves the RMS of the pull for &#119889; 0 in the 1.5 &lt; |&#120578;| &lt; 2.5 by 55%, which becomes 45% and 58% if the width of the Gaussian used to smear the &#120601; and &#120579; is changed to 0.5 &#8226; and 2 &#8226; . Fig. <ref type="figure">6</ref> shows the RMS of the pulls of the impact parameters for simulated particles in the range of 1.0 &lt; |&#120578;| &lt; 2.5 as a function of &#119901; &#119879; . This &#120578; range was selected because non-linear effects are significant for these values. The RMS of the pulls for &#119889; 0 is smaller for lower &#119901; &#119879; tracks using the EKF. The NLKF achieves significantly better performance than the EKF for &#119911; 0 . For &#119889; 0 , the NLKF improves the RMS of the pulls for tracks with &#119901; &#119879; &gt; 3 GeV and it corrects the bias of the mean of residual and pull for tracks in all values of &#119901; &#119879; . The performance differences observed between the NLKF and the EKF for &#120601; are similar to &#119889; 0 and for &#120579; are similar to &#119911; 0 . This is expected due to the correlations between the pairs of track parameters. For NLKF, the dependence of the pulls on track &#119901; &#119879; is mainly driven by material effects, while for EKF, non-linear effects are dominant. As the material effects, modelled using Gaussian distributions, are more significant at lower &#119901; &#119879; , the pull distributions of Fig. <ref type="figure">5</ref>. The RMS of the pull of fitted perigee track parameters &#119889; 0 , &#119911; 0 , &#120601;, &#120579;, &#119902;&#8725;&#119901; and &#119905; parameterized as a function of the simulated particle &#120578; (20 &lt; &#119901; &#119879; &lt; 100 GeV) for the ODD with the presence of a solenoidal magnetic field of 2 T and material effects. The blue dots and orange triangles show the results obtained using EKF and NLKF, respectively. The dashed horizontal lines denote the expected RMS of the pulls. The RMS is calculated using the pulls in the range of <ref type="bibr">[-5, 5]</ref>. Fig. <ref type="figure">6</ref>. The RMS of the pull of fitted perigee track parameters &#119889; 0 (left) and &#119911; 0 (right) parameterized as a function of simulated particle &#119901; &#119879; (1.0 &lt; |&#120578;| &lt; 2.5) for the ODD with the presence of a solenoidal magnetic field of 2 T and material effects. The blue dots and orange triangles show the results obtained using EKF and NLKF, respectively. The dashed horizontal lines denote the expected RMS of the pulls. The RMS is calculated using the pulls in the range of <ref type="bibr">[-5, 5]</ref>.</p><p>EKF become closer to Gaussians. This can result in the pull RMS of EKF being closer to 1 at lower &#119901; &#119879; .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Computational performance</head><p>Additional computational cost with the NLKF is expected due to the additional evaluation points, which are key to improving the precision. An estimate of this cost is obtained by comparing the track fitting time of the NLKF to that of the EKF as a function of &#120578; and &#119901; &#119879; . In each &#120578; or &#119901; &#119879; bin, track fitting is performed five times per sample with 1,000 tracks. The mean of the track fitting time per track from the five tests is shown as the nominal value, and the RMS is shown as the uncertainty bar. The tests are performed in a single thread using the Intel Core i7-8559U CPU @2.70 GHz processor. Fig. <ref type="figure">7</ref> shows the track fitting time in HS06 <ref type="bibr">[27]</ref> &#215; ms per track as a function of &#120578; or &#119901; &#119879; of the simulated particles with EKF and NLKF. The average fitting time per track with EKF is approximately 4.8 HS06 &#215; ms and with NLKF it increases by a factor ranging from &#8764; 1.6 in the barrel region to &#8764; 1.8 at higher &#120578;. In general, track parameter estimation is not the most timing consuming step during track reconstruction, therefore this can be expected to have a negligible impact on the total time for track reconstruction in most applications.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Conclusion</head><p>The reconstruction of charged particle trajectories is a challenging computational task for nuclear and particle physics experiments. The Kalman Filter algorithm is currently widely used due to its excellent performance, however, it is limited by its assumption of linear models for the system and measurements as well as Gaussian distributions for the noise. We have applied the principle of an Unscented Kalman filter to implement a Non-linear Kalman filter for charged particle reconstruction, which uses a set of discretely sampled points to account for non-linear effects during the projection of the track parameters to the measurement.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_0"><p>i.e. Fatras is significantly simplified with respect to a physics-based simulation such as Geant4<ref type="bibr">[20]</ref>, resulting in orders-of-magnitude faster processing times.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_1"><p>Following the convention of the ATLAS experiment, we use a right-handed Cartesian coordinate system with its origin at the nominal interaction point (IP) in the centre of the detector. The &#119911;-axis is along the beam pipe, and the &#119909;axis points from the IP to the centre of the collider ring. Cylindrical coordinates (&#119903;, &#120601;) are used in the transverse plane, &#120601; &#8712; [-&#120587;, &#120587;) being the azimuthal angle defined in the transverse &#119909;-&#119910; plane around the beam pipe. The rapidity is defined as &#119910; = (1&#8725;2) ln[(&#119864; + &#119901; &#119911; )&#8725;(&#119864; -&#119901; &#119911; )], while the pseudorapidity is defined in terms of the polar angle &#120579; which is measured from the positive &#119911;-axis in an interval of [0, &#120587;] as &#120578; = -ln tan(&#120579;&#8725;2). &#120578; = +&#8734; corresponds to the direction of the beam.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_2"><p>The vertex is assumed to be the common point where particles from a single interaction or decay originated. ACTS also includes algorithms for reconstructing the positions of such vertices from a set of input tracks.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="5" xml:id="foot_3"><p>As discussed in Section 4.2 the NLKF uses 2&#119873; + 1 samples points and &#119873; is 8 for the global track parameters.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="7" xml:id="foot_4"><p>As discussed earlier, results are shown for a scenario consistent with current experiments.</p></note>
		</body>
		</text>
</TEI>
