E08-010 ~ N-Delta
Mispointing Calibration
Due to physical limitations in the mechanisms that move the spectrometers in Hall A, the axis of each spectrometer rarely points directly toward the exact center of the target chamber, and this "mispointing" needs to be taken into account when determing particle trajectories.

The mispointing can be determined in a number of different ways. The most straightforward of these is to simply have the Alignment Group perform target and optical surveys that determine the exact position of all of the elements involved in the experiment. The survey reports then include the horizontal and vertical offsets of the spectrometers, which can be entered into one of the database files to correct the mispointing.

Unfortunately, this process is rather time-consuming, so it can only be used for experiments with few configuration changes. For experiments where many configuration changes are necessary, such as this one, another option must be used, such as using special mispointing runs. These runs can be taken after each configuration change using one of the fixed solid targets, such as the carbon foils or the beryllium oxide target. The necessary mispointing offsets can then be calculated from the data taken during the run.

Normally the carbon foils would be used for this process, in which the seven carbon foils are used as a target, and the center foil is focused upon during analysis. But, due to another one of the experiments in the SRC family of experiments, thirteen foils were used instead of the regular seven, which increased the difficulty in locating the center foil in the relevant histograms, so it was decided to use the single foil BeO target instead.

For each kinematic, then, a special optics run was taken using the BeO target. These runs, with additional information, are listed below. Note that the kinematics were not run in chronological order, so the run numbers below are not in an order one might expect.

KinematicRunLeft Arm AngleRight Arm Angle# Events
1a207722.5°12.5°75965
1b228122.5°12.5°77920
2215212.5°12.5°64036
3221038.5°12.5°188867
5240230.0°18.0°61328
6235913.5°18.0°18286
7237146.0°18.0°59587
8247931.5°22.0°51177
9250621.0°22.0°13199
10253241.5°22.0°44228
11242314.5°22.0°17705
12244848.0°22.0°46873
13254937.5°20.5°37776
14256234.5°21.0°53776

Kinematic 1 has two entries in this list because data was collected during two different time periods with movement of the spectrometers in between, requiring that the mispointing for that kinematic be calculated twice.

Target and Optical Survey

While it wasn't feasible to do a target and optical survey between each kinematic, there was one set of surveys performed prior to the experimental run. The survey reports can be downloaded from the Alignment Group's website or via the links below.

Optical Survey | Target Survey

From the optical survey, whose measurements are not necessarily tied to any specific reference frame, we find that prior to any initial spectrometer movement, the left arm spectrometer axis missed the ideal center of the target chamber by 2.31 mm upstream and 0.54 mm vertically up, while the right arm spectrometer axis missed the ideal center by 2.83 mm downstream and 0.66 mm vertically down.

In the individual spectrometer-based transport reference frames, which will be explained in the next section, we could record these values as:

LHRS: hsurv = 2.31 mm ± 0.5 mm, vsurv = −0.54 mm ± 0.5 mm
RHRS: hsurv = 2.83 mm ± 0.5 mm, vsurv = 0.66 mm ± 0.5 mm

In the survey reports, the horizontal offsets are not referred to as positive or negative, but in the transport frames as will be described later, "upstream" will effectively be positive for the LHRS, while "downstream" will be positive for the RHRS. Also, in both of these transport frames, vertically down is positive, as opposed to vertically up being positive as it is in the survey reports.

Geometry

Before moving on, it is helpful to stop and discuss the geometry of the systems involved, to better understand how the variables below are connected.

The mispointing process for each spectrometer involves the interaction of two different spatial orientations, the lab frame and the transport frame.

The lab frame consists of the z-axis pointing in the direction of the ideal beam, with its origin at the center of the target chamber, known as the ideal center. +z points downstream and −z points upstream. +y points vertically up, with −y pointing vertically down. The x-axis is the result of the cross product between the y and z axes; from above (with +z pointing to the right as in the diagram to the right) +x points up and −x down.

With this configuration, the x-z plane is parallel to the floor.

The transport frame is both rotated and translated from the lab frame. The z-axis of the transport frame lies along the spectrometer axis, with +z pointing toward the spectrometer and −z pointing away. Unlike the lab frame, however, in the transport frame the x-axis is the vertical axis, with +x pointing down and −x pointing up. The y-axis is defined by the cross product of the z and x axes; from above (with +z pointing to the right), +y points up and −y down.

One important result of this configuration is that for the left arm, +ytransport points upstream, while for the right arm, +ytransport points downstream, which explains the situation with the signs on the hsurv variable in the previous section.

Also, much like the lab frame, the y-z plane of the transport frame is parallel to the floor. This means that the ztransport axis is not directly parallel to the spectrometer axis. The z-axis is instead the projection of the spectrometer axis relative to the transport frame's y-z plane. That is, the z-axis of the transport frame is parallel to the floor, while the true spectrometer axis is not, as evidenced by its vertical offset.

One benefit of this particular arrangement is that, when viewed from above as in the diagram to the above-right, the vertical offsets have no effect, and the horizontal situation between the two frames can be handled as though it were two-dimensional.

With that geometry in mind, several variables can be defined.

Variable Definition

Lab Frame
 
xsurvx-component of a vector from the ideal center to the center of the target, assumed to be 0 for the BeO target
ysurvy-component of a vector from the ideal center to the center of the target, assumed to be 0 for the BeO target
zsurvz-component of a vector from the ideal center to the center of the target, presumably given by the target survey
 
beamxx-component of a vector from the ideal center to the true beamline (at z = 0), given by the analyzer variable rb.x
beamyy-component of a vector from the ideal center to the true beamline (at z = 0), given by the analyzer variable rb.y
(no beamz)
 
xoffx-component of a vector from the ideal center to the origin of the transport frame, ultimate goal of the mispointing calibration
yoffy-component of a vector from the ideal center to the origin of the transport frame, ultimate goal of the mispointing calibration
zoffz-component of a vector from the ideal center to the origin of the transport frame, ultimate goal of the mispointing calibration
 
reactxx-component of a vector from the ideal center to the interaction point in the target, given by the analyzer variables rpl.x and rpr.x
reactyy-component of a vector from the ideal center to the interaction point in the target, given by the analyzer variables rpl.y and rpr.y
reactzz-component of a vector from the ideal center to the interaction point in the target, given by the analzyer variables rpl.z and rpr.z, analogous to zsurv after offsets are applied


Transport Frame
 
xtgtx-component of a vector from the origin of the transport frame to the interaction point in the target, given by the analyzer variables exL.x and exR.x
ytgty-component of a vector from the origin of the transport frame to the interaction point in the target, given by the analyzer variables exL.y and exR.y
ztgtnot used
 
hoffy-component of a vector from the origin of the transport frame to the ideal center (at z = 0), penultimate goal of the mispointing calibration, analogous to hsurv
voffx-component of a vector from the origin of the transport frame to the ideal center (at z = 0), penultimate goal of the mispointing calibration, analogous to vsurv


Angles
 
θsangle between the lab frame and the transport frame, as seen from above
θ0angle between the ideal beamline and a line connecting the ideal center with the venier caliper, essentially the nominal angle of the spectrometer
Ldistance between the ideal center and the venier calipers, assumed to be 9.9 m
Offset Calculation

As mentioned above, the ultimate goal here is to calculate the three lab frame offsets (xoff, yoff, zoff), which themselves are calculated from the transport frame offsets (hoff, voff). The goal, then, is to calculate these offsets from the variables given.

In the diagram below, beamx, zsurv, and ytgt are all positive based on their respective frames. If counter-clockwise rotation is positive, then θs and θ0 are also positive.

Further, as hoff lies along the ytransport axis, it should also be positive in the diagram below.

Using the trigonometric identities, it can be shown that hoff can be calculated as

hoff = ytgt + zsurv sin θsbeamx cos θs

One problem with this equation is that it relies on θs, which isn't yet known. As a first-order approximation, θ0 can be used. Then, once a value for hoff has been found, it can be used to find a better approximation for θs, with the equation

θs = θ0 + sin−1(hoff / L)

One method, then, for calculating the values for hoff and θs is to use an iterative process, continually making substitutions until the values converge to their best values.

Another option is to directly substitute the equation for θs into the hoff equation, which results in a quadratic equation for hoff. Or, likewise, an equation for hoff can be substituted into the equation for θs, resulting in a quadration equation for θs.

No matter the method, once hoff and θs are known, they can be used to find the two horizontal lab frame offsets.

xoff = −hoff cos θs
zoff = hoff sin θs

The signs on the above equations come from the direction of the lab frame vectors associated with hoff. That is, in the diagram above, if hoff is positive, then the origin of the transport frame is downstream of the ideal center, and hoff points upstream. But xoff and zoff point from the ideal center to the origin of the transport frame, so they point in the opposite direction. That makes xoff point in the negative direction and zoff point in the positive direction (downstream), as defined by the lab frame, hence the signs.

Like the horizontal offset, the vertical offset, voff can be calculated from the variables above, though the derivation is much simpler.

voff = beamy + xtgt

Since the horizontal planes of the two frames are parallel, the vertical offset is just a simple addition. If both variables are positive, beamy points up from the x-z plane of the lab frame, xtgt points down from the y-z plane of the transport frame, and voff is just the sum of the two.

Further, yoff will be exactly equal to voff, even though they point in opposite directions, as they're based on different reference frames, which allows them to both be positive in the directions that they point.
Spectrometer Angles

Before we go any further, it's important to bring up the spectrometer angles.

During the experiment, four cameras were set up to view the floor markings as the spectrometers were moved around the hall, two on each arm. The cameras closest to the pivot, the front cameras, had venier calipers attached to get a more exact floor reading.

The cameras furthest from the pivot, the back cameras, were there to help measure the mispointing of the arm relative to the pivot. That is, by noting what the front and back cameras were reading individually, a degree of mispointing could be determined.

Unfortunately, several problems plagued the camera process. First, the markings for the back cameras was not as detailed as the markings for the front, so the images captured by the back cameras are essentially worthless. Second, the camera capture software would often freeze up, and the images stored in the data stream for two of the kinematics are incorrect.

Nevertheless, for the kinematics in which the images are correct, the cameras are still useful in showing how exact the positioning of the spectrometers were.

Also, during the N-Delta experiment, three Doug-recommended procedures were followed to keep the spectrometer angle as simple as possible.

First, though the calipers had motors that could be used to adjust them, the calipers themselves were never moved relative to the cameras.

Second, rather than aiming for the center of the calipers, the "zero" point, a specific position on the calipers was used. For the left arm, that point was +29, and for the right arm, it was at -34.

Third, the spectrometer angles were kept to half-degrees. That is, rather than aiming for 18.2°, we used 18.0°. There was some concern that this could cause us to miss the reactions we were looking for, but we were assured that the angular acceptance of the spectrometers was large enough to accomodate this change.

By following these three procedures, we were told that our spectrometer angles would be almost exactly what we wanted without having to worry about fiddling with the calipers.

Assuming these procedures were indeed correct, the θ0 values for this calibration should be exactly as they were described, to a tenth of a degree.


Kinematic 1a

Right: 12.5°, Left: 25.5°

Kinematic 1b
(incorrect)
Right: 12.5°, Left: 25.5°

Kinematic 2
(incorrect)
Right: 12.5°, Left: 12.5°

Kinematic 3

Right: 12.5°, Left: 38.5°

Kinematic 5

Right: 18.0°, Left: 30.0°

Kinematic 6

Right: 18.0°, Left: 13.5°

Kinematic 7

Right: 18.0°, Left: 46.0°

Kinematic 8

Right: 22.0°, Left: 31.5°

Kinematic 9

Right: 22.0°, Left: 21.0°

Kinematic 10

Right: 22.0°, Left: 41.5°

Kinematic 11

Right: 22.0°, Left: 14.5°

Kinematic 12

Right: 22.0°, Left: 48.0°

Kinematic 13

Right: 20.5°, Left: 37.5°

Kinematic 14

Right: 21.0°, Left: 34.5°
Target Location

In order to properly calibrate the mispointing of the spectrometers using the BeO foil, it is necessary to first know where that foil actually is relative to the ideal center of the target chamber. According to the target survey, the BeO target, as well as the rest of the solid targets, is 15.32 mm upstream of the ideal center.

One way to test this positioning is to use the θs, hoff, and voff from the optical survey to calculate xoff, yoff, and zoff for a BeO run taken after the surveys but before the spectrometers were moved, such as with run 1201, a spot++ run.

A θs of 16.489°, an hoff of 2.31 mm, and a voff of -0.54 mm gives an xoff of -2.215 mm, a yoff of -0.54 mm, and a zoff of 0.656 mm. When those were used, the reconstructed target appeared at a reactz of -15.6 mm, approximately where the target survey said, indicating that the target survey and the optical survey are in agreement.

However, this does present a bit of a problem, as the target survey suggests that the center of the 4 cm LH2 target cell is a mere 0.06 mm upstream of the ideal center, while the 4cm LH2 reconstructed position clearly shows it to be approximately 6 mm upstream.



Further analysis indicates that all of the solid targets appear to be correctly centered at -15.32 mm, while the LH2 and LD2 targets are all approximately 6 mm upstream, not the fraction of a millimeter as written in the target surveys.
Offset Calculation

To calculate the offsets, code was written to go through each event in the calibration runs, assign the various beam and target variables, calculate the offsets, and store them in histograms. The histograms could then be fitted to a Gaussian curve, yielding the results below. All units are in millimeters or degrees.

KinematicRunLzsurvbeamxbeamyxtgtytgtθ0θshoffvoffxoffyoffzoff
LHRS
1a20779900-15.32-3.812272.60288-2.649244.673125.525.51061.524420.0393538-1.375890.03935380.655582
1b22819900-15.32-3.842852.69468-2.704325.736825.525.51132.616410.0423368-2.350980.04233681.12017
221529900-15.32-3.845012.69833-2.672964.4300612.512.36574.870210.0976965-4.755520.09769651.05207
322109900-15.32-3.835592.69392-2.708835.8087738.538.4606-0.7146830.04619110.5572920.0461911-0.445293
524029900-15.32-3.839522.69194-2.697465.583693030.00551.248910.0551383-1.090490.05513830.618673
623599900-15.32-3.840732.70194-2.681644.1890513.513.72094.340180.0896211-4.225750.08962111.01945
723719900-15.32-3.840262.68627-2.697445.114924616.1444-3.223910.05209812.248790.0520981-2.32695
824799900-15.32-3.788352.5235-2.570576.0501631.531.61621.287670.0468762-1.085760.04687620.669747
925069900-15.32-3.851982.70403-2.695924.370872121.01932.464910.052177-2.307080.0521770.888025
1025329900-15.32-3.840522.69362-2.697724.5899341.541.743-2.66290.04527451.992690.0452745-1.7655
1124239900-15.32-3.841192.70055-2.666214.3782614.514.6634.245670.0901928-4.121410.09019281.05867
1224489900-15.32-3.840742.68825-2.705895.299464848.0055-3.506030.05576072.330940.0557607-2.58976
1325499900-15.32-3.852232.71412-2.724576.3388437.537.47620.07145770.05275-0.06591750.052750.0476348
1425629900-15.32-3.843662.68648-2.686515.9188734.534.51140.4122680.0641884-0.3399020.06418840.227923
RHRS
1a20779900-15.32-3.812272.60288-2.567182.44221-12.5-12.36489.472710.177298-9.255110.177298-2.05874
1b22819900-15.32-3.842852.69468-2.716591.46048-12.5-12.37218.526320.0897959-8.319060.0897959-1.78016
221529900-15.32-3.845012.69833-2.74881-0.493299-12.5-12.3576.570130.00939732-6.423670.00939732-1.33904
322109900-15.32-3.835592.69392-2.731351.67645-12.5-12.36088.716450.0827623-8.510870.0827623-1.85547
524029900-15.32-3.839522.69194-2.692114.39965-18-17.706812.77760.114348-12.16960.114348-3.93079
623599900-15.32-3.840732.70194-2.721984.33373-18-17.792612.69140.0877268-12.05750.0877268-3.91015
723719900-15.32-3.840262.68627-2.669954.58042-18-17.762612.94130.132668-12.31550.132668-3.9912
824799900-15.32-3.788352.5235-2.589952.93927-22-21.918412.17690.0854796-11.30830.0854796-4.5275
925069900-15.32-3.851982.70403-2.752642.74804-22-21.920812.0270.0873014-11.14880.0873014-4.48187
1025329900-15.32-3.840522.69362-2.721213.02801-22-21.938812.34450.0888009-11.450.0888009-4.59105
1124239900-15.32-3.841192.70055-2.759762.7705-22-21.916312.07140.0778733-11.19240.0778733-4.48812
1224489900-15.32-3.840742.68825-2.702383.11093-22-21.914612.37920.103533-11.47910.103533-4.59382
1325499900-15.32-3.852232.71412-2.734162.0491-20.5-20.378211.01680.0884737-10.32710.0884737-3.83977
1425629900-15.32-3.843662.68648-2.729032.35468-21-21.002611.4410.0770575-10.68050.0770575-4.08142

Once the various offsets have been calculated, they can be entered into the "db_run.dat" database file, and the various runs can be replayed.
Results

To confirm these results, the three react variables can be used, where they are compared to the beam and surv variables. If the calibration is correct, then reactz should be equivalent to zsurv, and reactx and reacty should correspond to the respective beam variables.

KinematicRunbeamxbeamyzsurvreactxreactyreactz
LHRS
1a2077-3.812272.60288-15.32-3.885332.65963-15.2628
1b2281-3.842852.69468-15.32-3.906382.74677-15.3246
22152-3.845012.69833-15.32-3.905042.75054-14.9581
32210-3.835592.69392-15.32-3.911162.74694-15.2817
52402-3.839522.69194-15.32-3.909072.74132-15.2898
62359-3.840732.70194-15.32-3.905582.73705-15.1097
72371-3.840262.68627-15.32-3.909462.7451-15.3198
82479-3.788352.5235-15.32-3.873182.57638-15.2903
92506-3.851982.70403-15.32-3.922862.74678-15.1355
102532-3.840522.69362-15.32-3.90262.74862-15.3004
112423-3.841192.70055-15.32-3.892662.74198-15.1546
122448-3.840742.68825-15.32-3.914922.73473-15.2891
132549-3.852232.71412-15.32-3.916332.74143-15.2759
142562-3.843662.68648-15.32-3.906112.74523-15.3183
RHRS
1a2077-3.812272.60288-15.32-3.876442.66585-15.106
1b2281-3.842852.69468-15.32-3.897642.74406-15.1279
22152-3.845012.69833-15.32-3.903432.7552-15.1643
32210-3.835592.69392-15.32-3.889612.74698-15.167
52402-3.839522.69194-15.32-3.890272.74428-15.1914
62359-3.840732.70194-15.32-3.893662.76412-15.1623
72371-3.840262.68627-15.32-3.892972.73558-15.1849
82479-3.788352.5235-15.32-3.855062.57585-15.2002
92506-3.851982.70403-15.32-3.908512.74741-15.1469
102532-3.840522.69362-15.32-3.911552.7464-15.1691
112423-3.841192.70055-15.32-3.904932.75824-15.1878
122448-3.840742.68825-15.32-3.891182.73165-15.1674
132549-3.852232.71412-15.32-3.909472.76299-15.2622
142562-3.843662.68648-15.32-3.900422.73519-15.2547

As can be seen, the results are extremely close, indicating that the mispointing calibration has been done successfully.