GeomConverter/src/org/lcsim/detector/converter/heprep
diff -u -r1.2 -r1.3
--- DetectorElementToHepRepConverter.java 27 Mar 2007 20:40:54 -0000 1.2
+++ DetectorElementToHepRepConverter.java 29 Mar 2007 22:28:11 -0000 1.3
@@ -59,26 +59,10 @@
points[6] = new BasicHep3Vector(x2,y2,z2);
points[7] = new BasicHep3Vector(x2,y1,z2);
- // DEBUG
- //HepRepInstance debugInstance = factory.createHepRepInstance(instanceTree, type);
- // END DEBUG
-
for (int i=0; i<points.length; i++)
- {
- // DEBUG
- //factory.createHepRepPoint(
- // debugInstance,
- // points[i].x(),
- // points[i].y(),
- // points[i].z()
- // );
- // END DEBUG
-
- System.out.println("original pnt : " + points[i]);
+ {
Hep3Vector vec = geo.transformLocalToGlobal(points[i]);
- System.out.println("transformed pnt : " + vec);
- System.out.println();
- points[i] = vec;
+ points[i] = vec;
}
for (int i=0; i<points.length; i++)
@@ -90,19 +74,7 @@
vec.y(),
vec.z()
);
- }
-
- /*
- factory.createHepRepPoint(instance, x1, y1, z1);
- factory.createHepRepPoint(instance, x1, y2, z1);
- factory.createHepRepPoint(instance, x2, y2, z1);
- factory.createHepRepPoint(instance, x2, y1, z1);
-
- factory.createHepRepPoint(instance, x1, y1, z2);
- factory.createHepRepPoint(instance, x1, y2, z2);
- factory.createHepRepPoint(instance, x2, y2, z2);
- factory.createHepRepPoint(instance, x2, y1, z2);
- */
+ }
}
else if ( solid instanceof Tube )
{