Print

Print


Commit in hps-java/src/test/java/org/lcsim/hps/evio on MAIN
RawTrackerHitToEvio4Converter.java+5-41.2 -> 1.3

hps-java/src/test/java/org/lcsim/hps/evio
RawTrackerHitToEvio4Converter.java 1.2 -> 1.3
diff -u -r1.2 -r1.3
--- RawTrackerHitToEvio4Converter.java	1 Mar 2012 22:44:20 -0000	1.2
+++ RawTrackerHitToEvio4Converter.java	1 Mar 2012 22:49:05 -0000	1.3
@@ -21,7 +21,7 @@
  * and compares the two to make sure they match.
  * 
  * @author Jeremy McCormick <[log in to unmask]>
- * @version $Id: RawTrackerHitToEvio4Converter.java,v 1.2 2012/03/01 22:44:20 jeremy Exp $
+ * @version $Id: RawTrackerHitToEvio4Converter.java,v 1.3 2012/03/01 22:49:05 jeremy Exp $
  */
 public class RawTrackerHitToEvio4Converter extends Driver {
 
@@ -60,11 +60,11 @@
         bank[2] = (int)format.charAt(4) << 24 | (int)format.charAt(5) << 16 | (int)format.charAt(6) << 8 | (int)format.charAt(7); // I , I )
         bank[3]  = 0x00 << 24 | 0x04 << 16 | 0x00 << 8 | 0x04; // Terminate with a couple ASCII '4' characters.  (Needed???) 
         
-        // bank (length, tag, composite type, number)
-        bank[4]  = 6; // This is the length of the data segment.  This has to be 6 and not 5 but not sure why.
+        // bank (length, tag, composite type, number) = (6, 16, composite_flag, 1)
+        bank[4]  = 6; // This is the length of the data segment.  This has to be 6 to include the N for repeating data structures.
         bank[5]  = 6 << 16 | 0xF << 8 | 1;
         
-        // N to repeat.  Here 1 is used for testing.
+        // N to repeat.  This uses 1 just for testing.
         bank[6]  = 0x1; // N
 
         // ID --> L
@@ -126,6 +126,7 @@
             if (hit.getADCValues()[0] != adc) {
                 throw new RuntimeException("ADC value doesn't match.");
             }
+            
             System.out.println("----------------------------");
         }
     }
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