lcsim/src/org/lcsim/util/heprep
diff -u -r1.4 -r1.5
--- VertexConverter.java 3 Oct 2007 06:36:44 -0000 1.4
+++ VertexConverter.java 3 Oct 2007 16:47:22 -0000 1.5
@@ -23,7 +23,7 @@
* Representation of the Candidate vertices before fitting
*
* @author jstrube
- * @version $Id: VertexConverter.java,v 1.4 2007/10/03 06:36:44 jstrube Exp $
+ * @version $Id: VertexConverter.java,v 1.5 2007/10/03 16:47:22 ngraf Exp $
*
*/
public class VertexConverter implements HepRepCollectionConverter {
@@ -56,6 +56,18 @@
typeX.addAttValue("MarkName", "Box");
typeX.addAttDef("nTracks", "number of Tracks", "physics", "");
+ // TODO allow the error ellipse to be defined in terms of a confidence level
+ // for this, will need to get the number of degrees of freedom from the vertex
+ // fit. See Numerical Recipes for the procedure to calculate the following numbers.
+ //
+ // confidence level number of degrees of freedom
+ // 1 2 3 4 5 6
+ // 68.3 % 1.00 2.30 3.53 4.72 5.89 7.04
+ // 90 % 2.71 4.61 6.25 7.78 9.24 10.6
+ // 95.4 % 4.00 6.17 8.02 9.70 11.3 12.8
+ // 99 % 6.63 9.21 11.3 13.3 15.1 16.8
+ // 99.99% 15.1 18.4 21.1 23.5 25.7 27.8
+ //
double nSigma = 30.;
typeX.addAttDef("sigma", "error scale factor", "physics", "The error in each dimension is multiplied by this factor");
typeX.addAttValue("sigma", nSigma);