GeomConverter/src/org/lcsim/geometry/layer
diff -u -r1.4 -r1.5
--- Layer.java 21 Jun 2005 04:12:48 -0000 1.4
+++ Layer.java 23 Jun 2005 19:12:01 -0000 1.5
@@ -57,6 +57,22 @@
return thickness;
}
+ public double getThicknessToSensitive()
+ {
+ int i = findIndexOfFirstSensitiveSlice();
+
+ double thickness = 0.;
+
+ if ( i != -1) {
+
+ for ( int ii = 0; ii < i; ii++) {
+ thickness += slices.get(ii).getThickness();
+ }
+ }
+
+ return thickness;
+ }
+
public LayerSlice getSlice(int idx) {
if ( idx > slices.size() - 1) {
throw new IllegalArgumentException("LayerSlice idx out of range.");