Print

Print


Commit in LCDetectors on MAIN
Makefile+9-11.18 -> 1.19
g4macros/heprep.mac+4added 1.1
+13-1
1 added + 1 modified, total 2 files
JM: Add target to generate hepreps using Geant4.

LCDetectors
Makefile 1.18 -> 1.19
diff -u -r1.18 -r1.19
--- Makefile	6 Oct 2006 01:23:17 -0000	1.18
+++ Makefile	6 Oct 2006 01:37:06 -0000	1.19
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.18 2006/10/06 01:23:17 jeremy Exp $
+# $Id: Makefile,v 1.19 2006/10/06 01:37:06 jeremy Exp $
 
 #
 # Makefile using GeomConverter and shell tools to
@@ -74,6 +74,7 @@
 	echo "cleanup        - make fresh copy of detector"; \
 	echo "cvs_commit     - commit changes to single detector"; \
 	echo "dawn           - generate prim file for DAWN for single detector"; \
+	echo "g4heprep       - make Geant4 heprep"; \
 	echo "gdml           - make GDML file for single detector"; \
 	echo "godl           - make GODL file for single detector"; \
 	echo "heprep         - make HepRep file for single detector"; \
@@ -96,6 +97,7 @@
 	echo ; \
 	echo "build_all      - rebuild all detectors"; \
 	echo "cleanup_all    - make fresh copies of all detectors"; \
+	echo "g4heprep_all   - make Geant4 hepreps"; \
 	echo "gdml_all       - make gdml files for all detectors"; \
 	echo "godl_all       - make GODL file for single detector"; \
 	echo "lcdd_all       - make LCDD files for all detectors"; \
@@ -304,6 +306,12 @@
 	@$(GEOMCONVERTER) -o heprep ./detectors/$(DETECTOR)/compact.xml ./detectors/$(DETECTOR)/$(DETECTOR).heprep &>/dev/null; \
 	echo "Created ./detectors/$(DETECTOR)/$(DETECTOR).heprep"
 
+# Use SLIC to make a Geant4 Heprep.
+g4heprep:
+	@$(SLICBIN) -g ./detectors/$(DETECTOR)/$(DETECTOR).lcdd -m ./g4macros/heprep.mac &>/dev/null; \
+	mv scene-0.heprep.zip ./detectors/$(DETECTOR)/$(DETECTOR)_geant4.heprep.zip; \
+	echo "Created ./detectors/$(DETECTOR)/$(DETECTOR)_geant4.heprep.zip"
+
 # Use GeomConverter to create the GODL file for a single detector.
 godl:
 	@$(GEOMCONVERTER) -o godl ./detectors/$(DETECTOR)/compact.xml ./detectors/$(DETECTOR)/$(DETECTOR).godl &>/dev/null; \

LCDetectors/g4macros
heprep.mac added at 1.1
diff -N heprep.mac
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ heprep.mac	6 Oct 2006 01:37:07 -0000	1.1
@@ -0,0 +1,4 @@
+/vis/scene/create
+/vis/scene/add/volume
+/vis/open HepRepXML
+/vis/viewer/flush
CVSspam 0.2.8