Commit in lcsim/src/org/lcsim/util/heprep on MAIN
LCSimHepRepConverter.java+5-221.12 -> 1.13
JM: Reverting accidental changes.

lcsim/src/org/lcsim/util/heprep
LCSimHepRepConverter.java 1.12 -> 1.13
diff -u -r1.12 -r1.13
--- LCSimHepRepConverter.java	29 Nov 2006 08:20:27 -0000	1.12
+++ LCSimHepRepConverter.java	29 Nov 2006 08:38:36 -0000	1.13
@@ -66,30 +66,13 @@
       HepRep root = factory.createHepRep();
 
       // Lets start with the detector
-
-      // Try to find heprep in zip file.
-      HepRep h = null;
-      try {
-	  HepRepConditions cond = new HepRepConditions();
-	  h = cond.getHepRep();
+      try
+      {
+          Detector detector = event.getDetector();
+          detector.appendHepRep(factory,root);
       }
       catch (Exception e)
-      {}
-
-      if (h != null) {
-	  System.out.println("using heprep from zip conditions file");
-	  root = h;
-      }
-      else {
-	  System.out.println("creating detector heprep on the fly");
-	  try
-          {
-	      Detector detector = event.getDetector();
-	      detector.appendHepRep(factory,root);
-	  }
-	  catch (Exception x)
-	  {
-	  }
+      {
       }
 
       // Now on to deal with the event data
CVSspam 0.2.8