Print

Print


Commit in lcsim/src/org/lcsim/fit/helicaltrack on MAIN
StereoHitMaker.java+31.8 -> 1.9
Check that stereo strip candidates have the same BarrelEndcapFlag before doing any real work.

lcsim/src/org/lcsim/fit/helicaltrack
StereoHitMaker.java 1.8 -> 1.9
diff -u -r1.8 -r1.9
--- StereoHitMaker.java	21 May 2009 21:48:15 -0000	1.8
+++ StereoHitMaker.java	10 Mar 2010 21:41:29 -0000	1.9
@@ -184,6 +184,9 @@
      */
     private boolean CheckCross(HelicalTrackStrip strip1, HelicalTrackStrip strip2) {
 
+        //  Check that the strips have the same BarrelEndcap Flag
+        if (strip1.BarrelEndcapFlag() != strip2.BarrelEndcapFlag()) return false;
+
         //  Check that the sensors planes are parallel to each other
         if (VecOp.cross(strip1.w(), strip2.w()).magnitude() > _eps) return false;
 
CVSspam 0.2.8