<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_25) on Tue Mar 06 11:22:21 EST 2012 -->
<TITLE>
LinkIntersectionsBST
</TITLE>

<META NAME="date" CONTENT="2012-03-06">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="LinkIntersectionsBST";
    }
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">
<HR>


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 <A HREF="../../../../org/sot/services/bst/KalmanFilterServiceBST.html" title="class in org.sot.services.bst"><B>PREV CLASS</B></A> 
 <A HREF="../../../../org/sot/services/bst/RefitHelixBST.html" title="class in org.sot.services.bst"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?org/sot/services/bst/LinkIntersectionsBST.html" target="_top"><B>FRAMES</B></A>   
 <A HREF="LinkIntersectionsBST.html" target="_top"><B>NO FRAMES</B></A>   
 <SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.sot.services.bst</FONT>
<BR>
Class LinkIntersectionsBST</H2>
<PRE>
java.lang.Object
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.sot.services.bst.LinkIntersectionsBST</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>org.jlab.coda.clara.core.ICService</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>LinkIntersectionsBST</B><DT>extends java.lang.Object<DT>implements org.jlab.coda.clara.core.ICService</DL>
</PRE>

<P>
links intersections together into BST track candidates:
 Each candidate contains one hit from each layer of the BST.
 
 <h3>Output Evio Banks</h3>
 <table> 
 <tr><td>bank name </td>                        <td>tag</td>      <td>num</td></tr>
 <tr><td>BST_CANDIDATES </td>                <td>402 </td>     <td>0 </td> </tr>

 <tr><td>BST_CANDIDATES_digitized_output </td><td>402 </td>     <td>0.100 </td> </tr>
 <tr><td>Layer </td>                             <td>402 </td>     <td>0.100.1 </td> </tr>
 <tr><td>Sector </td>                            <td>402 </td>     <td>0.100.2 </td> </tr>
 <tr><td>Strip1 </td>                            <td>402 </td>     <td>0.100.3 </td> </tr>
 <tr><td>Strip2 </td>                            <td>402 </td>     <td>0.100.4 </td> </tr>
 </table>
 
 <br>*Layer, Sector, Strip1 and Strip2 respectively represent the superlayer number,
 sector number of the intersection, and the strip numbers of the first and second hit
 in the intersection. 
 <br>** Because the number of intersections per track candidate is fixed (at 3), the first three intersections
 belong to the first track candidate, the next three to the second track candidate, etc.
<P>

<P>
<DL>
<DT><B>Author:</B></DT>
  <DD>Sebouh Paul</DD>
</DL>
<HR>

<P>
<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_cosP234_min">BST_cosP234_min</A></B></CODE>

<BR>
          <B>Deprecated.</B> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_distP4toCenter_a">BST_distP4toCenter_a</A></B></CODE>

<BR>
          <B>Deprecated.</B> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_distP4toCenter_b">BST_distP4toCenter_b</A></B></CODE>

<BR>
          <B>Deprecated.</B> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_Dphi_max1">BST_Dphi_max1</A></B></CODE>

<BR>
          the difference in phi between the first and second intersection must be less
 than this value</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_Dphi_max2">BST_Dphi_max2</A></B></CODE>

<BR>
          the difference in phi between the second and third intersection must be less
 than this value</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_Dphi_max3">BST_Dphi_max3</A></B></CODE>

<BR>
          <B>Deprecated.</B> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_Dphi_max4">BST_Dphi_max4</A></B></CODE>

<BR>
          <B>Deprecated.</B> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_Dphi_max5">BST_Dphi_max5</A></B></CODE>

<BR>
          <B>Deprecated.</B> </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#pT_max">pT_max</A></B></CODE>

<BR>
          reject any track candidates whose calculated transverse momentum is
 greater than this value</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#pT_min">pT_min</A></B></CODE>

<BR>
          reject any track candidates whose calculated transverse momentum is
 less than this value</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#R_vertex">R_vertex</A></B></CODE>

<BR>
          reject any track candidate where the point of closest approach of the
 track to the beamline is further than this distance.</TD>
</TR>
</TABLE>
 <A NAME="fields_inherited_from_class_org.jlab.coda.clara.core.ICService"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from interface org.jlab.coda.clara.core.ICService</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>BYTE, BYTE_ARRAY, DOUBLE, DOUBLE_ARRAY, EVIO, FLOAT, FLOAT_ARRAY, instanceId, INT, INT_ARRAY, OBJECT, OBJECT_ARRAY, SHORT, SHORT_ARRAY, STRING, STRING_ARRAY</CODE></TD>
</TR>
</TABLE>
 
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#LinkIntersectionsBST()">LinkIntersectionsBST</A></B>()</CODE>

<BR>
           </TD>
</TR>
</TABLE>
 
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private)  boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#accepts4thHit(org.sot.centralTracking.Helix, org.sot.centralTracking.bst.IntersectionBST)">accepts4thHit</A></B>(<A HREF="../../../../org/sot/centralTracking/Helix.html" title="class in org.sot.centralTracking">Helix</A> h,
              <A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A> inter4)</CODE>

<BR>
          <B>Deprecated.</B> <I>only useful in the deprecated 4layer BST geometry</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#configure(java.util.ArrayList)">configure</A></B>(java.util.ArrayList<org.jlab.coda.clara.core.CServiceParameter> p)</CODE>

<BR>
          configures this service.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#destruct()">destruct</A></B>()</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#dPhiWithinRange(org.sot.centralTracking.bst.IntersectionBST, org.sot.centralTracking.bst.IntersectionBST, double)">dPhiWithinRange</A></B>(<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A> i1,
                <A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A> i2,
                double dPhiMax)</CODE>

<BR>
          checks if the difference of azimuthal angles of the two intersections 
 are within range specified by dPhiMax.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#executeService(int[], java.lang.Object[])">executeService</A></B>(int[] type,
               java.lang.Object[] input)</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#executeService(int, java.lang.Object)">executeService</A></B>(int type,
               java.lang.Object input)</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#fitsTrackingParameters(org.sot.centralTracking.Helix)">fitsTrackingParameters</A></B>(<A HREF="../../../../org/sot/centralTracking/Helix.html" title="class in org.sot.centralTracking">Helix</A> h)</CODE>

<BR>
          Checks if the helix fits the tracking parameters:
 
 The estimated momentum of particle that produced the helix must be between 0.1 and 4.0 GeV.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getAuthor()">getAuthor</A></B>()</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getDescription()">getDescription</A></B>()</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getInputType()">getInputType</A></B>()</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getInputTypes()">getInputTypes</A></B>()</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private)  java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/LinkedInter.html" title="class in org.sot.centralTracking.bst">LinkedInter</A>></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getLinkedInters_3L(java.util.ArrayList)">getLinkedInters_3L</A></B>(java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A>> allInter)</CODE>

<BR>
          creates BST track candidates by linking the intersections in the BST.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private)  java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/LinkedInter.html" title="class in org.sot.centralTracking.bst">LinkedInter</A>></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getLinkedInters(java.util.ArrayList[])">getLinkedInters</A></B>(java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A>>[] allInter)</CODE>

<BR>
          <B>Deprecated.</B> <I>(this assumes that one is using the 4 superlayer BST geometry)</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getName()">getName</A></B>()</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getOutputType()">getOutputType</A></B>()</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#getVersion()">getVersion</A></B>()</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private  void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#sortIntersectionsInSuperlayers(java.util.ArrayList, java.util.ArrayList...)">sortIntersectionsInSuperlayers</A></B>(java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A>> allIntersections,
                               java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A>>... layers)</CODE>

<BR>
           </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private)  double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#sumsq(double...)">sumsq</A></B>(double... d)</CODE>

<BR>
           </TD>
</TR>
</TABLE>
 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
 
<P>

<!-- ============ FIELD DETAIL =========== -->

<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="R_vertex"><!-- --></A><H3>
R_vertex</H3>
<PRE>
public double <B>R_vertex</B></PRE>
<DL>
<DD>reject any track candidate where the point of closest approach of the
 track to the beamline is further than this distance.
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="pT_min"><!-- --></A><H3>
pT_min</H3>
<PRE>
public double <B>pT_min</B></PRE>
<DL>
<DD>reject any track candidates whose calculated transverse momentum is
 less than this value
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="pT_max"><!-- --></A><H3>
pT_max</H3>
<PRE>
public double <B>pT_max</B></PRE>
<DL>
<DD>reject any track candidates whose calculated transverse momentum is
 greater than this value
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="BST_Dphi_max1"><!-- --></A><H3>
BST_Dphi_max1</H3>
<PRE>
public double <B>BST_Dphi_max1</B></PRE>
<DL>
<DD>the difference in phi between the first and second intersection must be less
 than this value
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="BST_Dphi_max2"><!-- --></A><H3>
BST_Dphi_max2</H3>
<PRE>
public double <B>BST_Dphi_max2</B></PRE>
<DL>
<DD>the difference in phi between the second and third intersection must be less
 than this value
<P>
<DL>
</DL>
</DL>
<HR>

<A NAME="BST_Dphi_max3"><!-- --></A><H3>
BST_Dphi_max3</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public double <B>BST_Dphi_max3</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DL>
</DL>
</DL>
<HR>

<A NAME="BST_Dphi_max4"><!-- --></A><H3>
BST_Dphi_max4</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public double <B>BST_Dphi_max4</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DL>
</DL>
</DL>
<HR>

<A NAME="BST_Dphi_max5"><!-- --></A><H3>
BST_Dphi_max5</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public double <B>BST_Dphi_max5</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DL>
</DL>
</DL>
<HR>

<A NAME="BST_cosP234_min"><!-- --></A><H3>
BST_cosP234_min</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public double <B>BST_cosP234_min</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DL>
</DL>
</DL>
<HR>

<A NAME="BST_distP4toCenter_b"><!-- --></A><H3>
BST_distP4toCenter_b</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public double <B>BST_distP4toCenter_b</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DL>
</DL>
</DL>
<HR>

<A NAME="BST_distP4toCenter_a"><!-- --></A><H3>
BST_distP4toCenter_a</H3>
<PRE>
<FONT SIZE="-1">@Deprecated
</FONT>public double <B>BST_distP4toCenter_a</B></PRE>
<DL>
<DD><B>Deprecated.</B> <DL>
</DL>
</DL>

<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="LinkIntersectionsBST()"><!-- --></A><H3>
LinkIntersectionsBST</H3>
<PRE>
public <B>LinkIntersectionsBST</B>()</PRE>
<DL>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="configure(java.util.ArrayList)"><!-- --></A><H3>
configure</H3>
<PRE>
public void <B>configure</B>(java.util.ArrayList<org.jlab.coda.clara.core.CServiceParameter> p)</PRE>
<DL>
<DD>configures this service.  The name of the parameter must match the field being
 modified.  See the javadoc of the parameter for more details.
<P>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>configure</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#R_vertex"><CODE>R_vertex</CODE></A>, 
<A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#pT_min"><CODE>pT_min</CODE></A>, 
<A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#pT_max"><CODE>pT_max</CODE></A>, 
<A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_Dphi_max1"><CODE>BST_Dphi_max1</CODE></A>, 
<A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#BST_Dphi_max2"><CODE>BST_Dphi_max2</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="executeService(int, java.lang.Object)"><!-- --></A><H3>
executeService</H3>
<PRE>
public java.lang.Object <B>executeService</B>(int type,
                                       java.lang.Object input)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>executeService</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="executeService(int[], java.lang.Object[])"><!-- --></A><H3>
executeService</H3>
<PRE>
public java.lang.Object <B>executeService</B>(int[] type,
                                       java.lang.Object[] input)</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>executeService</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getAuthor()"><!-- --></A><H3>
getAuthor</H3>
<PRE>
public java.lang.String <B>getAuthor</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getAuthor</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getDescription()"><!-- --></A><H3>
getDescription</H3>
<PRE>
public java.lang.String <B>getDescription</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getDescription</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getInputType()"><!-- --></A><H3>
getInputType</H3>
<PRE>
public int <B>getInputType</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getInputType</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getInputTypes()"><!-- --></A><H3>
getInputTypes</H3>
<PRE>
public int[] <B>getInputTypes</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getInputTypes</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getName()"><!-- --></A><H3>
getName</H3>
<PRE>
public java.lang.String <B>getName</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getName</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getOutputType()"><!-- --></A><H3>
getOutputType</H3>
<PRE>
public int <B>getOutputType</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getOutputType</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getVersion()"><!-- --></A><H3>
getVersion</H3>
<PRE>
public java.lang.String <B>getVersion</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>getVersion</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getLinkedInters(java.util.ArrayList[])"><!-- --></A><H3>
getLinkedInters</H3>
<PRE>
java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/LinkedInter.html" title="class in org.sot.centralTracking.bst">LinkedInter</A>> <B>getLinkedInters</B>(java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A>>[] allInter)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>(this assumes that one is using the 4 superlayer BST geometry)</I>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>allInter</CODE> - array of ArrayLists of all <code>IntersectionBST</code>s in each superlayer
<DT><B>Returns:</B><DD>ArrayList of all LinkedInter that can be formed using these IntersectionBST</DL>
</DD>
</DL>
<HR>

<A NAME="sortIntersectionsInSuperlayers(java.util.ArrayList, java.util.ArrayList...)"><!-- --></A><H3>
sortIntersectionsInSuperlayers</H3>
<PRE>
private void <B>sortIntersectionsInSuperlayers</B>(java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A>> allIntersections,
                                            java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A>>... layers)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getLinkedInters_3L(java.util.ArrayList)"><!-- --></A><H3>
getLinkedInters_3L</H3>
<PRE>
java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/LinkedInter.html" title="class in org.sot.centralTracking.bst">LinkedInter</A>> <B>getLinkedInters_3L</B>(java.util.ArrayList<<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A>> allInter)</PRE>
<DL>
<DD>creates BST track candidates by linking the intersections in the BST.  This assumes
 the 3 layer BST geometry.  (the 4 layer BST geometry is deprecated)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>allInter</CODE> - an arraylist of all intersections
<DT><B>Returns:</B><DD>an arraylist of all BST track candidates</DL>
</DD>
</DL>
<HR>

<A NAME="fitsTrackingParameters(org.sot.centralTracking.Helix)"><!-- --></A><H3>
fitsTrackingParameters</H3>
<PRE>
public boolean <B>fitsTrackingParameters</B>(<A HREF="../../../../org/sot/centralTracking/Helix.html" title="class in org.sot.centralTracking">Helix</A> h)</PRE>
<DL>
<DD>Checks if the helix fits the tracking parameters:
 <ul>
 <li>The estimated momentum of particle that produced the helix must be between 0.1 and 4.0 GeV.
 <li>The absolute difference between the radius of the helix and the distance between the center of the helix and 
 the beamline must be less than tracking parameter <code>R_vertex</code>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

<DT><B>Returns:</B><DD>true, if the helix fits the tracking parameters.
 false, if the helix does not fit the tracking parameters.<DT><B>See Also:</B><DD><A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#pT_min"><CODE>pT_min</CODE></A>, 
<A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#pT_max"><CODE>pT_max</CODE></A>, 
<A HREF="../../../../org/sot/services/bst/LinkIntersectionsBST.html#R_vertex"><CODE>R_vertex</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="dPhiWithinRange(org.sot.centralTracking.bst.IntersectionBST, org.sot.centralTracking.bst.IntersectionBST, double)"><!-- --></A><H3>
dPhiWithinRange</H3>
<PRE>
static boolean <B>dPhiWithinRange</B>(<A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A> i1,
                               <A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A> i2,
                               double dPhiMax)</PRE>
<DL>
<DD>checks if the difference of azimuthal angles of the two intersections 
 are within range specified by dPhiMax.  This takes into account the 
 equivalency between 0 and 2*PI
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>i1</CODE> - an <code>IntersectionBST</code><DD><CODE>i2</CODE> - another <code>IntersectionBST</code><DD><CODE>dPhiMax</CODE> - the maximum accepted difference of phi
<DT><B>Returns:</B><DD>true, if the phi values are within dPhiMax of one another.  else returns false</DL>
</DD>
</DL>
<HR>

<A NAME="accepts4thHit(org.sot.centralTracking.Helix, org.sot.centralTracking.bst.IntersectionBST)"><!-- --></A><H3>
accepts4thHit</H3>
<PRE>
boolean <B>accepts4thHit</B>(<A HREF="../../../../org/sot/centralTracking/Helix.html" title="class in org.sot.centralTracking">Helix</A> h,
                      <A HREF="../../../../org/sot/centralTracking/bst/IntersectionBST.html" title="class in org.sot.centralTracking.bst">IntersectionBST</A> inter4)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>only useful in the deprecated 4layer BST geometry</I>
<P>
<DD>During the central tracking, if a candidate has been found using 
 the first three superlayers of the BST, then this method can be 
 used to determine if a fourth hit matches with the helix calculated by
 the hits in the first three intersections.  The criterion for accepting 
 a fourth hit is:
 <p>sqrt(<big>|</big>(x4 - xc)<sup>2</sup> + (y4 - yc)<sup>2</sup> - R<sup>2</sup><big>|</big>) < a*R + b
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>h</CODE> - the helix<DD><CODE>inter4</CODE> - the candidate intersection in the fourth superlayer
<DT><B>Returns:</B><DD>true, if the tracking parameters allow the helix to accept the fourth hit
 else, return false.<DT><B>See Also:</B><DD><CODE>org.jSocrat.TrackParam#BST_distP4toCenter_a</CODE>, 
<CODE>org.jSocrat.TrackParam#BST_distP4toCenter_b</CODE></DL>
</DD>
</DL>
<HR>

<A NAME="sumsq(double...)"><!-- --></A><H3>
sumsq</H3>
<PRE>
double <B>sumsq</B>(double... d)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="destruct()"><!-- --></A><H3>
destruct</H3>
<PRE>
public void <B>destruct</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Specified by:</B><DD><CODE>destruct</CODE> in interface <CODE>org.jlab.coda.clara.core.ICService</CODE></DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 <A HREF="../../../../org/sot/services/bst/KalmanFilterServiceBST.html" title="class in org.sot.services.bst"><B>PREV CLASS</B></A> 
 <A HREF="../../../../org/sot/services/bst/RefitHelixBST.html" title="class in org.sot.services.bst"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?org/sot/services/bst/LinkIntersectionsBST.html" target="_top"><B>FRAMES</B></A>   
 <A HREF="LinkIntersectionsBST.html" target="_top"><B>NO FRAMES</B></A>   
 <SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>