lcsim/test/org/lcsim/detector/driver
diff -u -r1.3 -r1.4
--- SimTrackerHitIdentifierReadoutDriverTest.java 25 May 2007 23:55:52 -0000 1.3
+++ SimTrackerHitIdentifierReadoutDriverTest.java 6 Aug 2007 20:40:10 -0000 1.4
@@ -11,6 +11,7 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
+import org.lcsim.detector.solids.Inside;
import org.lcsim.detector.IDetectorElement;
import org.lcsim.detector.IReadout;
import org.lcsim.detector.identifier.Identifier;
@@ -115,7 +116,7 @@
assertEquals( "CellIDs do not match!", hit.getCellID(), deHit.getCellID() );
// Check that the SimTrackerHit is inside the DetectorElement it is assigned to.
- assertTrue( "SimTrackerHit not inside its DetectorElement!", de.getGeometry().isInside( new BasicHep3Vector( hit.getPoint() ) ) );
+ assertEquals( "SimTrackerHit not inside its DetectorElement!", de.getGeometry().inside( new BasicHep3Vector( hit.getPoint() ) ), Inside.INSIDE );
// Check that the hit can be looked up by position in the Readout hits.
SimTrackerHit lkpHit = findHitByPosition( hit, hits );
lcsim/test/org/lcsim/detector/driver
diff -u -r1.5 -r1.6
--- SimTrackerHitPositionalReadoutDriverTest.java 23 May 2007 20:13:44 -0000 1.5
+++ SimTrackerHitPositionalReadoutDriverTest.java 6 Aug 2007 20:40:10 -0000 1.6
@@ -11,6 +11,7 @@
import junit.framework.TestCase;
import junit.framework.TestSuite;
+import org.lcsim.detector.solids.Inside;
import org.lcsim.detector.IDetectorElement;
import org.lcsim.detector.IReadout;
import org.lcsim.detector.identifier.Identifier;
@@ -116,7 +117,7 @@
assertEquals( "CellIDs do not match!", hit.getCellID(), deHit.getCellID() );
// Check that the SimTrackerHit is inside the DetectorElement it is assigned to.
- assertTrue( "SimTrackerHit not inside its DetectorElement!", de.getGeometry().isInside( new BasicHep3Vector( hit.getPoint() ) ) );
+ assertEquals( "SimTrackerHit not inside its DetectorElement!", de.getGeometry().inside( new BasicHep3Vector( hit.getPoint() ) ), Inside.INSIDE );
// Check that the hit can be looked up by position in the Readout hits.
SimTrackerHit lkpHit = findHitByPosition( hit, hits );