Skip to content

Commit 36c080d

Browse files
committed
Import Geant4 3.2.0 source tree
1 parent 137e303 commit 36c080d

File tree

3,464 files changed

+118712
-52098
lines changed

Some content is hidden

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

3,464 files changed

+118712
-52098
lines changed

Configure

+4,092
Large diffs are not rendered by default.

ReleaseNotes/ReleaseNotes4.3.2.txt

+442
Large diffs are not rendered by default.

config/G4VIS_BUILD.gmk

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: G4VIS_BUILD.gmk,v 1.3 2000/01/29 00:41:49 asaim Exp $
1+
# $Id: G4VIS_BUILD.gmk,v 1.5 2001/06/19 20:38:12 johna Exp $
22
# -------------------------------------------------------------
33
# Visualization-specific CPPFLAGS for BUILD phase.
44
# John Allison, 24th January 1998.
@@ -78,8 +78,16 @@ ifdef G4VIS_BUILD_VRMLFILE_DRIVER
7878
endif
7979
# End of VRML and VRMLFILE drivers
8080

81-
ifdef G4VIS_BUILD
82-
CPPFLAGS += -DG4VIS_BUILD
81+
ifdef G4VIS_BUILD_ASCIITREE_DRIVER
82+
G4VIS_BUILD = 1
83+
CPPFLAGS += -DG4VIS_BUILD_ASCIITREE_DRIVER
8384
endif
8485

86+
ifdef G4VIS_BUILD_GAGTREE_DRIVER
87+
G4VIS_BUILD = 1
88+
CPPFLAGS += -DG4VIS_BUILD_GAGTREE_DRIVER
89+
endif
8590

91+
ifdef G4VIS_BUILD
92+
CPPFLAGS += -DG4VIS_BUILD
93+
endif

config/G4VIS_USE.gmk

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: G4VIS_USE.gmk,v 1.3 2000/01/29 00:41:49 asaim Exp $
1+
# $Id: G4VIS_USE.gmk,v 1.5 2001/06/19 20:38:31 johna Exp $
22
# -------------------------------------------------------------
33
# GNUmakefile for CPPFLAGS for visualization USE phase.
44
# John Allison, 24th January 1998.
@@ -91,6 +91,20 @@ ifdef G4VIS_USE_VRML_OR_VRMLFILE
9191
VISLIBS += -lG4VRML
9292
endif
9393

94+
ifdef G4VIS_USE_ASCIITREE
95+
G4VIS_USE_TREE = 1
96+
CPPFLAGS += -DG4VIS_USE_ASCIITREE
97+
endif
98+
ifdef G4VIS_USE_GAGTREE
99+
G4VIS_USE_TREE = 1
100+
CPPFLAGS += -DG4VIS_USE_GAGTREE
101+
endif
102+
ifdef G4VIS_USE_TREE
103+
G4VIS_USE = 1
104+
CPPFLAGS += -I$(G4BASE)/visualization/Tree/include
105+
VISLIBS += -lG4Tree
106+
endif
107+
94108
ifdef G4VIS_USE
95109
ifdef G4_SOLVE_TEMPLATES
96110
G4_SOLVE_VIS_TEMPLATES = 1

config/History

+65-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
$Id: History,v 1.132.2.1 2001/03/22 14:00:01 gunter Exp $
2-
$Name: geant4-03-01 $
1+
$Id: History,v 1.149 2001/06/29 12:49:25 gcosmo Exp $
2+
$Name: $
3+
34
-------------------------------------------------------------------
45

56
=========================================================
@@ -17,7 +18,68 @@ committal in the CVS repository !
1718
* Reverse chronological order (last date on top), please *
1819
----------------------------------------------------------
1920

20-
22 March 2001 Gunter Folger (config-V03-00-03)
21+
29th June 2001 Gabriele Cosmo (config-V03-01-10)
22+
- Updated source scripts for 'Configure'.
23+
24+
26th June 2001 Youhei Morita (config-V03-01-09)
25+
- globlib.gmk: added block for copying headers for persistency in $G4INCLUDE
26+
when invoking the 'includes' target.
27+
28+
25th June 2001 Youhei Morita (config-V03-01-08)
29+
- Restored lib_d target (again) in common.gmk with a protection of G4ODBMS.
30+
- Linux-g++.gmk (G.Cosmo)
31+
o Commented out -ansi setup for public release
32+
o Fixed logic for activating G4OODDLX_FLAGS on egcs compiler
33+
34+
22nd June Gabriele Cosmo (config-V03-01-07)
35+
- common.gmk (G.Folger):
36+
o removed lib_d target (again).
37+
o restored G4SKIP_DEPEND.
38+
- Linux-g++.gmk:
39+
o added temporary cludge for identify compiler version
40+
and define G4DDLX_FLAGS for egcs-1.1.2.
41+
- binmake.gmk:
42+
o added mechanism to correctly handle include paths when source headers
43+
are centrally installed in $G4INCLUDE. Temporarly disabled, requires
44+
update (re-design?) of liblist.c to properly generate the list of
45+
libraries from the map.
46+
Once activated, also G4UI_USE.gmk, G4VIS_USE.gmk and analysis.gmk
47+
have to be modified accordingly.
48+
49+
22nd June 2001 Youhei Morita (config-V03-01-06)
50+
- Restored lib_d target in common.gmk with a protection of G4ODBMS.
51+
- Get rid of G4SKIP_DEPEND in binmake.gmk.
52+
- Comment out G4DDLX_FLAGS options in sys/Linux-g++.gmk for gcc-2.95.2.
53+
54+
21st June 2001 Gunter Folger (config-V03-01-05)
55+
- Removed bin_d and lib_d targets and thus the re-start of make.
56+
57+
21st June 2001 Gunter Folger (config-V03-01-04)
58+
- common.gmk, binmake.gmk: run gmake via $(MAKE).
59+
60+
19th June 2001 John Allison (config-V03-01-03)
61+
- Added GAG_TREE to G4VIS_BUILD.gmk and G4VIS_USE.gmk.
62+
63+
20th June 2001 (Japan Time - still 19th in Europe!)
64+
Youhei Morita (config-V03-01-02)
65+
- A few bug fixes in binmake.gmk, common_objy.gmk, sys/SUN-CC5.gmk,
66+
sys/Linux-g++.gmk, sys/Win32-g++.gmk.
67+
68+
19th June 2001 Gabriele Cosmo
69+
- Removed G4_NO_CBRT flag from WIN32-VC setup. No more necessary.
70+
71+
30th May 2001 Gunter Folger
72+
- Do changes for persistency from Youhei: common.gmk is now split in three,
73+
one general, and one for specific for transient and persistent each.
74+
Dependencies now much better handled in persistency.
75+
76+
2nd May 2001 Gabriele Cosmo (config-V03-01-01)
77+
- Added options "-Wall -ansi -pedantic" to Linux-g++ setup.
78+
79+
10th April 2001 John Allison (config-V03-01-00)
80+
- Added G4VIS_BUILD_ASCIITREE_DRIVER and G4VIS_USE_ASCIITREE to G4VIS*gmk.
81+
82+
22nd March 2001 Gunter Folger (config-V03-00-03)
2183
- binmake.gmk, only store in executable PATH to libs from example/test;
2284
other libs should be taken/found from LD_LIBRARY_PATH
2385
- sys/{Linux-g++,SUN-CC}.gmk: enable storing of PATH to libs in executable

config/architecture.gmk

+4-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: architecture.gmk,v 1.70 2000/12/08 09:41:26 gcosmo Exp $
1+
# $Id: architecture.gmk,v 1.71 2001/05/30 15:04:13 gunter Exp $
22
# ------------------------------------------------------------------------
33
# GEANT 4 - Architecture configuration script for GNU Make
44
#
@@ -123,7 +123,8 @@ ifdef G4ODBMS
123123
# set to $G4LIB/$G4SYSTEM/schema ...
124124
#
125125
ifndef G4SCHEMA_DIR
126-
G4SCHEMA_DIR := $(G4LIB)/$(G4SYSTEM)/schema
126+
G4SCHEMA_DIR := $(G4LIB)/$(G4SYSTEM)/schema
127+
G4SCHEMA_BOOT := $(G4SCHEMA_DIR)/G4SCHEMA
127128
G4SCHEMA_INCLUDE := $(G4SCHEMA_DIR)/include
128129
endif
129130
ifndef G4SCHEMA_FDID
@@ -133,16 +134,6 @@ endif
133134
G4DUMMY_VARIABLE:=$(shell [ ! -d $(G4SCHEMA_DIR) ] && mkdir -p $(G4SCHEMA_DIR) )
134135
G4DUMMY_VARIABLE:=$(shell [ ! -d $(G4SCHEMA_INCLUDE) ] && mkdir -p $(G4SCHEMA_INCLUDE) )
135136

136-
# If not specified, the default path for G4 temporary schema G4TMPSCHEMA_DIR is
137-
# set to $G4TMP/$G4SYSTEM/schema (for building persistency library)...
138-
#
139-
ifndef G4TMPSCHEMA_DIR
140-
G4TMPSCHEMA_DIR := $(G4TMP)/$(G4SYSTEM)/schema
141-
G4TMPSCHEMA_BOOT := $(G4TMPSCHEMA_DIR)/G4SCHEMA
142-
endif
143-
144-
G4DUMMY_VARIABLE:=$(shell [ ! -d $(G4TMPSCHEMA_DIR) ] && mkdir -p $(G4TMPSCHEMA_DIR) )
145-
146137
# If not specified, the default path for G4 example schema G4EXAMPLE_BOOT_DIR is
147138
# set to $G4WORKDIR/exampleSchema (for persistency examples)...
148139
#
@@ -165,7 +156,7 @@ ifndef G4EXAMPLE_FD_DIR
165156
endif
166157

167158
G4DUMMY_VARIABLE:=$(shell [ ! -d $(G4EXAMPLE_FD_DIR) ] && mkdir -p $(G4EXAMPLE_FD_DIR) )
168-
G4OODDLX_FLAGS := -DTEMPLATEP_HIDES_FNCD
159+
G4DDLX_FLAGS := -DTEMPLATEP_HIDES_FNCD
169160

170161
ifndef G4EXAMPLE_FD
171162
G4EXAMPLE_FD = $(G4EXAMPLE_FD_DIR)/$(name)

config/binmake.gmk

+41-14
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# $Id: binmake.gmk,v 1.56.2.1 2001/03/22 13:54:24 gunter Exp $
1+
# $Id: binmake.gmk,v 1.63 2001/06/22 16:11:21 gcosmo Exp $
22
# ----------------------------------------------------------
33
# Script defining rules and paths for making binaries.
4-
# Gabriele Cosmo, 25/06/1998.
4+
# First implementation: Gabriele Cosmo, 25/06/1998.
55
# ----------------------------------------------------------
66

77
ifndef LDFLAGS
@@ -10,12 +10,20 @@ endif
1010

1111
G4LIBDIR := $(G4LIB)/$(G4SYSTEM)
1212

13+
# Define variable checking for existence of centrally installed headers.
14+
# If check will be true, avoid explicit definition of paths to INCFLAGS.
15+
#
16+
# G4INCLUDE_EXEC := $(shell [ -r $(G4INCLUDE)/globals.hh ] && echo 1)
17+
1318
include $(G4INSTALL)/config/G4UI_USE.gmk
1419
include $(G4INSTALL)/config/G4VIS_USE.gmk
1520
include $(G4INSTALL)/config/interactivity.gmk
1621
include $(G4INSTALL)/config/analysis.gmk
1722

1823
ifndef INCFLAGS
24+
# ifeq ($(G4INCLUDE_EXEC),1)
25+
# INCFLAGS := -I$(G4INCLUDE)
26+
# else
1927
INCFLAGS := \
2028
-I$(G4BASE)/global/management/include \
2129
-I$(G4BASE)/global/HEPRandom/include \
@@ -83,9 +91,11 @@ ifndef INCFLAGS
8391
-I$(G4BASE)/graphics_reps/include \
8492
-I$(G4BASE)/intercoms/include \
8593
-I$(G4BASE)/g3tog4/include
94+
# endif
8695
endif
8796

8897
ifdef G4ODBMS
98+
# ifneq ($(G4INCLUDE_EXEC),1)
8999
INCFLAGS += \
90100
-I$(G4BASE)/persistency/global/include \
91101
-I$(G4BASE)/persistency/digits+hits/hits/include \
@@ -95,8 +105,9 @@ ifdef G4ODBMS
95105
-I$(G4BASE)/persistency/geometry/solids/CSG/include \
96106
-I$(G4BASE)/persistency/geometry/solids/Boolean/include \
97107
-I$(G4BASE)/persistency/geometry/management/include \
98-
-I$(G4BASE)/persistency/management/include \
99-
-I$(G4SCHEMA_INCLUDE) \
108+
-I$(G4BASE)/persistency/management/include
109+
# endif
110+
INCFLAGS += -I$(G4SCHEMA_INCLUDE) \
100111
-I$(OBJY_DIR)/include \
101112
-I$(HEP_ODBMS_DIR)/include \
102113
-DHep_HAS_BUILDIN_BOOL_CONSTANTS
@@ -125,8 +136,8 @@ ifdef G4EXLIB
125136
LDFLAGS += -L$(G4LIBDIR)
126137
ifdef SHAREDLIBS
127138
ifdef G4RUNPATHOPTION
128-
# for the example dependant directory, keep the path to the shared lib
129-
# in the executable.
139+
# For the example dependent directory, keep the
140+
# path to the shared lib in the executable.
130141
LDFLAGS += $(G4RUNPATHOPTION)$(G4LIBDIR)
131142
endif
132143
endif
@@ -253,7 +264,13 @@ else
253264
.PHONY: bin clean clean_bin debug cleandb newboot newfd
254265
endif
255266

267+
#
268+
# Target "bin" requires dependency files when G4ODBMS=1.
269+
# gmake must be recursively called with MAKE_DFILES=1.
270+
#
271+
256272
# Make $(G4TARGET) executable.
273+
257274
bin: $(G4BINDIR)/$(G4TARGET)
258275

259276
$(G4BINDIR)/$(G4TARGET): $(LINK_DEPENDENCIES)
@@ -313,17 +330,14 @@ else
313330
endif
314331

315332
# Make the $(G4TARGET).d file and include it.
316-
ifdef G4SKIP_DEPEND
317-
$(G4TMPDIR)/exe/$(G4TARGET).d: $(G4TARGET).cc
318-
@echo Skip dependency file creation for file $< ...
319-
else
320333
$(G4TMPDIR)/exe/$(G4TARGET).d: $(G4TARGET).cc
321334
@if [ ! -d $(G4TMP)/$(G4SYSTEM) ] ; then mkdir $(G4TMP)/$(G4SYSTEM) ;fi
322335
@if [ ! -d $(G4TMPDIR) ] ; then mkdir $(G4TMPDIR) ;fi
323336
@if [ ! -d $(G4TMPDIR)/exe ] ; then mkdir $(G4TMPDIR)/exe ;fi
324337
@echo Making dependency for file $<...
325338
@($(ECHO) $(G4TMPDIR)/exe/\\c ; \
326339
g++ $(GPPFLAGS) $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/exe/$*.o!& $@!' >$@
340+
ifneq ($(dependencies),)
327341
-include $(dependencies)
328342
endif
329343

@@ -347,6 +361,14 @@ ifdef G4ODBMS
347361

348362
cleandb: clean newboot
349363

364+
$(G4EXAMPLE_BOOT):
365+
@echo Copying schema file to $(G4EXAMPLE_BOOT) for FDID $(G4EXAMPLE_FDID)
366+
@rm -f $(G4EXAMPLE_BOOT_DIR)/$(name)
367+
@rm -f $(G4EXAMPLE_BOOT_DIR)/$(name).FDDB
368+
@rm -f $(G4EXAMPLE_BOOT_DIR)/*.$(name).DB
369+
@$(HEP_ODBMS_DIR)/etc/getdb $(G4SCHEMA_DIR)/G4SCHEMA \
370+
$(G4EXAMPLE_BOOT) $(G4SCHEMA_FDID)
371+
350372
newboot:
351373
@echo Copying schema file to $(G4EXAMPLE_BOOT) for FDID $(G4EXAMPLE_FDID)
352374
@rm -f $(G4EXAMPLE_BOOT_DIR)/$(name)
@@ -355,17 +377,22 @@ newboot:
355377
@$(HEP_ODBMS_DIR)/etc/getdb $(G4SCHEMA_DIR)/G4SCHEMA \
356378
$(G4EXAMPLE_BOOT) $(G4SCHEMA_FDID)
357379

380+
$(G4EXAMPLE_FD):
381+
@echo Creating new runtime federated database $(G4EXAMPLE_BOOT) for FDID $(G4EXAMPLE_FDID)
382+
@rm -f $(G4EXAMPLE_FD_DIR)/$(name)
383+
@rm -f $(G4EXAMPLE_FD_DIR)/$(name).FDDB
384+
@rm -f $(G4EXAMPLE_FD_DIR)/*.$(name).DB
385+
@$(HEP_ODBMS_DIR)/etc/getdb $(G4EXAMPLE_BOOT) \
386+
$(G4EXAMPLE_FD) $(G4EXAMPLE_FDID)
387+
358388
newfd:
359-
ifndef G4EXAMPLE_FDID
360-
@echo G4EXAMPLE_FDID is not defined. Stop.
361-
exit 1
362-
endif
363389
@echo Creating new runtime federated database $(G4EXAMPLE_BOOT) for FDID $(G4EXAMPLE_FDID)
364390
@rm -f $(G4EXAMPLE_FD_DIR)/$(name)
365391
@rm -f $(G4EXAMPLE_FD_DIR)/$(name).FDDB
366392
@rm -f $(G4EXAMPLE_FD_DIR)/*.$(name).DB
367393
@$(HEP_ODBMS_DIR)/etc/getdb $(G4EXAMPLE_BOOT) \
368394
$(G4EXAMPLE_FD) $(G4EXAMPLE_FDID)
395+
369396
endif
370397
############################- targets for G4ODBMS -############################
371398

0 commit comments

Comments
 (0)