Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN | |||
TrackUtils.java | +9 | -2 | 1.19 -> 1.20 |
Simple top/bot track fnc
diff -u -r1.19 -r1.20 --- TrackUtils.java 3 May 2013 23:18:56 -0000 1.19 +++ TrackUtils.java 3 Jul 2013 23:23:23 -0000 1.20 @@ -28,7 +28,7 @@
/** * * @author Omar Moreno <[log in to unmask]>
- * @version $Id: TrackUtils.java,v 1.19 2013/05/03 23:18:56 phansson Exp $
+ * @version $Id: TrackUtils.java,v 1.20 2013/07/03 23:23:23 phansson Exp $
* TODO: Switch to JLab coordinates */
@@ -404,7 +404,7 @@
HelicalTrackFit fit = new HelicalTrackFit(helix_parameters, cov, chisq, ndf,smap,msmap); return fit; }
-
+
public static Map<String,Double> calculateTrackHitResidual(HelicalTrackHit hth,HelicalTrackFit track, boolean includeMS ) { boolean debug = false;
@@ -671,5 +671,12 @@
return cuts[0]; }
+ public static boolean isTopTrack(HelicalTrackFit htf) { + return htf.slope()>0; + } + + public static boolean isBottomTrack(HelicalTrackFit htf) { + return !isTopTrack(htf); + }
}
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1