/** Format the 1.6.x.x.x... string into a 32 bits word */
  private void compactDetIds(ArrayList<ArrayList<String>> list) throws Exception {
    for (int i = 0; i < list.size(); i++) {
      ArrayList<String> v = list.get(i);

      DetIdConverter d = null;
      if ((v.get(1)).startsWith("1.6.")) {
        d = new TECDetIdConverter(v.get(1));
      } else {
        if ((v.get(1)).startsWith("1.5.")) d = new TOBDetIdConverter(v.get(1));
        else throw new Exception("The Det_ID should start with 1.6 (TEC) or 1.5 (TOB)");
      }

      v.set(1, d.compact() + "");
    }
  }