Commit in GeomConverter/src/org/lcsim/geometry/subdetector on MAIN | |||
AbstractCylindricalTracker.java | +9 | -2 | 1.2 -> 1.3 |
Allow to set inner_z value as an attribute to create of-center cylinders
diff -u -r1.2 -r1.3 --- AbstractCylindricalTracker.java 30 Nov 2010 00:16:29 -0000 1.2 +++ AbstractCylindricalTracker.java 19 Jan 2012 12:43:54 -0000 1.3 @@ -6,7 +6,7 @@
/** * @author Jeremy McCormick <[log in to unmask]>
- * @version $Id: AbstractCylindricalTracker.java,v 1.2 2010/11/30 00:16:29 jeremy Exp $
+ * @version $Id: AbstractCylindricalTracker.java,v 1.3 2012/01/19 12:43:54 grefe Exp $
*/ abstract class AbstractCylindricalTracker extends AbstractTracker implements CylindricalSubdetector {
@@ -32,7 +32,14 @@
rmin = dimensions.getAttribute( "inner_r" ).getDoubleValue(); zmax = dimensions.getAttribute( "outer_z" ).getDoubleValue();
- zmin = -zmax;
+ if ( dimensions.getAttribute( "inner_z" ) != null ) + { + zmin = dimensions.getAttribute( "inner_z" ).getDoubleValue(); + } + else + { + zmin = -zmax; + }
rmax = rmin + getLayering().getLayers().getTotalThickness(); getLayering().setOffset( rmin ); }
Use REPLY-ALL to reply to list
To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1