Print

Print


Commit in hps-java/src/main/java/org/lcsim/hps/recon/tracking on MAIN
HPSHelicalTrackHitDriver.java+21-61.17 -> 1.18
Added debug output.

hps-java/src/main/java/org/lcsim/hps/recon/tracking
HPSHelicalTrackHitDriver.java 1.17 -> 1.18
diff -u -r1.17 -r1.18
--- HPSHelicalTrackHitDriver.java	9 Oct 2012 01:10:27 -0000	1.17
+++ HPSHelicalTrackHitDriver.java	7 Nov 2012 20:57:57 -0000	1.18
@@ -193,7 +193,7 @@
                     List<HelicalTrackStrip> hts = entry.getValue();
                     System.out.println(this.getClass().getSimpleName() + ": Total number of HelicalTrackStrips: " + ident + ": " + hts.size());
                     for(HelicalTrackStrip strip : hts) {
-                        System.out.println(this.getClass().getSimpleName() + ": strip at origin " + strip.origin().toString());
+                        System.out.println(this.getClass().getSimpleName() + ": strip at origin " + strip.origin().toString() + " umeas " + strip.umeas());
                     }
                 }
             }
@@ -201,17 +201,25 @@
             //  Now create the stereo hits
             //  Create a list of stereo hits
             List<HelicalTrackCross> stereohits = new ArrayList<HelicalTrackCross>();
-            if (_debug) {
-                System.out.println(this.getClass().getSimpleName() + ": Map size = " + striplistmap.size());
-            }
+            
+            if (_debug) System.out.println(this.getClass().getSimpleName() + ": Create stereo hits from " + striplistmap.size() + " strips (map size)");
+            
             //  Loop over the stereo layer pairs
             for (String id1 : _stereomap.keySet()) {
 
                 //  Get the second layer
                 String id2 = _stereomap.get(id1);
 
+                if (_debug) {
+                    System.out.println(this.getClass().getSimpleName() + ": Form stereo hits from " + id1 + " ( " + striplistmap.get(id1) + ") and " + id2 + " (" + striplistmap.get(id2) );
+                }
+                
                 //  Form the stereo hits and add them to our hit list
                 stereohits.addAll(_crosser.MakeHits(striplistmap.get(id1), striplistmap.get(id2)));
+                
+                if (_debug) System.out.println(this.getClass().getSimpleName() + ": stereo hits so far " + stereohits.size());
+                
+                
             }
 
             if (_debug) {
@@ -375,7 +383,8 @@
         Hep3Vector org = trans.transformed(_orgloc);
         Hep3Vector u = global.getMeasuredCoordinate();
         Hep3Vector v = global.getUnmeasuredCoordinate();
-
+        Hep3Vector w = VecOp.cross(u, v);
+         
         if(_debug) {
             System.out.println(this.getClass().getSimpleName() + ": local to global using transform:");
             System.out.println(this.getClass().getSimpleName() + ": rotation:");
@@ -393,7 +402,10 @@
             System.out.println(this.getClass().getSimpleName() + ": resulting org " + org.toString());
             System.out.println(this.getClass().getSimpleName() + ": resulting u " + u.toString());
             System.out.println(this.getClass().getSimpleName() + ": resulting v " + v.toString());
+            System.out.println(this.getClass().getSimpleName() + ": u.cross(v) " + w.toString());
             System.out.println(this.getClass().getSimpleName() + ": resulting umeas " + umeas);
+            System.out.println(this.getClass().getSimpleName() + ": vmin " + vmin + " vmax " + vmax);
+            
         }
         
         IDetectorElement de = h.getSensor();
@@ -417,7 +429,10 @@
             // Okay when MC info not present.
         }
         
-        if(_debug) System.out.println(this.getClass().getSimpleName() + ": produce final strip at " + strip.origin().toString());
+        if(_debug) {
+            System.out.println(this.getClass().getSimpleName() + ": produce final strip at origin " + strip.origin().toString());
+            System.out.println(this.getClass().getSimpleName() + ": produce final strip with vmin " + strip.vmin() + " vmax " + strip.vmax());   
+        }
 
         return strip;
     }
CVSspam 0.2.12


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