Index: trunk/FACT++/src/PixelMap.h
===================================================================
--- trunk/FACT++/src/PixelMap.h	(revision 11983)
+++ trunk/FACT++/src/PixelMap.h	(revision 11984)
@@ -114,5 +114,10 @@
     const PixelMapEntry &cbpx(int c, int b, int p, int px) const
     {
-        return cbpx(px + p*9 + b*36 + c*360);
+        return cbpx(px + p*10 + b*100 + c*1000);
+    }
+
+    const PixelMapEntry &hw(int idx) const
+    {
+        return cbpx(idx/360, (idx/36)%40, (idx/9)%10, idx%9);
     }
 
