Commit in GeomConverter/src/org/lcsim/geometry/subdetector on MAIN | |||
AbstractTestBeam.java | +6 | -7 | 1.10 -> 1.11 |
Fixed bug in reading position element from XML
diff -u -r1.10 -r1.11 --- AbstractTestBeam.java 3 Dec 2010 01:21:39 -0000 1.10 +++ AbstractTestBeam.java 11 Feb 2013 08:57:11 -0000 1.11 @@ -14,7 +14,7 @@
/** * @author Jeremy McCormick <[log in to unmask]>
- * @version $Id: AbstractTestBeam.java,v 1.10 2010/12/03 01:21:39 jeremy Exp $
+ * @version $Id: AbstractTestBeam.java,v 1.11 2013/02/11 08:57:11 grefe Exp $
*/ public abstract class AbstractTestBeam extends AbstractLayeredSubdetector {
@@ -56,11 +56,11 @@
Element positionElem = node.getChild( "position" );
- double posX = 0; - double posY = 0; - double posZ = 0; - if ( position != null )
+ if ( position == null )
{
+ double posX = 0; + double posY = 0; + double posZ = 0;
Attribute posAttrib = positionElem.getAttribute( "x" ); if ( posAttrib != null ) {
@@ -77,9 +77,8 @@
{ posZ = posAttrib.getDoubleValue(); }
+ this.position = new BasicHep3Vector( posX, posY, posZ );
}
- - this.position = new BasicHep3Vector( posX, posY, posZ );
} /**
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