Alignment of the CLAS12 central hybrid tracker with a Kalman Filter
Abstract
Several factors can contribute to the difficulty of aligning the sensors of tracking detectors, including a large number of modules, multiple types of detector technologies, and non-linear strip patterns on the sensors. All three of these factors apply to the CLAS12 CVT, which is a hybrid detector consisting of planar silicon sensors with non-parallel strips, and cylindrical micromegas sensors with longitudinal and arc-shaped strips located within a 5 T superconducting solenoid. To align this detector, we used the Kalman Alignment Algorithm, which accounts for correlations between the alignment parameters without requiring the time-consuming inversion of large matrices. This is the first time that this algorithm has been adapted for use with hybrid technologies, non-parallel strips, and curved sensors. We present the results for the first alignment of the CLAS12 CVT using straight tracks from cosmic rays and from a target with the magnetic field turned off. After running this procedure, we achieved alignment at the level of 10 m, and the widths of the residual spectra were greatly reduced. These results attest to the flexibility of this algorithm and its applicability to future use in the CLAS12 CVT and other hybrid or curved trackers, such as those proposed for the future Electron-Ion Collider.
Correspondence email address: ]miguel.arratia@ucr.edu
1 Introduction
Aligning a tracking detector is a non-trivial task, which can involve large numbers of degrees of freedom. Various algorithms have been developed for this task, such as HIP [1] and MillePede [2]. The Kalman Alignment Algorithm (KAA) [3, 4], which is based on the Kalman-filter algorithm, was first implemented to align the CMS silicon tracker [5], and we use it to align the CEBAF Large Acceptance Spectrometer (CLAS12) Central Vertex Tracker (CVT) [6, 7, 8] in Hall B at Jefferson Lab.
These algorithms take the fitted tracks, reconstructed from misaligned detector data, and a model of the dependence of the residuals of the track fit to the alignment and track parameters. Here, the residuals are the differences between the measurements along the track and the values interpolated from the track fit. The goal of these algorithms is then to find the values of the alignment parameters that minimize the sum of squares of the residuals (i.e. the track fit ).
When choosing an alignment algorithm, two important factors are the computational speed and biases in the results. One drawback to the MillePede algorithm is that it requires the inversion of a large matrix, typically of rank , where is the number of alignment parameters, which can be time-consuming. The Hits and Impact Points (HIP) algorithm is similar to MillePede, except that it forces the analogous matrix to be block-diagonal (and thus much faster to invert) at the cost of ignoring the dependence of the residuals on the track parameters (which MillePede and the KAA take into account). Because this dependence is ignored, the correlations between alignment parameters for one module and those of another module are not accounted for and can introduce biases in the results. The KAA overcomes both of these problems. Like MillePede, it corrects for the biases caused by the track-parameter dependence of the residuals, but the KAA does so in a manner that avoids the inversion of large matrices.
The results obtained with the HIP, KAA, and Millepede algorithms for the CMS inner tracker were compared to one another in Ref. [5]. The tracking-residual distributions obtained with the three algorithms were all centered within a few m of zero and had comparable RMS values to one another (about 300 m).
One important difference between CMS and the CLAS12 CVT is that the strips in the sensors in CMS are straight and parallel111The strips in one sensor of CMS are not necessarily parallel to those in an another sensor, since there is a stereo angle between nearby sensors., whereas the CLAS12 CVT has both non-parallel strips within the same sensor and sensors that are curved. These two features cause the tracking residuals to depend non-linearly on the alignment parameters. The HIP, KAA, and Millepede algorithms all approximate the relationship between these residuals and the alignment parameters as linear, causing such algorithms to converge at non-optimal values for the alignment parameters.
A solution to this issue was used for the LHCb VELO (silicon VErtex LOcator), which consists of silicon sensors with azimuthally curved and radial strips rigidly mounted on half-disks [9]. To determine the relative alignment of the radial and azimuthal sensors, they used multiple iterations of a fast, specialized algorithm that is similar to HIP, and refitted the tracks between iterations with the alignment parameters obtained from the previous iteration [10]. From this, they obtained an alignment precision on the level of 1.3 m between the radial and azimuthal sensors of each half disk.
In this work, we use the KAA to align the CLAS12 CVT using a multiple-iteration approach similar to Ref. [10]. The CLAS12 CVT presents two new challenges for the KAA that were not applicable when it was first implemented for CMS: the CVT is a hybrid of two different types of sensor technology, silicon and micromegas, while CMS is a fully silicon tracker, and the CVT includes curved sensors, while the sensors at CMS are flat. Thus, the alignment of the CVT using the KAA is a test of the versatility and flexibility of the algorithm for diverse detectors.
2 The CLAS12 Central Vertex Tracker
The CLAS12 CVT, which covers the polar-angle222Throughout this paper, the lab-frame coordinates are defined as follows: is along the beam direction, is the up direction, and is to the left when looking at the detector from upstream. range , is shown in Fig. 1. It consists of three regions of double-sided Silicon Vertex Tracker (SVT) modules [7] and six layers of the Barrel Micromegas Tracker (BMT) [8].

The SVT regions are arranged in concentric polygons with 10, 14, and 18 sectors in the inner, middle, and outer pairs of layers333Since the pairs of layers have different numbers of modules, the sectors in one double layer do not line up with those in the other double layers, with the exception of the top and bottom sector in each double layer.. The geometry of the SVT is summarized in Table 1. Within each pair of layers, each sector is a separate module, consisting of one sensor on each of the two layers, separated radially by 3.162 mm. The sensor consists of three daisy-chained silicon microstrip detectors and has 256 strips. Each detector is 320 m thick, 42.00 mm wide, and 111.63 mm long. A rendering of the geometry of the SVT module is shown in Fig. 2.
At the upstream end of the sensor planes, where the strips connect to the readout, they have 156 m pitch, but they fan out, with the angle of the strip relative to longitudinal direction of the sensor increasing linearly from 0∘ at the first strip to 3∘ at the last strip. The two sensors in each module are mounted back-to-back, so that the first strip of one sensor corresponds with the last strip of the other and vice versa. This geometry allows measurements of the longitudinal hit positions due to the 3∘ stereo angle between the two sensors on each module.


Layer | Radius (mm) | Pitch (m) | Sectors |
---|---|---|---|
1 | 65.29 | 156-224 | 10 |
2 | 68.77 | 156-224 | 10 |
3 | 92.89 | 156-224 | 14 |
4 | 96.37 | 156-224 | 14 |
5 | 120.32 | 156-224 | 18 |
6 | 123.80 | 156-224 | 18 |
The BMT is divided azimuthally into three sectors, each of which consists of six cylindrical arc layers. There are two types of sensors: Z-type (layers 2, 3, and 5), in which the strips are (nominally) parallel to the beamline and measure the azimuthal position of the particle’s trajectory, and C-type (layers 1, 4, and 6) in which the strips curve azimuthally around the beamline and measure the longitudinal position of the particle’s trajectory (which is also used to measure the polar angle of the trajectory). Throughout this paper, we refer to the Z layers as the BMTZ and the C layers as the BMTC. The radii, pitches, and strip orientations for each layer are given in Table 2.
Layer | Radius (mm) | Pitch (m) | Strip orientation |
---|---|---|---|
1 | 146.15 | 330–860 | C |
2 | 161.15 | 487 | Z |
3 | 176.15 | 536 | Z |
4 | 191.15 | 340–770 | C |
5 | 206.15 | 529 | Z |
6 | 221.15 | 330–670 | C |
3 Methodology
We used the KAA, which is described in detail in Refs. [3, 4]. Here we present a summary of the main features of the algorithm and detail the specific implementation to the CLAS12 case. We note here that our method relies on straight tracks to obtain the alignment parameters and was validated with both straight and curved tracks.
A Kalman filter is an algorithm that uses an ordered sequence of measurements and produces estimates of unknown parameters that converge upon more precise values than those obtained from a single measurement. Like any other Kalman-filter algorithm, the KAA begins with an estimate of the parameters to be fitted and a matrix of the covariances among these parameters. It then loops through the measurements in the input sample and updates the values of the parameters and their covariance matrix after each measurement. In the case of the KAA, the parameters to be fitted are the alignment parameters, and the measurements are fitted tracks and the tracking residuals thereof444This is analogous to the Kalman-filter track-fitting algorithm, where the parameters of a single track are fitted, and the individual measurements are the hits and/or clusters along the track.. As more tracks are processed, the uncertainties on the alignment parameters (that is, the square roots of the diagonal elements of the covariance matrix) decrease, and the alignment parameters converge to more precise values.
In the KAA, the deviations of each sensor and module from their nominal positions are represented by the column vector . The KAA requires a preliminary estimate of and its covariance matrix , and a set of several matrices for each track. These matrices, which are summarized below, model the track residuals for each measurement in the track, their dependence on the alignment and track parameters, and the expected resolution on these residuals and are summarized below. The alignment values and its covariance matrix are updated sequentially for every track in the sample of input events.
Straight-line tracks in the CVT are represented by their direction, , and a point on the line, . Unless otherwise noted, all coordinates are given in the lab frame. We use the following track parameters: the distance of closest approach of the track to the beamline, , the azimuthal angle of the track direction, , the longitudinal position of the track’s point of closest approach, , and the tangent of the track’s dip angle, . Expressed in terms of these parameters, and are:
(1) |
and
(2) |
where is the beam position.
In the CVT, each measurement corresponds to a contiguous cluster of hits in one of the SVT or BMT layers. We represented these clusters as line segments connecting the centroids555weighted by the reconstructed energy deposited in the strip of the endpoints of the strips on one end of the sensor to the centroid of the endpoints of the strips on the other end. Notice the direction of each line segment in the lab frame is not necessarily parallel to a particular strip. We defined the vector to be the coordinates (in the lab frame) of a point on this line segment (arbitrarily, we chose the midpoint), and to be the direction of this line, i.e., the direction of the lines connecting the centroids of the endpoints of the strips on each end of the sensor666For the SVT, which has non-parallel strips, this is the weighted average of the directions of the strips in the cluster. We also defined the unit vector as the unit normal vector to the sensor, and , which we call the “measurement direction”, as shown in Fig. 3.
For the BMTC, each strip is an arc, therefore we analogously constructed a “centroid” arc using the centroids of two endpoints and centers of the individual strip’s arcs. We then extrapolated the track to the BMTC layer, and find the line that is tangent to the arc at the same azimuthal position as the extrapolation point (right panel of Fig. 3). The vectors and are then defined as a point on this line (we chose the tangent point) and the direction of the line respectively. The measurement direction, , is defined to be along the BMTC layer’s cylindrical axis, and is normal to the sensor at the extrapolated azimuthal position.



Using these representations of the track and its clusters, we then determined the matrices needed for the KAA’s input. The first two matrices are a column vector of the 1D measurements along the track, , and another column vector of the expected values for each measurement based on a track fit performed in reconstruction, which is made using the the Kalman Filter algorithm [11]. The tracking-residuals column vector, , is defined as their difference, .
We calculated the element of the column vectors , , and corresponding to the measurement along the track using the following formulas:
(3) |
(4) |
and
(5) | ||||
(6) | ||||
(7) |
where
(8) |
Eq. 7 is equivalent to the distance along the measurement direction, , between the centroid line of the cluster of hits on the sensor and the extrapolated position where the track intersects the sensor.
The next matrix in the input, , represents the stochastic part of the measurement. The elements of can be expressed as the expectation value of the product of the residuals for two (not necessarily distinct) measurements in a track,
(9) |
where and are the indices of the two measurements within the track.
In models where the residuals in one sensor are uncorrelated with those in the other sensors (as is assumed in this work), this matrix is diagonal, where each element is the square of the resolution for the corresponding measurement in the track. We used the spacial resolutions that are calculated in the CLAS12 reconstruction package [12]. For the SVT, where the strips get wider further downstream, the width is calculated at the longitudinal position of the intersection of the clusters in a stereo pair.
The dependence of the residuals on the alignment parameters and on the track parameters are modeled linearly by the alignment-derivative matrix, , and the track-derivative matrix . The elements of are defined by
(10) |
where is the residual of the measurement in the track and is the alignment parameter. In this work, we assume that every module is a rigid body, and therefore consider only rotation and translation, but not deformations within any module. For three rotation variables and three translation variables per module, has dimension , where is the number of measurements (clusters) in the track, and is the total number of modules to be aligned.
The elements of are likewise defined as
(11) |
where is the residual of the measurement in the track and is the track parameter. Since four parameters define a straight track, has dimension .
In our implementation, the elements of the alignment-derivative matrix, , are
(12) |
and
(13) |
The and vectors represent the groups of indices corresponding to the translation and rotation parameters of the module which the measurement in the track takes place in.
The elements of the track-derivative matrix, , are
(14) | ||||
(15) | ||||
(16) | ||||
(17) |
Equation 12 was obtained by taking the derivative of the formula for the residuals (Eq. 7) with respect to . To obtain Eq. 13, we took the derivative of Eq. 7 with respect to an infinitesimal rotation of the sensor: , and likewise for , , and . The track is not rotated, so the vectors and are not rotated.
Eqs. 14-17 were obtained by taking the derivative of Eq. 7 with respect to the track parameters , , , and , using the definitions of and in Eqs. 1 and 2.
The degrees of freedom corresponding to the matrix elements of and are illustrated in Figs. 4, 5, and 6 for the SVT, BMTZ, and BMTC, respectively.






























Following Refs. [3, 4], KAA loops through all of the tracks, and updates and using Eqs. 18-21 below (the derivations of these equations are beyond the scope of this article, and can be found in Refs. [3, 4]):
(18) |
and
(19) |
where
(20) |
and
(21) |
and is the identity matrix of the same dimensions as . The matrix can be interpreted as sum of the covariance of the residuals due to measurement uncertainty and the covariance due to the alignment uncertainty. can be interpreted as a projection of the inverse of such that , in order to remove bias.
For some types of detector geometries, including that of the CVT, the residuals may depend non-linearly on the alignment parameters and/or the track parameters. Such non-linearity can lead to a systematic bias in the alignment parameters obtained by the KAA. We found that multiple iterations of the KAA, alternating with reiterations of the event reconstruction with the updated alignment parameters, are necessary in order to converge on a non-biased set of alignment parameters. This differs from the use of KAA in CMS, where the exclusive use of parallel strips and planar sensors cause the residuals to depend linearly on the alignment parameters. For CMS, only a single pass of the KAA was necessary [5].
4 Datasets
We used two special calibration runs taken in spring, 2019 during an experiment with a 10.6 GeV electron beam on a 5 cm liquid-deuterium target. The first run was a “cosmic run”, which was taken by turning off the beam and the spectrometer’s magnetic field, and triggering on cosmic rays passing through the detector. The second run was in the “field-off” configuration: the electron beam was on with 5 nA, and the target was in place777For this run, the target was in the “empty” configuration, i.e. depressurized so that almost all of the scattering took place on the target windows, and only a small part of the data sample was from scattering from the residual gas. This way, the longitudinal position of the target could be determined., but the magnetic field was turned off. Example tracks from both runs are shown in Fig. 7.


For both configurations, the particles’ trajectories are (neglecting multiple scattering) straight lines, which have several advantages over using helical tracks. First, the straight tracks can be described with fewer parameters: four parameters rather than the five parameters for a helical track. Second, no corrections need to be applied due to a possible non-homogeneity of the magnetic field. Third, when the magnetic field is switched off, the Lorentz effect in the BMT is non-existent [8], so no corrections are needed for this effect. Finally, the formulas for the derivative matrices and (see Eqs. 10-17) are simpler for straight tracks than for helices.
The two data-taking configurations each have their strengths and weaknesses when used in alignment, so combining both in our sample takes advantage of both of their strengths. Since the cosmic tracks pass through both the top half of the detector and the bottom half of the detector, they are useful for aligning the two halves together. However, the cosmic tracks are less likely to pass through the SVT modules on the sides of the detector mounted vertically ( near 0∘ or 180∘) and do not provide information about the alignment of the detector relative to the beamline. The “field-off” tracks from the target have a nearly uniform distribution in , and therefore have reasonable statistics in all of the SVT sectors. Since such tracks originate from the target, they can be used later on to constrain the alignment of the detector relative to the target and the beamline.
The BMTC, in particular, cannot be aligned using only the tracks that originate from the beamline. This is because each sector of the BMTC has a global weak mode888that is, a degree of freedom that is either entirely unconstrained or very poorly constrained. in which the three BMTC layers within the sector are shifted along the beam direction by an amount proportional to their radii. However, these weak modes can be constrained by using the cosmic tracks, which do not pass through the beamline. By including both types of events in our sample, we remove the problematic weak modes and have sufficient statistics in all of the modules of the CVT.
Since the alignment procedure required rerunning the CLAS12 event reconstruction on each data set multiple times, we developed a procedure to create a sub-sample containing only the events with tracks that would be used in the KAA. First, we ran a preliminary event reconstruction using the CLAS12 reconstruction package [12] with a pre-aligned version of the detector geometry, which was found using a detector survey followed by manual ad-hoc adjustments to individual alignment parameters. We then filtered out events that did not have tracks in the CVT. Events with more than two tracks were also removed, in order to get a cleaner sample. If the angle between the reconstructed track direction and the normal of any sensor used in reconstructing the track was more than 75∘, or if the magnitude of the vector (see Eq. 8) was greater than 10, then the whole track was rejected. These cuts removed tracks that were difficult to accurately reconstruct with the detector.
To further improve the quality of our selected tracks, we required that all tracks had at least three BMTC clusters, two BMTZ clusters, and two pairs of clusters on paired sensors in the SVT. Further, we rejected tracks with very large residuals; these cuts were 7 mm for the BMTZ (which had the worst misalignments of the three subsystems before the alignment), and 2 mm for the BMTC and SVT.
5 Aligning the CLAS12 CVT
The alignment procedure was comprised of several iterations of the following steps:
-
1.
Running the CVT part of the CLAS12 reconstruction package [12] using the alignment parameters from the calibration-constants database (CCDB).
- 2.
-
3.
Adjusting the values in the CCDB based on the output of the KAA.
For the track fitting part of the reconstruction, we ignored the effects of multiple scattering, which were used in the standard variation of reconstruction. We did this in order to avoid having an uneven weighting of hits in the outer layers during the fit, which would produce artificially large (small) residuals in the outer (inner) layers.
Several cycles were necessary because the KAA operates using a linear expansion of the track residuals’ dependence on the alignment parameters, as determined using the values of the alignment parameters at the time that the events were reconstructed, while the dependence in reality is non-linear, since the CLAS12 CVT contains non-parallel strips and curved sensors. Therefore, the alignment values obtained from a single iteration may have some bias, which can be ameliorated by multiple iterations.
We used an event sample that combines the cosmic and “field-off” event samples. In order to avoid any bias from having all of the events of one of these two types at the beginning of the event sample and all of the other type at the end of the sample, we randomized the order of the events before starting the KAA.
All three subsystems were fit simultaneously, rather than fitting them individually, since this takes into account the correlations between the the alignments of the different subsystems. At the beginning of each iteration, the diagonal elements of the covariance matrix were initialized to the following values:
-
1.
for the elements corresponding to fixed parameters. This value is arbitrarily small, but non-zero in order to prevent from being singular. This includes translations in for all BMTZ sensors and rotations in for all BMTC sensors. We also chose to fix all parameters for one of the BMTZ modules (layer 5, sector 2), so that all alignment parameters would be relative to this sensor. Since global translations in would otherwise be a weak mode, we also fixed the translations in for one of the BMTC modules (layer 6, sector 2).
-
2.
For the non-fixed parameters, we used the following values: mm for translations and rad for rotations. The values of and were chosen to be bit larger than the maximum uncertainty of the precision of the preliminary survey999The survey had an estimated precision of a few hundred m (in the global and directions) to 1 mm (in global ) for the BMT internal alignment, and about 100-150 m for internal alignment of the SVT (due to the use of fiducials for every module), and 200 m for the global SVT-BMT relative alignment. Here, we define internal alignment of a detector subsystem as the relative alignment between modules in that subsystem.. It should be noted that due to the convergence of Kalman filter algorithms in general, overestimating the initial uncertainties has a very limited impact on the final results.
Since the SVT sensors are rigidly attached back-to-back with one another (see Fig. 2), the relative misalignment between paired sensors is much smaller than the alignment between different pairs or between the SVT modules and the BMT modules. We assumed that the alignments of the two sensors in a given SVT module only differ by translation transverse and longitudinal to the module (and had the same rotational alignment, as well as the same translation alignment normal to the sensors). Therefore, we introduced parameters 0.01 mm and 0.01 mm as the uncertainty in the relative longitudinal and transverse alignment within the pair. We then set the following off-diagonal elements:
-
1.
for off-diagonal elements corresponding to the rotation about a given axis for one SVT sensor, and the rotation about the same axis for the other sensor in the same SVT module.
-
2.
, for the translations in of one sensor and the translation in of the other sensor in the pair. Here, is the nominal azimuthal coordinate of the midplane of the SVT sector.
-
3.
, for the translations in of one sensor and the translation in of the other sensor in the back-to-back pair.
-
4.
, for the translations in of one sensor and the translation in of the other sensor in the back-to-back pair.
-
5.
, for the translations in of one sensor and the translation in of the same sensor.
-
6.
for the translation in in one sensor and the translation in of the other sensor in the back-to-back pair.
Further, the inclusion of these constraints modifies the diagonal elements as well. Instead of and , the diagonal elements for the SVT are
-
1.
for rotation parameters.
-
2.
for translation parameters in .
-
3.
for translation parameters in .
-
4.
for translation parameters in .
All other elements of , besides those listed above, were set to zero.
Since there are 6 parameters per module and 84 SVT sensors and 18 BMT sensors, there are total parameters. However, considering the fact that six parameters are fixed for global alignment, and four are fixed per SVT sensor pair, and one parameter is fixed for each BMT sensor, the remaining number of degrees of freedom is 420.
6 Results
To align the detector using the cosmic-ray and “field-off” data from the Spring 2019 run, we followed the procedure detailed in Sec. 5 for running the KAA with multiple iterations. The KAA provides the alignment parameters needed to correct for errors in the reconstructed particle tracks, thus minimizing the residuals of the track reconstruction when those corrections are applied.
The distributions of residuals101010As defined by Eq. 7. of the sampled tracks before (red, dashed) and after (black, solid) alignment are shown in Fig. 8 for the SVT (a), BMTZ (b), and BMTC (c). In each detector, the residual distributions after alignment are much narrower than those before the alignment. We then determined the full widths at half maximum (FWHMs) of these distributions, which are 116 m for the SVT, 432 m for the BMTZ, and 248 m for the BMTC. Similarly, we also fit the cores of the distributions to Gaussian functions and obtained values that are about half of the values of the FWHMs111111The ratio of the FWHM to the standard deviation of a distribution depends on its shape. For reference, this ratio is for a Gaussian distribution.: 57, 230 and 180 m for the SVT, BMTZ, and BMTC, respectively. These are comparable to the expected spatial resolutions of the SVT and BMT from Refs. [7] and [8], respectively. The means of these distributions are on the order of a few m, which is acceptable. The measured resolutions are consistent with the system design goal of momentum resolution below 5% for charged particles with momenta up to 1 GeV in stand-alone SVT reconstruction [7].
We calculated the for each track as
(22) |
where the number of degrees of freedom, , is the number of clusters in the track minus four (since there are four parameters for the track fit). The distributions of the values before and after alignment are shown in Fig. 8(d). As shown in Fig. 9, the average goes down from 10.0 to about 3.4 after the first iteration, and down to about 2.8 after the second. There is a very small improvement (0.1) after the third iteration. After the fourth and fifth iterations, there is no significant change to the average . Based on this assessment, there is no need to run the KAA for more than three iterations.
Since the residual distributions in Fig. 8 are the sum over the residual distributions in all of the sensors of each given type, it does not provide information about the alignment of individual sensors. Therefore, we determined the residual distributions of every sensor module individually in order to make sure that none of them had large misalignments. We then determined the means and FWHMs of these distributions, which we show in Fig. 10. After fitting, the means of the residual distributions for all sensors are within 20 m of zero, and the FWHMs are less than 170 (460) m for each of the SVT (BMT) sensors.
The alignment process can become biased to show lower performance for certain track locations due to data sampling and the specific algorithm implementation. In order to show that there is no bias in the alignment, we studied the dependence of the residuals on the track parameters. Figure 11 shows the residuals for each of the three detector types as a function of the track kinematic variables , , and . The residual distributions after the alignment procedure are centered at zero, with no significant dependence on the kinematic variables.
The KAA algorithm also yields the correlation among the alignment parameters. The correlations are given by the matrix , where each element is given by
(23) |
where is the covariance matrix. By construction, the diagonal elements of are equal to one. Many of the parameters are strongly correlated with one another, leading to off-diagonal elements of close to +1 (-1) when the correlations are strongly positive (negative). We show plots of the values of the elements of in A and discuss there in further detail which types of parameters are strongly or weakly correlated.
In order to see if the residual distributions depend on where the particles cross the sensors, we plot in B.1 the distributions of the residuals versus the extrapolated lab-frame coordinates of the hits in the detectors, both before and after the alignment. We also include the residuals versus the measured centroid strip number of the hits in each cluster. We found that the residual distributions after alignment appear to be centered at zero regardless of the position of the hit in the detector.
With an unaligned detector,the residuals in one sensor may be strongly correlated to those in another, whereas with a well-aligned detector, such correlations vanish. In B.2, we plot distributions of the residuals in one sensor versus those of another, for several different representative combinations of sensors. The 2D residual distributions show strong correlation for some of these combinations before alignment, but there is no significant correlation between the residuals after alignment.
To validate our results, we performed the same procedure on Monte-Carlo (MC) simulations, and present the results in C. In the simulations, the means of the residual distributions are within about 15 m of zero, which is comparable to the data. However, the residual distributions are considerably narrower in the simulations than in the data, and as a result the distribution in the simulation has a smaller mean than in the data. This could be due to a mis-modeling of the resolution effects in the detector, since the resolutions in the simulation were estimated using an idealized detector.
Finally, we validated that the alignment works not only for straight tracks, but also for curved tracks (with the solenoid field turned on), using the following test. Using a run configuration with 5 nA on liquid hydrogen at 10.2 GeV, we reconstructed events where electrons scattered elastically off a proton. These were selected by requiring one electron in the Forward Detector of CLAS12, with GeV121212 is defined as , where is the square of the four-momentum transfer of the reaction, is the energy transfer, and is the proton mass., i.e. in the elastic-peak region, and at least one positive track in CVT, which was assumed to be a proton. We show the distribution of the reconstructed polar angle vs the reconstructed momentum of the protons in these reactions in Fig. 12, before (left) and after (right) the alignment procedure. The expected relation between and for protons in elastic kinematics is:
(24) |
where is the mass of a proton, and =10.2 GeV is the beam energy; we show this as a curve overlaid on the distribution in Fig. 12. The vs. distribution obtained after the alignment follows the curve much more closely than the one obtained before the alignment.
7 Conclusions
We have adapted the KAA, originally developed for CMS, to align the CLAS12 CVT—a hybrid detector consisting of both silicon and micromegas tracking technologies, with both curved and non-parallel strips.
Using a sample of cosmic-ray tracks and “field-off” data, we obtained residual distributions centered within 10 m of zero for each of the silicon and micromegas sensors. In order to avoid significant bias from the non-linearity of the detector geometry, we had to run multiple iterations of the alignment, re-running the event reconstruction with the updated alignment parameters in between iterations.
Acknowledgements
We acknowledge the outstanding efforts of the staff of the Accelerator, the Nuclear Physics Division, Hall B, and the Detector Support Group at JLab that have contributed to the design, construction, installation, and operation of the CLAS12 detector. We thank Maurizio Ungaro for his contributions in the CLAS12 simulations. We also thank the CLAS Collaboration for staffing shifts and taking high quality data. This work was supported by the United States Department of Energy under JSA/DOE Contract DE-AC05-06OR23177. This work was also supported in part by the U.S. National Science Foundation, the State Committee of Science of the Republic of Armenia, the Chilean Agencia Nacional de Investigación y Desarrollo, the Italian Istituto Nazionale di Fisica Nucleare, the French Centre National de la Recherche Scientifique, the French Commissariat a l’Energie Atomique, the Scottish Universities Physics Alliance (SUPA), the United Kingdom Science and Technology Facilities Council (STFC), the National Research Foundation of Korea, the Deutsche Forschungsgemeinschaft (DFG), and the Russian Science Foundation. This research was funded in part by the French Agence Nationale de la Recherche contract no. 37. This work was supported as well by the EU Horizon 2020 Research and Innovation Program under the Marie Sklodowska-Curie Grant Agreement No. 101003460.
We also thank Martin Weber for developing a software implementation of the Kalman Alignment Algorithm and making it publicly available.
References
- [1] V. Karimaki, T. Lampen, F. P. Schilling, The HIP algorithm for track based alignment and its application to the CMS pixel detector CERN-CMS-NOTE-2006-018 (Jan. 2006).
- [2] V. Blobel, Software alignment for tracking detectors, Nucl. Instrum. Meth. A 566 (2006) 5–13. doi:10.1016/j.nima.2006.05.157.
- [3] E. Widl, R. Fruhwirth, W. Adam, A Kalman filter for track-based alignment CERN-CMS-NOTE-2006-022 (1 2006).
- [4] E. Widl, Global Alignment of the CMS Tracker, Ph.D. thesis, Vienna, Tech. U., CERN-THESIS-2008-123, CMS-TS-2008-026 (2008).
- [5] E. Widl, R. Frühwirth, Application of the Kalman Alignment Algorithm to the CMS tracker, Journal of Physics: Conference Series 219 (3) (2010) 032065. doi:10.1088/1742-6596/219/3/032065.
- [6] V. D. Burkert, et al. (CLAS Collaboration), The CLAS12 Spectrometer at Jefferson Laboratory, Nucl. Instrum. Meth. A 959 (2020) 163419. doi:10.1016/j.nima.2020.163419.
- [7] M. Antonioli, et al., The CLAS12 silicon vertex tracker, Nucl. Instrum. Meth. A 962 (2020) 163701. doi:https://doi.org/10.1016/j.nima.2020.163701.
- [8] A. Acker, et al., The CLAS12 micromegas vertex tracker, Nucl. Instrum. Meth. A 957 (2020) 163423. doi:https://doi.org/10.1016/j.nima.2020.163423.
-
[9]
R. Antunes-Nobrega, et al. (LHCb Collaboration),
LHCb reoptimized detector design
and performance: Technical Design Report, Technical design report. LHCb,
CERN, Geneva, 2003.
URL https://cds.cern.ch/record/630827 - [10] S. Viret, C. Parkes, M. Gersabeck, Alignment procedure of the LHCb vertex detector, Nucl. Instrum. Meth. A 596 (2) (2008) 157–163. doi:https://doi.org/10.1016/j.nima.2008.07.153.
- [11] R. Frühwirth, Application of kalman filtering to track and vertex fitting, Nucl. Instrum. Meth. A 262 (2) (1987) 444–450. doi:https://doi.org/10.1016/0168-9002(87)90887-4.
- [12] V. Ziegler, et al., The CLAS12 software framework and event reconstruction, Nucl. Instrum. Meth. A 959 (2020) 163472. doi:https://doi.org/10.1016/j.nima.2020.163472.
- [13] V. D. Burkert, Jefferson lab at 12 GeV: The science program, Annual Review of Nuclear and Particle Science 68 (1) (2018) 405–428. doi:10.1146/annurev-nucl-101917-021129.
- [14] J. Arrington, et al., Physics with CEBAF at 12 GeV and Future OpportunitiesArXiv:2112.00060 (Nov. 2021). arXiv:2112.00060.
- [15] R. Abdul Khalek, et al., Science Requirements and Detector Concepts for the Electron-Ion Collider: EIC Yellow ReportBNL-220990-2021-FORE, JLAB-PHY-21-3198, LA-UR-21-20953 (3 2021). arXiv:2103.05419.
- [16] M. Ungaro, et al., The CLAS12 Geant4 simulation, Nucl. Instrum. Meth. A 959 (2020) 163422. doi:10.1016/j.nima.2020.163422.
- [17] S. Agostinelli, et al. (GEANT4 Collaboration), GEANT4–a simulation toolkit, Nucl. Instrum. Meth. A 506 (2003) 250–303. doi:10.1016/S0168-9002(03)01368-8.
Appendix A Correlations
The values of the elements of the correlation matrix (see Eq. 23), at the end of the final iteration, are shown in Fig. 13. We also show a zoom-in of the BMT part of this matrix in Fig. 14.
We find that the alignment parameters for any of the BMTC sensors are always very strongly positively correlated with the same parameters for the other BMTC sensors in the same sector. This is apparent in Fig. 14 as visible as dark red diagonal streaks, such as the one near the bottom right corner starting in row 594 (marked with an ellipse in Fig. 14), correlating BMTC layers 1 and 6. The BMTC parameters are very weakly correlated with the parameters of the SVT and the BMTZ, which are apparent in Figs. 13 and 14 as blocks of mostly white, suggesting that the internal alignment within the BMTC is much better than its alignment relative to the other components. This is largely due to the fact that the BMTC measures the position of the track in , which is a weak mode for the BMTZ. Translations in are also less strongly constrained by the SVT than the BMTC, since the BMTC has much better precision on the positions of tracks than crosses between clusters in the SVT.
Also, there is a strong correlation between the translations in and for a given SVT sensor and the rotation in for the same sensor. This is because the rotations are defined around the CLAS12 origin, rather than the center of the sensors, and the widths of the sensors are much smaller than the distance between them and the beamline. It is therefore difficult to distinguish between a rotation around the global axis and a translation of the sensor plane in the azimuthal direction.
Appendix B Additional plots
B.1 Residuals versus coordinates
To see if the residuals depend on the location where the particles cross the sensors, we include plots of the tracking residuals versus the global and coordinates of these intersection points in Figs. 15 and 16, respectively. We show residuals versus the measured centroid strip numbers in the sensors in Fig. 17. The results before (after) alignment are shown in the top (bottom) row. There is a huge dependence of the residuals on the coordinate in the hit (see Fig. 15), but this vanishes after the alignment. Since the centroid number correlates with in the BMTZ and the SVT, one would expect to see a similar dependence on the centroid number, but this would only be visible when looking at each sector individually.
BEFORE
AFTER
BEFORE
AFTER
BEFORE
AFTER
B.2 Correlations between residuals in different sensors
To determine if the residuals in different sensors in the CVT are correlated to one another, we show in Fig. 18 and 19 some 2D distributions of the residuals for various combinations of sensors, before (middle column) and after (right column) alignment. For reference, the positions of the two sensors are shown to the left of the 2D residual plots. The 2D residual distributions show strong correlations for some of these combinations before alignment, especially when the sensors’ measurement directions, , are parallel or nearly parallel to one another, for instance between stereo pairs of SVT sensors (see first row of Fig. 18). In cases where the sensors’ measurement directions are perpendicular to one another, such as one sensor in the BMTC and another in the BMTZ (see third row of Fig. 19), there is no significant correlation between the residuals. Moreover, in the “after” plots, there is almost no correlation between the residuals in one sensor versus those in another, except in the tails of the distributions.
Appendix C Validation through Simulations
To validate the alignment process, we followed the procedure detailed in Sec. 5 on MC simulations produced using the GEMC package [16], which is based on Geant4 [17]. The cosmic rays were simulated as 1 GeV muons, while the “field-off” tracks from the target were simulated as 0.4 to 5 GeV protons with polar angle , and full azimuthal coverage.
We performed three types of tests with simulations. The first was to generate events with a misaligned geometry and to initialize the KAA with the nominal alignment parameters. For this type of test, we only misaligned a few parameters at a time. The second was to generate the events using the nominal alignment and to initialize the KAA using values other than the nominal ones. The advantage of the second method is that multiple tests using different parameters could be performed for the same MC sample. The third method is a hybrid of the first two, which included some misaligned parameters at the generator level, and non-nominal values for other parameters (we chose to use the survey values for these). Only the results from the third type of test are included in this work, as it encapsulates the challenges from the other two tests; the other two were used only in the early stages of development of the analysis framework.
The results with the third type of test are presented here in a similar format to Sec. 6. The distributions of the residuals for each detector type and also the track /dof are shown in Fig. 20. The residual distributions are narrower in the simulations than in the data (see Fig. 8), which may be attributed to a mis-modeling of the resolution effects in the simulations. The estimates for the resolution effects in the simulations are based on an ideal version of the detectors, and can be adjusted to better match those of the real detectors.
We determined the mean and FWHMs of the residual distributions for each module. These are shown in Fig. 21. Finally, we show the residual distributions’ means and FWHMs for the simulations as a function of the kinematics in Fig. 22. No trend is observed in the means of the distributions, however, the FWHMs in the BMTZ and SVT are considerably smaller for tracks with low (i.e., the “field-off” configuration), than in tracks with large (i.e., cosmics). The reason for this is that in the “field-off” configuration, the particles pass though the SVT and BMTZ detectors nearly perpendicular to the direction, and therefore there is typically only a single hit in a cluster. For the cosmic tracks, this is not necessarily the case, so there may be multiple hits in a given cluster, causing the resolution to be worse for such clusters.
Overall, the MC simulations validate that our implementation of the algorithm works for the CLAS12 CVT. The FWHMs of the track-residual distributions are greatly reduced after the alignment (albeit to smaller values than those obtained in the data) and the average is reduced to near unity.