Print

Print


Author: [log in to unmask]
Date: Wed Sep  2 23:49:15 2015
New Revision: 3503

Log:
Change the position of the GBL flag.

Modified:
    java/trunk/tracking/src/main/java/org/hps/recon/tracking/TrackType.java

Modified: java/trunk/tracking/src/main/java/org/hps/recon/tracking/TrackType.java
 =============================================================================
--- java/trunk/tracking/src/main/java/org/hps/recon/tracking/TrackType.java	(original)
+++ java/trunk/tracking/src/main/java/org/hps/recon/tracking/TrackType.java	Wed Sep  2 23:49:15 2015
@@ -34,7 +34,12 @@
     }
    
     /**
-     * Track type encoder.  
+     * Track type encoder.  The strategy (S) and GBL flag (G) are packed as 
+     * follows:
+     * 
+     * Note that Z denotes zero
+     * 
+     * ZZZZZZZZZZZZZZZZZZZZZZZZZZGSSSSS
      * 
      * @param strategyType The StrategyType associated with the tracking 
      *                     tracking strategy of interest.
@@ -44,7 +49,7 @@
     private static int encodeType(StrategyType strategyType, boolean isGblTrack) { 
        
         int type = strategyType.getType();
-        if (isGblTrack) type = (type ^ (1 << 7));
+        if (isGblTrack) type = (type ^ (1 << 6));
         
         return type; 
     }