Skip to content

Commit eb7cd39

Browse files
committed
Import Geant4 0.1.1 source tree
1 parent aaa409b commit eb7cd39

File tree

127 files changed

+1953
-1208
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+1953
-1208
lines changed

config/G4ODBMS_BUILD.gmk

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: G4ODBMS_BUILD.gmk,v 1.1 1999/01/07 15:58:31 gunter Exp $
1+
# $Id: G4ODBMS_BUILD.gmk,v 1.2 1999/09/17 13:15:29 morita Exp $
22
# ----------------------------------------------------------------
33
# GNUmakefile for CPPFLAGS for HepODBMS and Objectivity/DB.
44
# Youhei Morita, 9th July 1998.
@@ -11,6 +11,7 @@ endif
1111

1212
ifdef HEP_ODBMS_DIR
1313
CPPFLAGS += -I$(HEP_ODBMS_DIR)/include \
14+
-DHEP_ODBMS_EXPORT="" \
1415
-DHep_HAS_BUILDIN_BOOL_CONSTANTS
1516
endif
1617
#--------------------------------------------------------------------

config/History

+43-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$Id: History,v 1.50 1999/07/06 17:54:47 johna Exp $
2-
$Name: geant4-00-01 $
1+
$Id: History,v 1.61 1999/10/26 08:11:47 gcosmo Exp $
2+
$Name: geant4-00-01-patch1 $
33
-------------------------------------------------------------------
44

55
=========================================================
@@ -17,6 +17,47 @@ committal in the CVS repository !
1717
* Reverse chronological order (last date on top), please *
1818
----------------------------------------------------------
1919

20+
26th October 1999 Gabriele Cosmo (config-V00-01-03)
21+
- Removed AIX-xlC as default platform for G4SYSTEM in architecture.gmk.
22+
Configuration is still kept but no longer supported.
23+
24+
26th October 1999 Youhei Morita
25+
- architecture.gmk: include $(HEP_ODBMS_DIR)/etc/$(OS).mk instead of
26+
defininig load module separately. Defined G4ODBMS_LIBS.
27+
- binmake.gmk: Use G4ODBMS_LIBS.
28+
29+
20th October 1999 Gabriele Cosmo (config-V00-01-02)
30+
- architecture.gmk: removed option -DOS_NO_TYPEDEF_5 from HP-aCC
31+
OSpace setup. Not anymore needed.
32+
33+
20th October 1999 John Allison
34+
- architecture.gmk: removed G4USE_EXPLICIT_TYPES_IN_TEMPLATES (was needed
35+
only for HP aCC; now not needed at all).
36+
37+
19th Octobre 1999 Youhei Morita
38+
- common.gmk: Surpress verbose output for G4ODBMS if CPPVERBOSE
39+
is not defined.
40+
41+
7th October 1999 John Allison (config-V00-01-01)
42+
- Removed WARNINGs about granular libraries. Now standard usage. Simple
43+
using messages printed.
44+
45+
17th Sep 1999 Youhei Morita
46+
- architecture.gmk: Defined G4TMPSCHEMA_DIR, G4TMPSCHEMA_BOOT
47+
Added OBJY_LDLIB definition for Objectivity 5.1
48+
- binmake.gmk: LDLIBS1 += -lG4persistency
49+
- common.gmk: Changed ooddlx boot file option to G4OODDLX_BOOT
50+
- globlib.gmk: Changed G4EXAMPLE_BOOT to G4TMPSCHEMA_BOOT
51+
- G4ODBMS_BUILD.gmk: Defined HEP_ODBMS_EXPORT for HepODBMS 0.3.0.x
52+
53+
27th July 1999 Gonzalo Gracia Abril
54+
- Changed OSPACELIBS := '-libpath:c:\dev\ospace\lib std-2.1-vc5.0-mt.lib'
55+
to OSPACELIBS := '-libpath:$(OSPACEDIR)\lib std-2.1-vc5.0-mt.lib'
56+
in architecture.gmk for NT
57+
58+
20th July 1999 John Allison (config-V00-01-00)
59+
- Added EXTRA_LINK_DEPENDENCIES to binmake.gmk.
60+
2061
6th July 1999 John Allison (config-01-00-10)
2162
- Changed -L/usr/X11/lib to -L/usr/X11R6/lib for Linux.
2263

config/architecture.gmk

+31-27
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: architecture.gmk,v 1.36 1999/07/06 17:54:49 johna Exp $
1+
# $Id: architecture.gmk,v 1.42 1999/10/26 08:11:48 gcosmo Exp $
22
# ------------------------------------------------------------------------
33
# GEANT 4 - Architecture configuration script for GNU Make
44
#
@@ -13,9 +13,7 @@
1313
# List of the supported architectures/compilers and related flavors for
1414
# the environment variable G4SYSTEM:
1515
#
16-
# AIX-xlC AIX 4.3, (xlC) C Set ++ for AIX (default)
17-
#
18-
# SUN-CC SunOS 5.6, CC 4.2 compiler
16+
# SUN-CC SunOS 5.6, CC 4.2 compiler (default)
1917
#
2018
# HP-aCC HP-UX 10.20, aCC A.01.09 compiler
2119
#
@@ -26,9 +24,9 @@
2624
# Linux-g++ Linux (Red Hat 5.1), egcs 1.1
2725
#
2826
# WIN32-VC NT and Microsoft Visual C++ 5.0 or Microsoft Visual C++ 6.0
29-
# and using CYGWIN32 tools ( make, g++ as "makedepend", sh...)
30-
# ( Note: you will need to set your environment, see installation
31-
# guide.)
27+
# and using CYGWIN32 tools ( make, g++ as "makedepend", sh...)
28+
# Note: you will need to set your environment, see installation
29+
# guide.
3230
#
3331
# WIN32-VC-NICE alias for the above, although NICE is not used anymore.
3432
#
@@ -37,6 +35,16 @@
3735
# for g++ installed locally, because not full
3836
# installation on NICE)
3937
#
38+
# Note: If G4ODBMS is defined, it calls for HEP_ODBMS setup files in
39+
# $(HEP_ODBMS_DIR)/etc/.
40+
#
41+
42+
# Definition of HEP_ODBMS_LIBS, OBJY_LIBS and OSPACE_LIBS by HepODBMS
43+
ifdef G4ODBMS
44+
# variables LHCXXTOP and PLATF are used in HepODBMS setup
45+
include $(HEP_ODBMS_DIR)/etc/$(OS).mk
46+
G4ODBMS_LIBS := $(HEP_ODBMS_LIBS) $(OBJY_LIBS) $(OSPACE_LIBS)
47+
endif
4048

4149
MAKEFLAGS= --no-print-directory
4250

@@ -47,10 +55,10 @@ ifdef G4USE_STL
4755
CPPFLAGS += -DG4USE_STL
4856
endif
4957

50-
# If not specified, the default platform for G4SYSTEM is IBM-AIX ...
58+
# If not specified, the default platform for G4SYSTEM is SUN-CC ...
5159
#
5260
ifndef G4SYSTEM
53-
G4SYSTEM := AIX-xlC
61+
G4SYSTEM := SUN-CC
5462
endif
5563

5664
# If not specified, the default path for G4 installation G4INSTALL is
@@ -110,6 +118,17 @@ ifdef G4ODBMS
110118
G4DUMMY_VARIABLE:=$(shell [ ! -d $(G4SCHEMA_DIR) ] && mkdir -p $(G4SCHEMA_DIR) )
111119
endif
112120

121+
# If not specified, the default path for G4 temporary schema G4TMPSCHEMA_DIR is
122+
# set to $G4WORKDIR/tmp/schema (for building persistency library)...
123+
#
124+
ifndef G4TMPSCHEMA_DIR
125+
G4TMPSCHEMA_DIR := $(G4WORKDIR)/tmp/schema
126+
G4TMPSCHEMA_BOOT := $(G4TMPSCHEMA_DIR)/G4SCHEMA
127+
endif
128+
ifdef G4ODBMS
129+
G4DUMMY_VARIABLE:=$(shell [ ! -d $(G4TMPSCHEMA_DIR) ] && mkdir -p $(G4TMPSCHEMA_DIR) )
130+
endif
131+
113132
# If not specified, the default path for G4 example federated database is
114133
# set to $HOME/G4EXAMPLE ...
115134
#
@@ -168,7 +187,7 @@ ifdef G4USE_OSPACE
168187
ifeq ($(G4SYSTEM),WIN32-VC)
169188
OSPACEDIR := $(OBJECT_SPACE_BASE)
170189
OSPACEINC := -I$(OSPACEDIR)/ospace/std -I$(OSPACEDIR)/ospace/stl -I$(OSPACEDIR)
171-
OSPACELIBS := '-libpath:c:\dev\ospace\lib std-2.1-vc5.0-mt.lib'
190+
OSPACELIBS := '-libpath:$(OSPACEDIR)\lib std-2.1-vc5.0-mt.lib'
172191
CPPFLAGS += -DG4USE_STL -DG4USE_OLDSTL
173192
CPPFLAGS += -DOS_WIN_NT_4_0 -DOS_MULTI_THREADED -D_WIN32_WINNT $(OSPACEINC)
174193
endif
@@ -408,11 +427,6 @@ ifeq ($(G4SYSTEM),AIX-xlC)
408427
ifndef OGLLIBS
409428
OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
410429
endif
411-
ifdef G4ODBMS
412-
ifeq ($(OBJY_VERS),4.0.2)
413-
OBJY_LDLIB := oo_shar.4.02
414-
endif
415-
endif
416430
CPPFLAGS += -DG4NOT_ISO_DELETES
417431
ifdef G4USE_STL
418432
CPPFLAGS += -I$(RWINC)/wrappers/$(G4SYSTEM)
@@ -453,11 +467,6 @@ ifeq ($(G4SYSTEM),SUN-CC)
453467
ifndef OGLLIBS
454468
OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
455469
endif
456-
ifdef G4ODBMS
457-
ifeq ($(OBJY_VERS),4.0.2)
458-
OBJY_LDLIB := oo
459-
endif
460-
endif
461470
CPPFLAGS += -DSOCKET_IRIX_SOLARIS
462471
LOADLIBS += -L/usr/lib -lsocket -lnsl
463472
CPPFLAGS += -DG4NOT_ISO_DELETES
@@ -503,18 +512,13 @@ ifeq ($(G4SYSTEM),HP-aCC)
503512
OGLLIBS := -L$(OGLHOME)/lib -lGLU -lGL
504513
OGLLIBS += -L/opt/graphics/common/lib -lXwindow -lhpgfx -lXhp11 -ldld
505514
endif
506-
ifdef G4ODBMS
507-
ifeq ($(OBJY_VERS),4.0.2)
508-
OBJY_LDLIB := oo
509-
endif
510-
endif
511515
CPPFLAGS += -DG4NOT_ISO_DELETES
512516
ifdef G4USE_STL
513-
CPPFLAGS += -I$(RWINC)/wrappers/$(G4SYSTEM) -DG4USE_EXPLICIT_TYPES_IN_TEMPLATES
517+
CPPFLAGS += -I$(RWINC)/wrappers/$(G4SYSTEM)
514518
endif
515519
ifdef G4USE_OSPACE
516520
CPPFLAGS += -DOS_HPUX_10_20 -DOS_NEW_CHECK -DOS_STL_ASSERT -DOS_NO_WSTRING -DOS_NO_ALLOCATORS
517-
CPPFLAGS += -DOS_NO_TYPEDEF_5 -D__HPACC_NOEH -DG4USE_EXPLICIT_TYPES_IN_TEMPLATES
521+
CPPFLAGS += -D__HPACC_NOEH
518522
CPPFLAGS += -I$(RWINC)/wrappers/$(G4SYSTEM) $(OSPACEINC) -I$(OSPACEDIR)
519523
endif
520524
endif

config/binmake.gmk

+12-16
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: binmake.gmk,v 1.29 1999/07/06 15:19:42 gunter Exp $
1+
# $Id: binmake.gmk,v 1.33 1999/10/26 07:54:16 morita Exp $
22
# ----------------------------------------------------------
33
# Script defining rules and paths for making binaries.
44
# Gabriele Cosmo, 25/06/1998.
@@ -131,11 +131,12 @@ ifdef GLOBALLIBS
131131
LDLIBS1 += $(VISLIBS) $(UILIBS)
132132
endif
133133

134-
ifdef G4ODBMS
135-
LDLIBS1 += -lG4persistency
136-
endif
137-
138134
ifdef GLOBALLIBS
135+
136+
ifdef G4ODBMS
137+
LDLIBS1 += -lG4persistency
138+
endif
139+
139140
LDLIBS2 := -lG4readout \
140141
-lG4run \
141142
-lG4event \
@@ -176,10 +177,10 @@ ifdef G4ODBMS
176177
LDFLAGS += -L$(OBJY_DIR)/lib \
177178
-L$(HEP_ODBMS_DIR)/lib
178179

179-
# Note: -l$(OBJY_LDLIB) and -lHepODBMS should be placed
180+
# Note: $(G4ODBMS_LIBS) should be placed
180181
# _before_ -l$(CLHEP_LIB) -l$(RWLIB)
181182

182-
LDLIBS4 += -l$(OBJY_LDLIB) -lHepODBMS
183+
LDLIBS4 += $(G4ODBMS_LIBS)
183184
endif
184185
ifdef G4USE_OSPACE
185186
LDLIBS4 += $(OSPACELIBS)
@@ -210,7 +211,7 @@ sources := $(wildcard $(G4TARGET).cc)
210211
objects := $(patsubst %.cc,$(G4TMPDIR)/exe/%.o,$(sources))
211212
dependencies := $(patsubst %.cc,$(G4TMPDIR)/exe/%.d,$(sources))
212213

213-
LINK_DEPENDENCIES := $(G4TMPDIR)/exe/obj.last
214+
LINK_DEPENDENCIES := $(G4TMPDIR)/exe/obj.last $(EXTRA_LINK_DEPENDENCIES)
214215

215216
.PHONY: bin clean clean_bin debug
216217

@@ -220,14 +221,7 @@ bin: $(G4BINDIR)/$(G4TARGET)
220221
$(G4BINDIR)/$(G4TARGET): $(LINK_DEPENDENCIES)
221222
ifndef USER_DEFINED_LDLIBS
222223
ifndef GLOBALLIBS
223-
@echo "WARNING: This assumes you are using granular libraries!"
224-
@echo "WARNING: It looked for your global library G4global and,"
225-
@echo " not finding it, assumes you are using granular"
226-
@echo " libraries."
227-
@echo "WARNING: If you did not intend this, interrupt now (CTRL-C),"
228-
@echo " and go back and make global libraries, i.e.,"
229-
@echo ' cd $$G4INSTALL/source'
230-
@echo " gmake global"
224+
@echo "Using granular libraries."
231225
@if [ ! \( -f $(G4LIB)/$(G4SYSTEM)/liblist \
232226
-a -f $(G4LIB)/$(G4SYSTEM)/libname.map \) ]; then \
233227
echo "ERROR: No liblist program or library map file."; \
@@ -239,6 +233,8 @@ ifndef USER_DEFINED_LDLIBS
239233
echo " granular libraries:"; \
240234
echo " gmake libmap"; \
241235
exit 1; fi
236+
else
237+
@echo "Using global libraries."
242238
endif
243239
endif
244240
@if [ ! -d $(G4BINDIR) ] ; then mkdir $(G4BINDIR) ;fi

config/common.gmk

+21-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: common.gmk,v 1.1 1999/01/07 15:58:32 gunter Exp $
1+
# $Id: common.gmk,v 1.3 1999/10/19 13:07:01 morita Exp $
22
# ----------------------------------------------------------------
33
# Common part of GNUmakefile for libraries. John Allison, 5/7/95.
44
# ----------------------------------------------------------------
@@ -66,21 +66,37 @@ else
6666
endif
6767
ifdef G4ODBMS
6868
$(G4TMPDIR)/%.o: $(G4TMPDIR)/%.cc
69+
ifdef CPPVERBOSE
6970
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(G4TMPDIR)/$(*F).o $(G4TMPDIR)/$*.cc
71+
else
72+
@echo Compiling $*.cc ...
73+
@$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $(G4TMPDIR)/$(*F).o $(G4TMPDIR)/$*.cc
74+
endif
7075
endif
7176
# Make the temporary files.
7277
.PRECIOUS: $(G4TMPDIR)/%_ddl.cc ddl/%.hh $(G4TMPDIR)/%_ref.hh
7378

7479
ifdef G4ODBMS
7580
$(G4TMPDIR)/%_ddl.cc $(G4TMPDIR)/%.hh $(G4TMPDIR)/%_ref.hh: include/%.ddl
81+
ifndef G4OODDLX_BOOT
82+
@echo G4OODDLX_BOOT is not defined. Stop.
83+
exit 1
84+
endif
7685
@if [ ! -d $(G4TMP)/$(G4SYSTEM) ] ; then mkdir $(G4TMP)/$(G4SYSTEM) ;fi
7786
@if [ ! -d $(G4TMPDIR) ] ; then mkdir $(G4TMPDIR) ;fi
87+
ifdef CPPVERBOSE
7888
ooddlx -notitle -header_suffix .hh -ref_suffix _ref.hh -c++_suffix _ddl.cc \
7989
-DRW_NO_CONST_OVERLOAD -DRW_NO_STL -DTEMPLATEP_HIDES_FNCD \
80-
$(CPPFLAGS) $< $(G4EXAMPLE_BOOT)
81-
mv -f $*.hh $(G4TMPDIR)/
82-
mv -f $*_ref.hh $(G4TMPDIR)/
83-
mv -f $*_ddl.cc $(G4TMPDIR)/
90+
$(CPPFLAGS) $< $(G4OODDLX_BOOT)
91+
else
92+
@echo Preprocessing $< ...
93+
@ooddlx -notitle -header_suffix .hh -ref_suffix _ref.hh -c++_suffix _ddl.cc \
94+
-DRW_NO_CONST_OVERLOAD -DRW_NO_STL -DTEMPLATEP_HIDES_FNCD \
95+
$(CPPFLAGS) $< $(G4OODDLX_BOOT)
96+
endif
97+
@mv -f $*.hh $(G4TMPDIR)/
98+
@mv -f $*_ref.hh $(G4TMPDIR)/
99+
@mv -f $*_ddl.cc $(G4TMPDIR)/
84100
else
85101
$(G4TMPDIR)/%.hh: include/%.ddl
86102
@if [ ! -d $(G4TMP)/$(G4SYSTEM) ] ; then mkdir $(G4TMP)/$(G4SYSTEM) ;fi

config/globlib.gmk

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: globlib.gmk,v 1.2 1999/07/06 15:19:44 gunter Exp $
1+
# $Id: globlib.gmk,v 1.3 1999/09/17 13:28:04 morita Exp $
22
# --------------------------------------------------------------
33
# Script for compound libraries. Gabriele Cosmo, 25/6/98.
44
# --------------------------------------------------------------
@@ -20,6 +20,11 @@ else
2020
@for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) headers); done
2121
@for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) d_files); done
2222
@for dir in $(SUBDIRS); do (cd $$dir; G4ODBMS_DEPEND=1; export G4ODBMS_DEPEND; $(MAKE)); done
23+
@rm -f $(G4SCHEMA_DIR)/G4SCHEMA
24+
@rm -f $(G4SCHEMA_DIR)/G4SCHEMA.FDDB
25+
@echo Copying schema file to $(G4SCHEMA_DIR) for FDID $(G4SCHEMA_FDID)
26+
@$(HEP_ODBMS_DIR)/etc/getdb $(G4TMPSCHEMA_BOOT) \
27+
$(G4SCHEMA_DIR)/G4SCHEMA $(G4SCHEMA_FDID)
2328
endif
2429

2530
ifndef G4ODBMS
@@ -77,15 +82,13 @@ headers:
7782
d_files:
7883
@for dir in $(SUBDIRS); do (cd $$dir; $(MAKE) d_files); done
7984

80-
$(G4SCHEMA_DIR)/G4SCHEMA.FDDB: $(G4EXAMPLE_BOOT_DIR)/G4EXAMPLE.FDDB
81-
ifdef G4SCHEMA_DIR
85+
$(G4SCHEMA_DIR)/G4SCHEMA.FDDB: $(G4TMPSCHEMA_DIR)/G4SCHEMA.FDDB
8286
@rm -f $(G4SCHEMA_DIR)/G4SCHEMA
8387
@rm -f $(G4SCHEMA_DIR)/G4SCHEMA.FDDB
8488
@echo Copying schema file to $(G4SCHEMA_DIR) for FDID $(G4SCHEMA_FDID)
85-
@$(HEP_ODBMS_DIR)/etc/getdb $(G4EXAMPLE_BOOT) \
89+
@$(HEP_ODBMS_DIR)/etc/getdb $(G4TMPSCHEMA_BOOT) \
8690
$(G4SCHEMA_DIR)/G4SCHEMA $(G4SCHEMA_FDID)
8791
endif
88-
endif
8992

9093
objs:
9194
@for dir in $(SUBDIRS); \

examples/History

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$Id: History,v 1.16 1999/07/06 18:15:39 johna Exp $
1+
$Id: History,v 1.18 1999/08/05 12:29:59 stesting Exp $
22
-------------------------------------------------------------------
33

44
=========================================================
@@ -17,6 +17,12 @@ committal in the CVS repository !
1717
* Reverse chronological order (last date on top), please *
1818
----------------------------------------------------------
1919

20+
5th August 1999 John Allison (examples-V00-01-00)
21+
- Updated exampleN04.EMtest.out and exampleN04.out for geant4-00-01.
22+
23+
4th August 1999 John Allison
24+
- Eliminated references to G4Ray in ExN02VisManager.cc and N03.
25+
2026
6th July 1999 John Allison (examples-01-00-13)
2127
- Relaxed non-optimised compiling for ExN04PhysicsList.cc for Linux.
2228

0 commit comments

Comments
 (0)