GeomConverter/src/org/lcsim/geometry/compact/converter/lcdd
diff -u -r1.1 -r1.2
--- HPSTracker2.java 11 Apr 2012 23:07:34 -0000 1.1
+++ HPSTracker2.java 13 Jun 2012 05:16:45 -0000 1.2
@@ -54,7 +54,8 @@
// Place modules within the tracking volume.
private void createModulePlacements(LCDD lcdd, int sysId, String subdetName) throws DataConversionException {
- Volume trackingVolume = lcdd.getTrackingVolume();
+ //Volume trackingVolume = lcdd.getTrackingVolume();
+ Volume momVolume = lcdd.pickMotherVolume(this);
// Loop over layers.
for (Iterator i = node.getChildren("layer").iterator(); i.hasNext();) {
Element layerElement = (Element)i.next();
@@ -82,7 +83,8 @@
Rotation r = new Rotation(modulePlacementName + "_rotation", rx, ry, rz);
lcdd.add(p);
lcdd.add(r);
- PhysVol modulePhysVol = new PhysVol(modules.get(moduleName), trackingVolume, p, r);
+ //PhysVol modulePhysVol = new PhysVol(modules.get(moduleName), trackingVolume, p, r);
+ PhysVol modulePhysVol = new PhysVol(modules.get(moduleName), momVolume, p, r);
// Add identifier values to the placement volume.
modulePhysVol.addPhysVolID("system", sysId);
@@ -119,8 +121,7 @@
lcdd.add(moduleVolume);
if (params.getVis() != null) {
- moduleVolume
- .setVisAttributes(lcdd.getVisAttributes(params.getVis()));
+ moduleVolume.setVisAttributes(lcdd.getVisAttributes(params.getVis()));
}
return moduleVolume;