Commit in GeomConverter/src/org/lcsim/detector/tracker/silicon on MAIN
SiPixels.java+20-31.4 -> 1.5
Add method to set capacitance of a pixel

GeomConverter/src/org/lcsim/detector/tracker/silicon
SiPixels.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- SiPixels.java	26 Apr 2009 19:30:06 -0000	1.4
+++ SiPixels.java	27 Apr 2009 22:20:07 -0000	1.5
@@ -36,6 +36,7 @@
     private double _row_pitch; // row pitch
     private double _col_pitch; // column pitch
     private double _window_size = 3.0; // # sigma for computing electrode data
+    private double _capacitance = 0.1;  // capacitance of a pixel in pF
 
     // cached for convenience
     private double _row_offset; // row offset
@@ -207,9 +208,26 @@
         return _carrier;
     }
 
-    // Capacitance of electrode
+
+    /**
+     * Returns the capacitance of a pixel in units of pF.
+     *
+     * @param cell_id
+     * @return
+     */
     public double getCapacitance(int cell_id) {
-        return 0.1;  // FIXME: hard wired for now to 0.1 pf
+        return _capacitance;
+    }
+
+    /**
+     * Set the pixel capacitance.  Currently, all pixels are assumed to have
+     * identical capacitance.  Note that the pixel capacitance is used in the
+     * readout noise calculation.  Units are pF.
+     *
+     * @param capacitance
+     */
+    public void setCapacitance(double capacitance) {
+        _capacitance = capacitance;
     }
 
     /**
@@ -222,7 +240,6 @@
      *
      * @param window_size window size in units of sigma
      */
-    // Window size for electrode data in units of 1 sigma
     public void setWindowSize(double window_size) {
         _window_size = Math.abs(window_size);
     }
CVSspam 0.2.8