GeomConverter/src/org/lcsim/geometry/subdetector
diff -u -r1.3 -r1.4
--- PolyhedraBarrelCalorimeter.java 2 Sep 2005 19:35:53 -0000 1.3
+++ PolyhedraBarrelCalorimeter.java 7 Mar 2006 02:02:37 -0000 1.4
@@ -31,7 +31,7 @@
orad = irad + getLayering().getThickness();
}
- public void appendHepRep(HepRepFactory factory, HepRep heprep)
+ /*public void appendHepRep(HepRepFactory factory, HepRep heprep)
{
HepRepInstanceTree instanceTree = heprep.getInstanceTreeTop("Detector","1.0");
HepRepTypeTree typeTree = heprep.getTypeTree("DetectorType","1.0");
@@ -42,7 +42,7 @@
HepRepInstance instance = factory.createHepRepInstance(instanceTree, type);
- /* compute section (x,y) coordinates */
+ compute section (x,y) coordinates
double rmin = getInnerR();
double x1 = rmin * tan(getHalfSectionPhi());
@@ -61,9 +61,9 @@
double x3 = -x4;
double y3 = y4;
- /*
+
* Place nsides sections by applying matrix transform to starting coordinates.
- */
+
double phi = 0;
for ( int i=0; i<getNumberOfSides(); i++)
{
@@ -81,13 +81,13 @@
double ix4 = x4 * cos(phi) - y4 * sin(phi);
double iy4 = x4 * sin(phi) + y4 * cos(phi);
- /* +z face */
+ +z face
factory.createHepRepPoint(instance, ix1, iy1, z);
factory.createHepRepPoint(instance, ix2, iy2, z);
factory.createHepRepPoint(instance, ix3, iy3, z);
factory.createHepRepPoint(instance, ix4, iy4, z);
- /* -z face */
+ -z face
factory.createHepRepPoint(instance, ix4, iy4, -z);
factory.createHepRepPoint(instance, ix3, iy3, -z);
factory.createHepRepPoint(instance, ix2, iy2, -z);
@@ -95,5 +95,5 @@
phi += getSectionPhi();
}
- }
+ }*/
}
\ No newline at end of file