Print

Print


Commit in GeomConverter/src/org/lcsim/geometry/subdetector on MAIN
PolyhedraBarrelCalorimeter.java+1-671.4 -> 1.5


GeomConverter/src/org/lcsim/geometry/subdetector
PolyhedraBarrelCalorimeter.java 1.4 -> 1.5
diff -u -r1.4 -r1.5
--- PolyhedraBarrelCalorimeter.java	7 Mar 2006 02:02:37 -0000	1.4
+++ PolyhedraBarrelCalorimeter.java	17 Sep 2006 01:05:20 -0000	1.5
@@ -29,71 +29,5 @@
         super(node);
         zlength = node.getChild("dimensions").getAttribute("z").getDoubleValue();
         orad = irad + getLayering().getThickness();
-    }
-    
-    /*public void appendHepRep(HepRepFactory factory, HepRep heprep)
-    {
-        HepRepInstanceTree instanceTree = heprep.getInstanceTreeTop("Detector","1.0");
-        HepRepTypeTree typeTree = heprep.getTypeTree("DetectorType","1.0");
-        HepRepType barrel = typeTree.getType("Barrel");
-        
-        HepRepType type = factory.createHepRepType(barrel, getName());
-        type.addAttValue("drawAs","Polygon");
-        
-        HepRepInstance instance = factory.createHepRepInstance(instanceTree, type);
-        
-         compute section (x,y) coordinates 
-        double rmin = getInnerR();
-        
-        double x1 = rmin * tan(getHalfSectionPhi());
-        double y1 = rmin;
-        
-        double x2 = -x1;
-        double y2 = y1;
-        
-        double z = getZLength() / 2;
-        
-        double rmax = getOuterR();
-        
-        double x4 = rmax * tan(getHalfSectionPhi());
-        double y4 = rmax;
-        
-        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++)
-        {            
-            instance = factory.createHepRepInstance(instanceTree, type);
-            
-            double ix1 = x1 * cos(phi) - y1 * sin(phi);
-            double iy1 = x1 * sin(phi) + y1 * cos(phi);
-            
-            double ix2 = x2 * cos(phi) - y2 * sin(phi);
-            double iy2 = x2 * sin(phi) + y2 * cos(phi);
-            
-            double ix3 = x3 * cos(phi) - y3 * sin(phi);
-            double iy3 = x3 * sin(phi) + y3 * cos(phi);
-            
-            double ix4 = x4 * cos(phi) - y4 * sin(phi);
-            double iy4 = x4 * sin(phi) + y4 * cos(phi);                       
-            
-             +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 
-            factory.createHepRepPoint(instance, ix4, iy4, -z);  
-            factory.createHepRepPoint(instance, ix3, iy3, -z);
-            factory.createHepRepPoint(instance, ix2, iy2, -z);
-            factory.createHepRepPoint(instance, ix1, iy1, -z);
-                       
-            phi += getSectionPhi();            
-        }
-    }*/
+    }   
 }
\ No newline at end of file
CVSspam 0.2.8