Print

Print


Author: [log in to unmask]
Date: Tue Oct 13 17:13:16 2015
New Revision: 3685

Log:
make the flip of local unit vectors be overridable

Modified:
    projects/lcsim/trunk/tracking/src/main/java/org/lcsim/fit/helicaltrack/HelicalTrackStrip.java

Modified: projects/lcsim/trunk/tracking/src/main/java/org/lcsim/fit/helicaltrack/HelicalTrackStrip.java
 =============================================================================
--- projects/lcsim/trunk/tracking/src/main/java/org/lcsim/fit/helicaltrack/HelicalTrackStrip.java	(original)
+++ projects/lcsim/trunk/tracking/src/main/java/org/lcsim/fit/helicaltrack/HelicalTrackStrip.java	Tue Oct 13 17:13:16 2015
@@ -29,9 +29,9 @@
  */
 public class HelicalTrackStrip {
     private Hep3Vector _origin;
-    private Hep3Vector _u;
-    private Hep3Vector _v;
-    private Hep3Vector _w;
+    protected Hep3Vector _u;
+    protected Hep3Vector _v;
+    protected Hep3Vector _w;
     private double _umeas;
     private double _du;
     private double _vmin;
@@ -91,7 +91,13 @@
             _vmin = _vmax;
             _vmax = vtemp;
         }
-        
+
+	//Find the sensor normal        
+        initW();
+
+    }
+    
+    protected void initW() {
         //  Find the sensor normal and make sure it is pointing in the "outgoing" direction
         _w = VecOp.cross(_u, _v);
         if (VecOp.dot(_w, _origin) < 0) {
@@ -199,4 +205,4 @@
     public String toString(){
         return ("Strip with u="+this.u().toString()+"\n v="+this.v().toString() + "\n vmin="+this.vmin() + "\n vmax="+this.vmax() + "\n umeas="+this.umeas()+"\n origin="+this.origin().toString()); 
     }
-}
+}

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the LCDET-SVN list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCDET-SVN&A=1