GeomConverter/src/org/lcsim/geometry/subdetector
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 );
}
/**