Examining the geometry of the Drift Chamber, we can see that the detector is similar to a hexagonal pyramid in shape.
[[File:DC_Geomentry_Sideview.png|thumb|center|600px|alt=Drift Chamber Geometry|'''Figure 1:''' A graphical rendering of a drift chamber sector.]]
From the geometry it is given that xdist, the distance between the line of intersection of the two end-plate planes and the target position, is equal to 8.298 cm and th_min, the angle from the target vertex to the the same line, is 4.694 degrees. Using this knowledge we can simulate this situation by having the end-plate planes intersect at the beam line axis. This action in effect would grant the sector to measure angles below ~5 degrees, which we can account for by limiting angles theta within the accepted detector range. The quantity dist2tgt, the distance from the target to the first guard wire plane along the normal of said plane, is given as 228.078 cm. Using the previous understanding of the distances between planes within a Superlayer:
[[File:hex.png|thumb|center|600px|alt=DC Wire Geometry|'''Figure 2:''' A graphical rendering of a drift chamber wire spacing.]]
We know that the separation between levels is a constant D=.3861 cm, and that sensor layer 1 is 3 layers deep.
<center>[[File:GuardWireLocation.png]]</center>
This gives us the distance to level 1 from the vertex (0,0,0) as 228.078 cm+3(0.3861) cm=229.2363 cm in the normal direction from the wire plane to the target. Using the fact that the wire planes are at 25 degrees to the beam line normal, we can approximate sector one as triangle that intersects with a line perpendicular to the beam line at the vertex position of (0,0,0) along the bisector of the triangle. This then by geometry shown in the figure below implies the distance traveling along the beam line would intersect the theoretical extension of the sector at z= 2.53 m. While this is beyond the physical constructs of the experimental design, we do this mathematical simplicity. This again is acceptable in that angles beyond the physical limitations of 40 degrees will not be simulated. From the geometry of a hexagonal pyramid, we can see that the quantity h should be
[[File:Hex_Pyramid_side.png|thumb|center|600px|alt=DC Wire Geometry Side view|'''Figure 3:''' A graphical rendering of a drift chamber wire spacing from the side.]]
It assumed that since the Moller process does not depend on the polar angle phi, it should remain constant. When the scattering angle theta, which is measured with respect to the beam line, is held constant and rotated through 360 degrees in phi, a cone is created. Using Mathematica, we can produce a 3D rendering of how the sectors for Level 1 would have to interact with a steady angle theta with respect to the beam line, as angle phi is rotated through 360 degrees.
[[File:PhiCone.png|thumb|center|600px|alt=Cone of constant Theta for varying Phi|'''Figure 5:''' A cone of constant Theta with varying Phi.]]
=Conic Sections=
Looking just at sector 1, we can see that the intersection of level 1 and the cone of constant angle theta forms a conic section.
[[File:Projection_side_view.png|thumb|center|600px|alt=Cone of constant Theta for varying Phi|'''Figure 5:''' A cone of constant Theta with varying Phi.]]
Without loss of generalization, we can extend the triangle to an infinite plane to aid in viewing the conic section. Again, this falls outside of the experimental design range, but simulations would not occur in this forbidden zone.
[[File:Projection_Rear_view.png|thumb|center|600px|alt=Cone of constant Theta for varying Phi|'''Figure 5:''' A cone of constant Theta with varying Phi.]]
Following the rules of conic sections we know that the eccentricity of the conic is given by:
since e must be less than 1, this sets the limit of theta at less than 65 degrees. Since the limit of [math]\displaystyle{ \theta=0 }[/math], this implies the minimum eccentricity will be [math]\displaystyle{ e\approx .4291 }[/math]
This implies that the shape made on the the plane of the sector is an ellipse for angles
[math]\displaystyle{ 0<\theta<65^{\circ} }[/math]
Determining ellipse components
Figure 5: A cone of constant Theta with varying Phi.
Here we must take note of the fact that the center of the cone and the center of the ellipse do not coincide as can be shown visually by extending the cone length.
Figure 5: A cone of constant Theta with varying Phi.
Here we will make use of Dandelin spheres to help determine the ellipse components with reference to the cone created at a constant theta. The basic construction of using Dandelin spheres is that within the cone, there are two spheres which are tangent to the plane as well as tangent to the cone as shown below in the xz plane. The Dandelin method picks an arbitrary point,P, on the intersection of the cone and the ellipse's plane. Drawing a line from the cone vertex through the point P, the directrix lines are intersected as shown below at D1 and D2. From the geometry as shown in the xz plane, it is shown that the line segments F1P=D1P and F2P=D2P since they share a common line segment, all three angles, and both have a the respective Dandelin radius as parts of the triangles they form.
Figure 5: A cone of constant Theta with varying Phi.
We can use the law of sines to find a portion of the ellipse
Figure 5: A cone of constant Theta with varying Phi.
Since these lines meet at the intersection of each other, and they both originate at the vertex positions for the ellipse, we can state that the semi major axis is:
[math]\displaystyle{ 2a\equiv a_1+a_2 }[/math]
Figure 5: A cone of constant Theta with varying Phi.
Using the fact that half the semi-major axis will give use the center of the ellipse
The D1 and D2 components can be obtained by finding the x and y components of the two directrix circles, which will be a function of their respective radii and the angle phi around the z axis.
Using these two points, which will be at the same angle phi around the z axis, a line can be created
[math]\displaystyle{ \vec d=r_{D2}cos(\phi)-r_{D1}cos(\phi)\ \hat x+r_{D2}sin(\phi)-r_{D1}sin(\phi)\ \hat y+r_{D2}cot(\theta)-r_{D1}cot(\theta)\ \hat z }[/math]
Since this line is composed of the difference in the cartesian components of the two points it acts as a direction vector pointing from one point to the next. We can use the fact that a line in space is simply the intersection of two planes which in this situation results in the direction vector. Finding the parametric form equation of this line
Since this condition implies that the 3 equations listed above for all conditions, we can solve for the [math]\displaystyle{ \phi=0 }[/math] situation which must then hold for all other instances of [math]\displaystyle{ \phi }[/math]
We can substitute for z to find the point of intersection for the plane and cone at a given [math]\displaystyle{ \theta }[/math] and [math]\displaystyle{ \phi }[/math]
We can use the geometry of the sector to impose limits on the allowed x and y for this plane. The angle which the two sides of the triangle that make up the sector is given as [math]\displaystyle{ 59^{\circ} }[/math]. Each focii will have a ray that creates a circle around the point that is equal to the length found from the D1P and D2P lines. These circles will overlap at a common y component, which can be used to determine if the point is within the detector limits.
Using the physical constraints of the distance the interior walls of the side walls intersect each other from the beam line, as well as the angle the lowest guard wire at the plane midpoint.
where b' is the location on the y' axis where the two interior side walls of the sector intersect.
[math]\displaystyle{ b'=\frac{0.08298\ m}{sin(65^{\circ})}=.09156\ m }[/math]
The quantity [math]\displaystyle{ x_0^' }[/math] is the corresponding x' distance from the beam line and detector plane intersection.
[math]\displaystyle{ x_0^'=\frac{sin(4.694^{\circ})2.53\ m}{sin(110.306^{\circ})}=.0872(2.53)=.22070/ m }[/math]
Since the interior sides of the sector make an angle of [math]\displaystyle{ 59^{\circ} }[/math] in the plane of the wires, this can be represented by equations
[math]\displaystyle{ x'=\pm cot(29.5^{\circ})y^'+.09156\ m }[/math]
Using the properties of an ellipse, we can work in the coordinates of the ellipse, in the plane of the ellipse, where the vertex is located at the crossing of the ellipse and the cone. Since the Dandelin construction was used, we know that
Test for [math]\displaystyle{ \theta=20 }[/math] and [math]\displaystyle{ \phi=1 }[/math]
All previous quantities where calculated for [math]\displaystyle{ \theta=20^{\circ} }[/math] and do not depend on the angle [math]\displaystyle{ \phi }[/math]. The quantities that do change
The two possible answers denote shifting to the left on right on the y axis. We take the direction of positive and negative to be the same as the sign convention for the angle phi starting on the x axis and shifting positive clockwise. A shift of 1 degree in phi at theta equal to 20 degrees only results in a small change in the x and y. This changes depending on the angles.
Function for the change in x' in the detector frame for change in [math]\displaystyle{ \phi }[/math] and constant [math]\displaystyle{ \theta }[/math] in the lab frame
Function for the wire number in the detector frame for change in [math]\displaystyle{ \phi }[/math] and constant [math]\displaystyle{ \theta }[/math] in the lab frame
Using the expression for wire number n in terms of [math]\displaystyle{ \theta }[/math] for the detector mid-plane where [math]\displaystyle{ \phi=0 }[/math]:
[math]\displaystyle{ n = \frac{-957.412}{\tan(\theta)+2.14437}+430.626 }[/math]
We can use the inverse of this function to find the neighboring wire's corresponding angle theta
[math]\displaystyle{ r_{D1}=R_{Lower\ Dandelin}cos(\theta)=(ae-\Delta a) tan(65^{\circ})cos(\theta)\qquad \qquad r_{D2}=R_{Lower\ Dandelin}cos(\theta)=(ae+\Delta a) tan(65^{\circ})cos(\theta) }[/math]
We can take this point to be the x axis intercept and use the fact that each wire is titled by 6 degrees to the horizontal in the plane of the detector to create an equation
where the initial wire and x' position at the given theta is represented by [math]\displaystyle{ n_0 }[/math]
This equation can be solved for a hypothetical wire 0, which will allow the wire number to be the multiplicative factor for the change from the starting position.