Print

Print


Commit in LCDetectors on MAIN
root/gdml.C+5added 1.1
Makefile+10-51.24 -> 1.25
+15-5
1 added + 1 modified, total 2 files
JM: Update root viewer command.

LCDetectors/root
gdml.C added at 1.1
diff -N gdml.C
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ gdml.C	7 Feb 2007 21:07:15 -0000	1.1
@@ -0,0 +1,5 @@
+void gdml(char* file="geometry.gdml")
+{
+    TGeoManager::Import(file);
+    gGeoManager->GetTopVolume()->Draw("ogl");
+}

LCDetectors
Makefile 1.24 -> 1.25
diff -u -r1.24 -r1.25
--- Makefile	2 Feb 2007 00:17:44 -0000	1.24
+++ Makefile	7 Feb 2007 21:07:16 -0000	1.25
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.24 2007/02/02 00:17:44 jeremy Exp $
+# $Id: Makefile,v 1.25 2007/02/07 21:07:16 jeremy Exp $
 
 #
 # Makefile using GeomConverter and shell tools to
@@ -25,8 +25,13 @@
 endif
 
 # How to run Python?
-ifndef PYTHON
-	PYTHON=python
+#ifndef PYTHON
+#	PYTHON=python
+#endif
+
+# How to call root?
+ifndef ROOT
+    ROOT=root
 endif
 
 # How to run DAWN?
@@ -303,9 +308,9 @@
 ifdef ROOTSYS
 
 # Load the GDML file into the Python/GDML/ROOT viewer.
+.PHONY: root
 root:
-	@$(PYTHON) -i $(ROOTSYS)/gdml/GDMLROOT.py file://$(PWD)/detectors/$(DETECTOR)/$(DETECTOR).gdml;
-
+	$(ROOT) './root/gdml.C("./detectors/$(DETECTOR)/$(DETECTOR).gdml")'
 endif
 
 # Use GeomConverter to create the HepRep file for a single detector.
CVSspam 0.2.8