GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd
diff -u -r1.3 -r1.4
--- SiStripTrackerBarrel.java 29 Sep 2006 21:37:20 -0000 1.3
+++ SiStripTrackerBarrel.java 29 Sep 2006 21:43:03 -0000 1.4
@@ -115,7 +115,11 @@
double rc = rphi_layout.getAttribute("rc").getDoubleValue();
// The delta radius of every other module.
- double rphi_dr = rphi_layout.getAttribute("dr").getDoubleValue();
+ double rphi_dr = 0.0;
+ if (rphi_layout.getAttribute("dr") != null)
+ {
+ rphi_dr = rphi_layout.getAttribute("dr").getDoubleValue();
+ }
// Phi increment for one module.
double phi_incr = (Math.PI * 2) / nphi;