Commit in lcsim/src/org/lcsim/digisim on MAIN
CellSelector.java+3-21.10 -> 1.11
GL: bug fix

lcsim/src/org/lcsim/digisim
CellSelector.java 1.10 -> 1.11
diff -u -r1.10 -r1.11
--- CellSelector.java	12 Dec 2005 04:48:19 -0000	1.10
+++ CellSelector.java	18 Jan 2006 00:25:48 -0000	1.11
@@ -24,7 +24,7 @@
  * any cell in a given subdetector.
  *
  * @author Guilherme Lima
- * @version $Id: CellSelector.java,v 1.10 2005/12/12 04:48:19 lima Exp $
+ * @version $Id: CellSelector.java,v 1.11 2006/01/18 00:25:48 lima Exp $
  */
 public class CellSelector
 {
@@ -156,7 +156,8 @@
     }
 
     public int getCellCount() {
-	return _numCells;
+      if(_calsub==null) setupGeometry();
+      return _numCells;
     }
 
     /** Initialize fields from a ProjectiveCylinder */
CVSspam 0.2.8