Import Geant4 0.1.0 source tree
This commit is contained in:
+53
-16
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 2.2 1998/07/05 12:40:59 allison Exp $
|
||||
# $Id: GNUmakefile,v 1.11 1999/06/24 10:49:47 johna Exp $
|
||||
# -----------------------------------------------------------------
|
||||
# "gmake" makes default libraries for each subdomain.
|
||||
# "gmake glob" makes global libraries for each subdomain.
|
||||
@@ -20,45 +20,83 @@ ifndef G4INSTALL
|
||||
endif
|
||||
|
||||
include $(G4INSTALL)/config/architecture.gmk
|
||||
G4BINDIR := $(G4BIN)/$(G4SYSTEM)
|
||||
G4LIBDIR := $(G4LIB)/$(G4SYSTEM)
|
||||
G4TMPDIR := $(G4TMP)/$(G4SYSTEM)
|
||||
unique := $(shell echo $$$$)
|
||||
|
||||
.PHONY: all glob global vis clean_libs clean clean_all
|
||||
.PHONY: all glob global libmap clean_libs clean clean_all
|
||||
|
||||
all:
|
||||
@for dir in $(SUBDIR1); do (cd $$dir; $(MAKE)); done
|
||||
@for dir in $(SUBDIR2); do (cd $$dir; $(MAKE)); done
|
||||
@for dir in $(SUBDIR3); do (cd $$dir; $(MAKE)); done
|
||||
$(MAKE) libmap
|
||||
|
||||
glob global:
|
||||
@for dir in $(SUBDIR1); do (cd $$dir; $(MAKE) global); done
|
||||
@for dir in $(SUBDIR2); do (cd $$dir; $(MAKE)); done
|
||||
@for dir in $(SUBDIR3); do (cd $$dir; $(MAKE)); done
|
||||
|
||||
# Following vis target is obsolete and should be removed
|
||||
#
|
||||
vis:
|
||||
@for dir in $(SUBDIR1); do (cd $$dir; $(MAKE) global); done
|
||||
@for dir in $(SUBDIR2); do (cd $$dir; $(MAKE)); done
|
||||
@for dir in $(SUBDIR3); do (cd $$dir; $(MAKE)); done
|
||||
libmap: $(G4LIBDIR)/liblist
|
||||
@echo "WARNING: Making a library map of granular libraries."
|
||||
@echo " This is a list of libraries in order of use, and for"
|
||||
@echo " each library a list of other libraries used."
|
||||
@echo " To do this is needs a complete set of dependency"
|
||||
@echo " files, e.g., after gmake in the source/ directory."
|
||||
@echo "Searching $(G4INSTALL)/source"
|
||||
@echo ' for GNUmakefiles containing "name" and sorting...'
|
||||
@find $(G4INSTALL)/source \
|
||||
-name GNUmakefile -exec $(GREP) -l 'name :=' {} \; \
|
||||
| sort \
|
||||
> /tmp/G4_all_lib_makefiles.$(unique);
|
||||
@echo "Weeding out global level GNUmakefiles and non-libraries..."
|
||||
@for i in `cat /tmp/G4_all_lib_makefiles.$(unique)`; \
|
||||
do \
|
||||
$(GREP) -q SUBDIR $$i || \
|
||||
$(GREP) -q G4hepgeometry $$i || \
|
||||
echo $$i >> /tmp/G4_granlib_makefiles.$(unique); \
|
||||
done
|
||||
@echo "Making libname.map starter file..."
|
||||
@touch /tmp/G4libname.map.starter.$(unique);
|
||||
@for i in `cat /tmp/G4_granlib_makefiles.$(unique)`; \
|
||||
do \
|
||||
$(GREP) 'name :=' $$i | cut -d \ -f 3 \
|
||||
>> /tmp/G4libname.map.starter.$(unique); \
|
||||
echo $$i >> /tmp/G4libname.map.starter.$(unique); \
|
||||
done
|
||||
@echo "Making libname.map..."
|
||||
@rm -f $(G4LIBDIR)/libname.map;
|
||||
G4TMP=$(G4TMP); export G4TMP; \
|
||||
$(G4LIBDIR)/liblist -l -d $(G4TMPDIR) \
|
||||
< /tmp/G4libname.map.starter.$(unique) \
|
||||
> $(G4LIBDIR)/libname.map
|
||||
@rm -f /tmp/G4_all_lib_makefiles.$(unique);
|
||||
@rm -f /tmp/G4_granlib_makefiles.$(unique);
|
||||
@rm -f /tmp/G4libname.map.starter.$(unique);
|
||||
|
||||
$(G4LIBDIR)/liblist: $(G4INSTALL)/config/liblist.c
|
||||
@echo "Compiling liblist.c..."
|
||||
@if [ ! -d $(G4LIBDIR) ] ; then mkdir $(G4LIBDIR) ;fi
|
||||
$(CC) $(CCFLAGS) -o $(G4LIBDIR)/liblist $(G4INSTALL)/config/liblist.c
|
||||
|
||||
clean_libs:
|
||||
@echo Removing all libraries ...
|
||||
@for dir in $(SUBDIR1); do (cd $$dir; $(MAKE) clean_libs); done
|
||||
@for dir in $(SUBDIR2); do (cd $$dir; $(MAKE) clean_libs); done
|
||||
@for dir in $(SUBDIR3); do (cd $$dir; $(MAKE) clean_libs); done
|
||||
ifdef CFRONT
|
||||
@rm -rf $(G4TREP)
|
||||
endif
|
||||
@rm -rf $(G4LIBDIR)/libname.map
|
||||
|
||||
clean:
|
||||
@echo Removing current $(G4SYSTEM) installation ...
|
||||
@rm -rf $(G4TMP)/$(G4SYSTEM)
|
||||
@rm -rf $(G4LIB)/$(G4SYSTEM)
|
||||
@rm -rf $(G4BIN)/$(G4SYSTEM)
|
||||
@rm -rf $(G4TMPDIR)
|
||||
@rm -rf $(G4LIBDIR)
|
||||
@rm -rf $(G4BINDIR)
|
||||
ifdef CFRONT
|
||||
@rm -rf $(G4TREP)
|
||||
endif
|
||||
|
||||
# Pay _extremely_ attention to perform the following target !!
|
||||
# Pay _extremely_ attention before executing the following target !!
|
||||
#
|
||||
clean_all:
|
||||
@echo Removing all installations ...
|
||||
@@ -68,4 +106,3 @@ clean_all:
|
||||
@rm -rf $(G4LIB)
|
||||
@echo Removing $(G4BIN) ...
|
||||
@rm -rf $(G4BIN)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 2.0 1998/07/02 16:15:33 gunter Exp $
|
||||
# $Id: GNUmakefile,v 1.1 1999/01/07 16:06:23 gunter Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for digits+hits library. Makoto Asai, 1/11/96.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 2.3 1998/10/26 01:52:40 asaim Exp $
|
||||
$Id: History,v 1.1 1999/01/07 16:06:23 gunter Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 2.0 1998/07/02 16:14:54 gunter Exp $
|
||||
# $Id: GNUmakefile,v 1.1 1999/01/07 16:06:24 gunter Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for digits+hits library. Makoto Asai, 1/11/96.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 2.0 1998/07/02 16:14:40 gunter Exp $
|
||||
$Id: History,v 1.1 1999/01/07 16:06:24 gunter Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HCtable.hh,v 2.1 1998/07/12 02:53:17 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4HCtable.hh,v 1.1 1999/01/07 16:06:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4HCtable_H
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDManager.hh,v 2.1 1998/07/12 02:53:19 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SDManager.hh,v 1.1 1999/01/07 16:06:24 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4SDManager_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDStructure.hh,v 2.1 1998/07/12 02:53:19 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SDStructure.hh,v 1.1 1999/01/07 16:06:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4SDStructure_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDmessenger.hh,v 2.1 1998/07/12 02:53:20 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SDmessenger.hh,v 1.1 1999/01/07 16:06:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4SDmessenger_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SensitiveVolumeList.hh,v 2.1 1998/07/12 02:53:20 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SensitiveVolumeList.hh,v 1.1 1999/01/07 16:06:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file --- Copyright CERN 1996
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SensitiveVolumeList.icc,v 2.0 1998/07/02 16:14:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SensitiveVolumeList.icc,v 1.1 1999/01/07 16:06:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// -----------------------------------------------------------
|
||||
// Inline functions of GEANT 4 class header file.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VReadOutGeometry.hh,v 2.1 1998/07/12 02:53:20 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VReadOutGeometry.hh,v 1.1 1999/01/07 16:06:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VSensitiveDetector.hh,v 2.1 1998/07/12 02:53:21 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VSensitiveDetector.hh,v 1.1 1999/01/07 16:06:25 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VSensitiveDetector_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HCtable.cc,v 2.1 1998/07/12 02:53:29 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4HCtable.cc,v 1.1 1999/01/07 16:06:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4HCtable.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDManager.cc,v 2.2 1998/07/13 16:50:04 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SDManager.cc,v 1.1 1999/01/07 16:06:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4SDManager.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDStructure.cc,v 2.2 1998/07/13 16:50:05 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SDStructure.cc,v 1.1 1999/01/07 16:06:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// G4SDStructure
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SDmessenger.cc,v 2.2 1998/07/14 17:24:16 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SDmessenger.cc,v 1.1 1999/01/07 16:06:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4SensitiveVolumeList.cc,v 2.1 1998/07/12 02:53:31 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4SensitiveVolumeList.cc,v 1.1 1999/01/07 16:06:26 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 class implementation file
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VReadOutGeometry.cc,v 2.1 1998/07/12 02:53:31 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VReadOutGeometry.cc,v 1.1 1999/01/07 16:06:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4VReadOutGeometry.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VSensitiveDetector.cc,v 2.1 1998/07/12 02:53:32 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VSensitiveDetector.cc,v 1.1 1999/01/07 16:06:27 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// G4VSensitiveDetector
|
||||
#include "G4VSensitiveDetector.hh"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 2.0 1998/07/02 16:15:12 gunter Exp $
|
||||
# $Id: GNUmakefile,v 1.1 1999/01/07 16:06:27 gunter Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for digits+hits library. Makoto Asai, 1/11/96.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 2.0 1998/07/02 16:15:04 gunter Exp $
|
||||
$Id: History,v 1.1 1999/01/07 16:06:27 gunter Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4DCofThisEvent.hh,v 2.2 1998/10/26 01:53:21 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4DCofThisEvent.hh,v 1.1 1999/01/07 16:06:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4DCofThisEvent_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TDigiCollection.hh,v 2.1 1998/07/12 02:53:35 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TDigiCollection.hh,v 1.1 1999/01/07 16:06:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4TDigiCollection_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VDigi.hh,v 2.1 1998/07/12 02:53:36 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VDigi.hh,v 1.1 1999/01/07 16:06:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VDigi_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VDigiCollection.hh,v 2.1 1998/07/12 02:53:37 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VDigiCollection.hh,v 1.1 1999/01/07 16:06:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VDigiCollection_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4DCofThisEvent.cc,v 2.1 1998/07/12 02:53:39 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4DCofThisEvent.cc,v 1.1 1999/01/07 16:06:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4DCofThisEvent.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TDigiCollection.cc,v 2.0 1998/07/02 16:15:05 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TDigiCollection.cc,v 1.1 1999/01/07 16:06:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4TDigiCollection.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VDigi.cc,v 2.1 1998/07/12 02:53:39 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VDigi.cc,v 1.1 1999/01/07 16:06:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// G4VDigi
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VDigiCollection.cc,v 2.1 1998/07/12 02:53:40 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VDigiCollection.cc,v 1.1 1999/01/07 16:06:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// G4VDigiCollection
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 2.0 1998/07/02 16:15:31 gunter Exp $
|
||||
# $Id: GNUmakefile,v 1.1 1999/01/07 16:06:29 gunter Exp $
|
||||
# --------------------------------------------------------------
|
||||
# GNUmakefile for digits+hits library. Makoto Asai, 1/11/96.
|
||||
# --------------------------------------------------------------
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 2.0 1998/07/02 16:15:22 gunter Exp $
|
||||
$Id: History,v 1.1 1999/01/07 16:06:30 gunter Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HCofThisEvent.hh,v 2.2 1998/10/26 01:53:29 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4HCofThisEvent.hh,v 1.1 1999/01/07 16:06:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4HCofThisEvent_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4THitsCollection.hh,v 2.1 1998/07/12 02:53:42 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4THitsCollection.hh,v 1.1 1999/01/07 16:06:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4THitsCollection_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VHit.hh,v 2.1 1998/07/12 02:53:42 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VHit.hh,v 1.1 1999/01/07 16:06:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VHit_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VHitsCollection.hh,v 2.1 1998/07/12 02:53:43 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VHitsCollection.hh,v 1.1 1999/01/07 16:06:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VHitsCollection_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HCofThisEvent.cc,v 2.1 1998/07/12 02:53:44 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4HCofThisEvent.cc,v 1.1 1999/01/07 16:06:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4HCofThisEvent.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4THitsCollection.cc,v 2.0 1998/07/02 16:15:23 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4THitsCollection.cc,v 1.1 1999/01/07 16:06:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4THitsCollection.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VHit.cc,v 2.1 1998/07/12 02:53:44 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VHit.cc,v 1.1 1999/01/07 16:06:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// G4VHit
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VHitsCollection.cc,v 2.1 1998/07/12 02:53:45 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VHitsCollection.cc,v 1.1 1999/01/07 16:06:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// G4VHitsCollection
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: GNUmakefile,v 2.2 1998/11/18 18:33:18 kurasige Exp $
|
||||
# $Id: GNUmakefile,v 1.1 1999/01/07 16:06:31 gunter Exp $
|
||||
# ------------------------------------------------------------
|
||||
# GNUmakefile for events library. Makoto Asai, 5/9/95.
|
||||
# ------------------------------------------------------------
|
||||
|
||||
+10
-1
@@ -1,4 +1,4 @@
|
||||
$Id: History,v 2.7 1998/11/11 11:15:48 asaim Exp $
|
||||
$Id: History,v 1.4 1999/06/07 16:53:58 stesting Exp $
|
||||
-------------------------------------------------------------------
|
||||
|
||||
=========================================================
|
||||
@@ -17,6 +17,15 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
Jun 7, 99, J.Allison (tag event-01-00-03)
|
||||
- Trapped "G4HEPEvtInterface:: cannot open file."
|
||||
|
||||
Apr 15, 99 M.Asai (tag event-01-00-02)
|
||||
- Catch up the changes of trajectory classes in tracking category.
|
||||
|
||||
Apr 09, 99 M.Asai (tag event-01-00-01)
|
||||
- Change the pointer arguments in user action classes to const.
|
||||
|
||||
Nov 11, 98 M.Asai (tag event-00-03-04)
|
||||
- Optimize G4PrimaryVertex for events such as having huge number
|
||||
of primaries.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ClassificationOfNewTrack.hh,v 2.0 1998/07/02 16:53:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4ClassificationOfNewTrack.hh,v 1.1 1999/01/07 16:06:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4EvManMessenger.hh,v 2.2 1998/07/12 03:42:11 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4EvManMessenger.hh,v 1.1 1999/01/07 16:06:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4EvManMessenger_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Event.hh,v 2.2 1998/09/21 02:01:39 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4Event.hh,v 1.1 1999/01/07 16:06:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4Event_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4EventManager.hh,v 2.2 1998/10/10 10:51:17 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4EventManager.hh,v 1.2 1999/04/15 08:41:50 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 10/Dec/96 M.Asai
|
||||
@@ -28,7 +28,7 @@ class G4UserSteppingAction;
|
||||
class G4EvManMessenger;
|
||||
#include "G4TrackingManager.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Trajectory.hh"
|
||||
#include "G4VTrajectory.hh"
|
||||
#include "G4TrackStatus.hh"
|
||||
class G4SDManager;
|
||||
#include "globals.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HEPEvtInterface.hh,v 2.1 1998/07/12 02:53:50 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4HEPEvtInterface.hh,v 1.1 1999/01/07 16:06:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4HEPEvtInterface_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HEPEvtParticle.hh,v 2.1 1998/07/12 02:53:50 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4HEPEvtParticle.hh,v 1.1 1999/01/07 16:06:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleGun.hh,v 2.2 1998/10/01 16:41:52 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4ParticleGun.hh,v 1.1 1999/01/07 16:06:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4ParticleGun_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleGunMessenger.hh,v 2.2 1998/07/12 03:42:15 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4ParticleGunMessenger.hh,v 1.1 1999/01/07 16:06:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PrimaryParticle.hh,v 2.2 1998/10/10 10:51:18 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4PrimaryParticle.hh,v 1.1 1999/01/07 16:06:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PrimaryTransformer.hh,v 2.2 1998/10/10 10:51:18 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4PrimaryTransformer.hh,v 1.1 1999/01/07 16:06:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4PromaryTransformer_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PrimaryVertex.hh,v 2.3 1998/11/11 11:19:37 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4PrimaryVertex.hh,v 1.1 1999/01/07 16:06:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StackManager.hh,v 2.1 1998/07/12 02:53:54 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4StackManager.hh,v 1.1 1999/01/07 16:06:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 09/Dec/96 M.Asai
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StackedTrack.hh,v 2.1 1998/07/12 02:53:54 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4StackedTrack.hh,v 1.1 1999/01/07 16:06:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 02/Feb/96 M.Asai
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StackingMessenger.hh,v 2.2 1998/07/12 03:42:17 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4StackingMessenger.hh,v 1.1 1999/01/07 16:06:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4StackingMessenger_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TrackStack.hh,v 2.1 1998/07/12 02:53:55 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TrackStack.hh,v 1.1 1999/01/07 16:06:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 09/Dec/96 M.Asai
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TrajectoryContainer.hh,v 2.0 1998/07/02 16:53:34 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TrajectoryContainer.hh,v 1.2 1999/04/15 08:41:51 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// G4TrajectoryContainer
|
||||
@@ -16,11 +16,11 @@
|
||||
#define G4TrajectoryContainer_h 1
|
||||
|
||||
// TrackManagement
|
||||
#include "G4Trajectory.hh"
|
||||
#include "G4VTrajectory.hh"
|
||||
// RWTPtrOrderedVector
|
||||
#include <rw/tpordvec.h>
|
||||
|
||||
typedef RWTPtrOrderedVector<G4Trajectory> G4TrajectoryContainer;
|
||||
typedef RWTPtrOrderedVector<G4VTrajectory> G4TrajectoryContainer;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4UserEventAction.hh,v 2.1 1998/07/12 02:53:56 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4UserEventAction.hh,v 1.2 1999/04/09 03:04:00 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//
|
||||
@@ -15,16 +15,17 @@
|
||||
#define G4UserEventAction_h 1
|
||||
|
||||
class G4EventManager;
|
||||
class G4Event;
|
||||
|
||||
class G4UserEventAction
|
||||
{
|
||||
public:
|
||||
virtual ~G4UserEventAction()
|
||||
{;}
|
||||
G4UserEventAction() {;}
|
||||
virtual ~G4UserEventAction() {;}
|
||||
inline void SetEventManager(G4EventManager* value)
|
||||
{ fpEventManager = value; };
|
||||
virtual void BeginOfEventAction();
|
||||
virtual void EndOfEventAction();
|
||||
{ fpEventManager = value; }
|
||||
virtual void BeginOfEventAction(const G4Event* anEvent);
|
||||
virtual void EndOfEventAction(const G4Event* anEvent);
|
||||
protected:
|
||||
G4EventManager* fpEventManager;
|
||||
};
|
||||
|
||||
@@ -5,11 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4UserStackingAction.hh,v 2.1 1998/07/12 02:53:56 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 09/Dec/96 M.Asai
|
||||
// $Id: G4UserStackingAction.hh,v 1.2 1999/04/09 03:04:01 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4UserStackingAction_h
|
||||
@@ -28,7 +25,7 @@ class G4UserStackingAction
|
||||
G4StackManager * stackManager;
|
||||
public:
|
||||
inline void SetStackManager(G4StackManager * value)
|
||||
{ stackManager = value; };
|
||||
{ stackManager = value; }
|
||||
|
||||
public:
|
||||
//---------------------------------------------------------------
|
||||
@@ -36,7 +33,7 @@ class G4UserStackingAction
|
||||
//---------------------------------------------------------------
|
||||
//
|
||||
virtual G4ClassificationOfNewTrack
|
||||
ClassifyNewTrack(G4Track *const aTrack);
|
||||
ClassifyNewTrack(const G4Track* aTrack);
|
||||
//
|
||||
// Reply G4ClassificationOfNewTrack determined by the
|
||||
// newly coming G4Track.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VPrimaryGenerator.hh,v 2.1 1998/07/12 02:53:57 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VPrimaryGenerator.hh,v 1.1 1999/01/07 16:06:35 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#ifndef G4VPrimaryGenerator_h
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: eventgendefs.hh,v 2.0 1998/07/02 16:53:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: eventgendefs.hh,v 1.1 1999/01/07 16:06:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
#ifndef EventGenerator_DEBUG
|
||||
#define EventGenerator_DEBUG
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: evmandefs.hh,v 2.0 1998/07/02 16:53:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: evmandefs.hh,v 1.1 1999/01/07 16:06:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
///#define G4EVENTMANAGER_DEBUG 1
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: trajectoryControl.hh,v 2.1 1998/10/10 10:51:20 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: trajectoryControl.hh,v 1.1 1999/01/07 16:06:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
////#define G4_STORE_TRAJECTORY 1
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4EvManMessenger.cc,v 2.2 1998/07/12 03:42:25 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4EvManMessenger.cc,v 1.1 1999/01/07 16:06:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4Event.cc,v 2.3 1998/09/21 02:02:09 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4Event.cc,v 1.1 1999/01/07 16:06:36 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// G4Event
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4EventManager.cc,v 2.2 1998/07/13 16:50:12 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4EventManager.cc,v 1.2 1999/04/15 08:41:52 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
//
|
||||
@@ -79,7 +79,7 @@ void G4EventManager::ProcessOneEvent(G4Event* anEvent)
|
||||
if(sdManager)
|
||||
{ currentEvent->SetHCofThisEvent(sdManager->PrepareNewEvent()); }
|
||||
|
||||
if(userEventAction) userEventAction->BeginOfEventAction();
|
||||
if(userEventAction) userEventAction->BeginOfEventAction(currentEvent);
|
||||
|
||||
#ifdef G4VERBOSE
|
||||
if ( verboseLevel > 1 )
|
||||
@@ -127,7 +127,7 @@ void G4EventManager::ProcessOneEvent(G4Event* anEvent)
|
||||
#endif
|
||||
|
||||
#ifdef G4_STORE_TRAJECTORY
|
||||
G4Trajectory * aTrajectory = trackManager->GimmeTrajectory();
|
||||
G4VTrajectory * aTrajectory = trackManager->GimmeTrajectory();
|
||||
if(aTrajectory)
|
||||
{
|
||||
if(!trajectoryContainer)
|
||||
@@ -176,7 +176,7 @@ void G4EventManager::ProcessOneEvent(G4Event* anEvent)
|
||||
currentEvent->SetTrajectoryContainer(trajectoryContainer);
|
||||
#endif
|
||||
|
||||
if(userEventAction) userEventAction->EndOfEventAction();
|
||||
if(userEventAction) userEventAction->EndOfEventAction(currentEvent);
|
||||
currentEvent = NULL;
|
||||
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HEPEvtInterface.cc,v 2.3 1998/07/18 10:34:11 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4HEPEvtInterface.cc,v 1.2 1999/06/07 16:53:57 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
@@ -27,7 +27,12 @@
|
||||
G4HEPEvtInterface::G4HEPEvtInterface(char* evfile)
|
||||
{
|
||||
inputFile.open(evfile);
|
||||
fileName = evfile;
|
||||
if (inputFile) {
|
||||
fileName = evfile;
|
||||
}
|
||||
else {
|
||||
G4Exception("G4HEPEvtInterface:: cannot open file.");
|
||||
}
|
||||
}
|
||||
|
||||
G4HEPEvtInterface::G4HEPEvtInterface(G4String evfile)
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4HEPEvtParticle.cc,v 2.0 1998/07/02 16:53:56 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4HEPEvtParticle.cc,v 1.1 1999/01/07 16:06:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleGun.cc,v 2.2 1998/07/13 16:50:14 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4ParticleGun.cc,v 1.1 1999/01/07 16:06:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// G4ParticleGun
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleGunMessenger.cc,v 2.4 1998/10/01 16:58:31 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4ParticleGunMessenger.cc,v 1.1 1999/01/07 16:06:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4ParticleGunMessenger.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PrimaryParticle.cc,v 2.3 1998/10/10 10:51:24 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4PrimaryParticle.cc,v 1.1 1999/01/07 16:06:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4PrimaryParticle.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PrimaryTransformer.cc,v 2.2 1998/10/10 10:51:25 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4PrimaryTransformer.cc,v 1.1 1999/01/07 16:06:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4PrimaryTransformer.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4PrimaryVertex.cc,v 2.4 1998/11/11 11:19:42 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4PrimaryVertex.cc,v 1.1 1999/01/07 16:06:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4PrimaryVertex.hh"
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StackManager.cc,v 2.2 1998/07/13 16:50:19 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4StackManager.cc,v 1.1 1999/01/07 16:06:39 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 09/Dec/96 M.Asai
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StackedTrack.cc,v 2.0 1998/07/02 16:54:06 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4StackedTrack.cc,v 1.1 1999/01/07 16:06:40 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 02/Feb/96 M.Asai
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StackingMessenger.cc,v 2.3 1998/07/13 16:50:21 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4StackingMessenger.cc,v 1.1 1999/01/07 16:06:40 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4TrackStack.cc,v 2.1 1998/07/12 02:54:07 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4TrackStack.cc,v 1.1 1999/01/07 16:06:40 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 09/Dec/96 M.Asai
|
||||
|
||||
@@ -5,15 +5,17 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4UserEventAction.cc,v 2.1 1998/07/12 02:54:08 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4UserEventAction.cc,v 1.2 1999/04/09 03:04:03 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4UserEventAction.hh"
|
||||
#include "G4Event.hh"
|
||||
#include "G4EventManager.hh"
|
||||
|
||||
void G4UserEventAction::BeginOfEventAction()
|
||||
void G4UserEventAction::BeginOfEventAction(const G4Event* anEvent)
|
||||
{;}
|
||||
|
||||
void G4UserEventAction::EndOfEventAction()
|
||||
void G4UserEventAction::EndOfEventAction(const G4Event* anEvent)
|
||||
{;}
|
||||
|
||||
|
||||
@@ -5,11 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4UserStackingAction.cc,v 2.2 1998/07/13 16:50:22 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// Last Modification : 09/Dec/96 M.Asai
|
||||
// $Id: G4UserStackingAction.cc,v 1.2 1999/04/09 03:04:04 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
#include "G4UserStackingAction.hh"
|
||||
@@ -23,7 +20,7 @@ G4UserStackingAction::~G4UserStackingAction()
|
||||
{;}
|
||||
|
||||
G4ClassificationOfNewTrack G4UserStackingAction::ClassifyNewTrack
|
||||
(G4Track * const aTrack)
|
||||
(const G4Track* aTrack)
|
||||
{
|
||||
return fUrgent;
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4VPrimaryGenerator.cc,v 2.0 1998/07/02 16:54:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VPrimaryGenerator.cc,v 1.1 1999/01/07 16:06:41 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
|
||||
// G4VPrimaryGenerator
|
||||
|
||||
+13
-27
@@ -44,13 +44,14 @@ CPPFLAGS += \
|
||||
-I$(G4BASE)/processes/decay/include \
|
||||
-I$(G4BASE)/track/include \
|
||||
-I$(G4BASE)/tracking/include \
|
||||
-I$(G4BASE)/digits+hits/detector/include \
|
||||
-I$(G4BASE)/digits+hits/hits/include \
|
||||
-Itest
|
||||
### kludge for AIX
|
||||
|
||||
ifeq ($(FC),xlf)
|
||||
cpp_include_flag=-WF,-I
|
||||
### -d writes out F*.f file
|
||||
# FCFLAGS += -d $(patsubst -I%,$(cpp_include_flag)%,$(CPPFLAGS))
|
||||
FCFLAGS += -d $(patsubst -I%,$(cpp_include_flag)%,-Iinclude)
|
||||
### xlf prepends .f name with F
|
||||
dotf_prepend=F
|
||||
@@ -94,16 +95,15 @@ cernlibs := $(shell cernlib -v $(cernlibv) geant321 packlib)
|
||||
### .PHONY targets are executed regardless of time-stamp of any file of same
|
||||
### name
|
||||
|
||||
.PHONY: global all lib bin libC libF ext geom
|
||||
.PHONY: global all lib bin libC libF
|
||||
|
||||
###--------------------- section to define explicit rules --------------------
|
||||
##first: lib bin
|
||||
|
||||
first: lib
|
||||
|
||||
global: lib
|
||||
|
||||
all: ext lib bin examples
|
||||
all: lib bin examples
|
||||
@echo $@ stage done in $(curdir)
|
||||
|
||||
examples: cltog4 clGeometry
|
||||
@@ -115,7 +115,7 @@ cltog4:
|
||||
clGeometry:
|
||||
cd test; $(MAKE) "G4TARGET=clGeometry"
|
||||
|
||||
lib: libc #libF
|
||||
lib: libc libF
|
||||
@echo $@ stage done in $(curdir)
|
||||
|
||||
libc : $(G4LIBDIR)/lib$(name).a
|
||||
@@ -182,30 +182,16 @@ $(G4TMPDIR)/%.d: src/%.F
|
||||
|
||||
-include $(Fdependencies)
|
||||
|
||||
### --------------------- target for external packages-------------------------
|
||||
|
||||
ext:
|
||||
# global targets
|
||||
@cd $(G4BASE)/global; $(MAKE) global
|
||||
@cd $(G4BASE)/geometry; $(MAKE) global
|
||||
@cd $(G4BASE)/run; $(MAKE)
|
||||
@cd $(G4BASE)/event; $(MAKE)
|
||||
@cd $(G4BASE)/intercoms; $(MAKE)
|
||||
@cd $(G4BASE)/interfaces; $(MAKE)
|
||||
@cd $(G4BASE)/visualization; $(MAKE)
|
||||
@cd $(G4BASE)/tracking; $(MAKE)
|
||||
@cd $(G4BASE)/track; $(MAKE)
|
||||
@cd $(G4BASE)/particles; $(MAKE) global
|
||||
@cd $(G4BASE)/processes; $(MAKE) global
|
||||
@cd $(G4BASE)/materials; $(MAKE)
|
||||
@cd $(G4BASE)/digits+hits; $(MAKE) global
|
||||
@cd $(G4BASE)/graphics_reps; $(MAKE)
|
||||
clean: cleanf
|
||||
|
||||
cleanf:
|
||||
$(RM) $(Flibobjects)
|
||||
$(RM) $(Fbinobjects)
|
||||
$(RM) $(Fdependencies)
|
||||
$(RM) $(G4BINDIR)/$(G4TARGET)
|
||||
@$(RM) $(Flibobjects)
|
||||
@$(RM) $(Fbinobjects)
|
||||
@$(RM) $(Fdependencies)
|
||||
@$(RM) $(G4BINDIR)/$(G4TARGET)
|
||||
|
||||
cleantest:
|
||||
cd test; $(MAKE) clean
|
||||
|
||||
include $(G4INSTALL)/config/common.gmk
|
||||
|
||||
|
||||
+101
-1
@@ -1,7 +1,107 @@
|
||||
$Id: History,v 2.9 1998/11/17 17:47:40 lockman Exp $
|
||||
$Id: History,v 1.18 1999/05/28 23:34:49 lockman Exp $
|
||||
|
||||
G3toG4 Modification History (reverse chronological order, please !)
|
||||
--------------------------------------------------------------------
|
||||
|
||||
g3tog4-01-00-06 28-May-1999 Lockman
|
||||
- ~G3Mat,MedTable: do not destroy G4Material Objects in list. Do a clear()
|
||||
of the list, not clearAndDestroy, then delete the list.
|
||||
- ~G3Rot,Vol,Part,EleTable: standardize printout, fix deallocation
|
||||
- G3VolTable: changed PutVTE to take a VolTableEntry*; added ListVTE method
|
||||
- G3toG4MakeSolid: added G4bool* OKAxis
|
||||
- VolTableEntry: added _OKAxis[3] to store which axes may be divided;
|
||||
added AddMother(VolTableEntry*), GetMother(), _Mother.
|
||||
- G3toG4MakeSolid: set OKAxis
|
||||
- G3toG4EventAction: BeginOfEventAction, EndOfEventAction signature mods
|
||||
- G3toG4RunAction: BeginOfRunAction, EndOfRunAction signature mods
|
||||
- G3toG4PhysicsList: SetCuts signature mod
|
||||
- G3toG4PrimaryGeneratorAction: randomize paricle direction
|
||||
|
||||
27-May-1999 Cosmo
|
||||
- Fixed circular dependencies in G3Pos - VolTableEntry - G3VolTable.
|
||||
- Added default empty constructor to G3Vol.
|
||||
- Removed cleantest from "clean" target in GNUmakefile.
|
||||
|
||||
g3tog4-01-00-05 Lockman
|
||||
- G3G4Interface: G4Strings passed by reference in G4gspos, G4gsposp
|
||||
- G3PartTable: now uses RWTPtrHashDictionary instead of RWGDList
|
||||
- G3RotTable: method name "get" changed to "Get". Space for unit rotation
|
||||
matrix at element 0 in RWTPtrOrderedVector. This matrix is instantiated
|
||||
in G4BuildGeom prior to call list read.
|
||||
- G3VolTable: many new methods to handle VolTableEntry and G3Pos objects.
|
||||
removed GetPV method.
|
||||
- G3toG4.hh: removed G3NegVolPars method
|
||||
- G3DetTable: commented out some G4cerr's
|
||||
- G3EleTable: some minor internal changes
|
||||
- G3PartTable: convert to use RWTPtrHashDictionary
|
||||
- Added G3Pos class
|
||||
- Added G3toG4BuildTree which calls G4LogicalVolume and G4PVPlacement based on
|
||||
G3VolTable
|
||||
- G4BuildGeom: invokes G3toG4BuildTree to build VolTableEntry tree
|
||||
- G4ggclos: invokes G3Vol.SetFirstVTE() to find top-level VolTableEntry
|
||||
- G4makevol: Broke off creation of solids into G3toG4MakeSolid
|
||||
- G4gsatt: currently a stub
|
||||
- G4gsdvn: currently a stub
|
||||
- G4gsdvn2 currently a stub
|
||||
- G4gsdvt: currently a stub
|
||||
- G4gsdvt2 currently a stub
|
||||
- G4gsmixt:added some messages to warn about faulty mixt weights
|
||||
- G4gspos: removed G4PVPlacement calls (now done in G3toG4BuildTree)
|
||||
- G4gsposp:removed some unneeded headers
|
||||
- G4makevol: broke off solids stuff into G3toG4BuildTree
|
||||
- G4gsvolu: G4makevol(...) now returns void
|
||||
- G4VolTableEntry: now is a node tree
|
||||
- clparse: remove some commented out lines
|
||||
- cltog4: minor changes
|
||||
- G3toG4.hh make SSVT the mother. Its also not the first volume
|
||||
- Added testmodel.dat to test divided/deferred volumes.
|
||||
|
||||
17-May-1999 Lockman
|
||||
- converted G3PartTable to RWTPtrhaswhDictionary
|
||||
- reinstituted VolTableEntry and G3VolTable RWTPtrHashDictionary. Creation of
|
||||
logical volume now done in G3VolTable::PutLV
|
||||
- G4makevol.cc: added interface to G4Hype
|
||||
|
||||
g3tog4-01-00-04 11-May-1999 Lockman
|
||||
- G3VolTable: greatly simplified. No longer keep a private logical/physical
|
||||
volume store. Use G4LogicalVolumeStore and G4PhysicalVolumeStore instead.
|
||||
Still keep track of the G3toG4 logical/physical mother.
|
||||
- G3toG4RotationMatrix.hh: replace forward declaration of G4RotationMatrix
|
||||
with header file
|
||||
|
||||
g3tog4-01-00-03 6-May-1999 Lockman
|
||||
- G3MatTable, G3RotTable, G3MedTable: updated to use RWTPtrOrderedVector
|
||||
instead of RWTPtrHashDictionary
|
||||
|
||||
g3tog4-01-00-02 5-May-1999 Lockman
|
||||
- temporarily comment out G4gsdv* code
|
||||
- G4gstmed: now just store a link between tracking medium number and assoicated
|
||||
G4Material pointer
|
||||
- replaced rw/gdlist with RWTPtrHashDictionary
|
||||
- replaced iostream.h with G4ios.hh everywhere
|
||||
- added G3EleTable to manage elements in G3toG4
|
||||
- tog4.F, g3routines.F: generate gsmixt instructions in call list
|
||||
- clGeometry.cc: cleaned up and added some default commands
|
||||
- added G3toG4EventAction and EventActionMessenger classes to draw tracks
|
||||
- GNUmakefile: clean now cleans g3tog4 and all subdirectories / 24-Apr-1999 Lockman
|
||||
- GNUmakefile: cleanf: $(RM) now runs quietly
|
||||
- GNUmakefile: re-enabled libF target
|
||||
- README: updated instructions on how to configure environment and make
|
||||
- G4BuildGeom.cc: replace checkLogVol with checkVol which prints out logical
|
||||
volumes and their physical daughters
|
||||
- G4makevol: use G4LogicalVolume(solid, material, name) constructor.
|
||||
- test/GNUmakefile: define INCFLAGS
|
||||
- test/README: modified and shortened
|
||||
- test/src/G3toG4DetectorConstruction.cc: add SimpleConstruct() method
|
||||
for testing; set visibility of daughters, mother.
|
||||
- test/include/G3toG4DetectorMocnstruction.hh: added private _lv, _pv
|
||||
- test/src/G3toG4RunAction.cc: set tracking/verbose 1, run/verbose 1
|
||||
|
||||
g3tog4-01-00-01 20-Feb-1999 Bill Lockman
|
||||
- G4makevol.cc: use G4Polycone, G4Polyhedra classes instead of BREP equivalents
|
||||
- clGeometry.cc: protect vis code; removed templates stuff
|
||||
- cltog4.cc: removed templates stuff
|
||||
|
||||
g3tog4-00-03-04 12-Nov-1998 Bill Lockman
|
||||
- G3medtable: dynamically instantiate a G4FieldManager(field*) object and
|
||||
pass it to G4LogicalVolume by pointer.
|
||||
|
||||
+47
-47
@@ -1,70 +1,72 @@
|
||||
G3toG4
|
||||
------
|
||||
|
||||
The Geant4 facility to convert Geant3 to GEant4 volumes.
|
||||
See the documentation section of the repository for more information.
|
||||
G3toG4 is the Geant4 facility to convert Geant3 geometries into Geant4.
|
||||
This is done in two stages.
|
||||
|
||||
19-Mar-1997:
|
||||
'gmake' issued from the test/ subdirectory will create an executable
|
||||
'clGeometry' which reads the call list file generated by rztog4, builds a
|
||||
geometry and calls the visualization package. This has been tested with the
|
||||
visualization based on OpenGL and Mesa (freeware OpenGL).
|
||||
To use the visualization, you need to set one or more of the following
|
||||
environment variables:
|
||||
First, the user supplies a Geant3 .rz file containing the initialization
|
||||
data structures. An executable, rztog4, reads this file and produces an
|
||||
ascii ("call list") file containing instructions on how to build the
|
||||
geometry. The source code for this is fortran.
|
||||
|
||||
setenv G4VIS_USE_DAWN
|
||||
setenv G4VIS_USE_OPACS
|
||||
setenv G4VIS_USE_OPENGL
|
||||
setenv G4VIS_USE_OPENGLX
|
||||
setenv G4VIS_USE_OPENGLXM
|
||||
setenv G4VIS_USE_OPENINVENTOR
|
||||
setenv G4VIS_USE_RAYX
|
||||
setenv G4VIS_USE_VRML1
|
||||
Second, a call list interpreter (G4BuildGeom.cc) reads these instructions
|
||||
and builds the geometry in the user's G4 client code. Two examples of how
|
||||
to use the call list interpreter are supplied in g3tog4/examples.
|
||||
|
||||
The following gmake invocations do the following
|
||||
The first example, cltog4, is a simple example which simply invokes the
|
||||
call list interpreter method G4BuildGeom from G3toG4DetectorConstruction
|
||||
class, builds the geometry and exits.
|
||||
|
||||
gmake libF : build libG3toG4F.a (rztog4 object archive)
|
||||
The second example, clGeometry, is more complete and is patterned after
|
||||
the novice G4 examples. It also invokes the call list interpreter, but in
|
||||
addition, allows the geometry to be visualized and particles to be
|
||||
tracked. Currently, G3toG4 does not provide a method for scoring hits in
|
||||
G4.
|
||||
|
||||
gmake libC : build libG3toG4.a (code to parse call list file and call G4
|
||||
routines)
|
||||
To build these examples, especially the one involving visualization, the
|
||||
user must have one or more of the following environment variables set:
|
||||
|
||||
gmake lib : libC and libF targets
|
||||
setenv G4VIS_BUILD_<driver>_DRIVER
|
||||
setenv G4VIS_USE_<driver>
|
||||
|
||||
gmake bin : build rztog4 executable
|
||||
where the G4-supported drivers are listed in $(G4BASE)/visualization/README.
|
||||
|
||||
gmake : build lib targets
|
||||
To use the freeware Mesa API, you must have the environment variable
|
||||
OGLHOME defined to point to the directory containing the Mesa lib/ directory
|
||||
specific to your platform.
|
||||
|
||||
gmake ext : build external packages, including BREPS and STEP
|
||||
Then the user must build the global Geant4 libraries by issuing the
|
||||
following command from the geant4/source directory:
|
||||
|
||||
gmake examples: build cltog4 and clGeometry executables
|
||||
gmake global
|
||||
|
||||
gmake cltog4: build cltog4 executable
|
||||
To compile and build the G3toG4 libraries, simply type
|
||||
|
||||
gmake clGeometry: build clGeometry executable
|
||||
gmake
|
||||
|
||||
gmake all : ext lib bin examples
|
||||
from the top-level G3toG4 directory.
|
||||
|
||||
The code in the visualization subdirectory OpenGL/ must be compiled on a
|
||||
machine on which the OpenGL header files have been installed. The compilation
|
||||
of G3toG4 and external packages is done as follows:
|
||||
To build the converter executable "rztog4", simply type
|
||||
|
||||
gmake bin
|
||||
|
||||
To build the example executables, simply type:
|
||||
|
||||
gmake examples
|
||||
|
||||
To make everything, simply type:
|
||||
|
||||
gmake all
|
||||
|
||||
In the global/GNUmakefile.architecture file, you need to specify where to
|
||||
find the OpenGL libraries. I currently use the freeware version of OpenGL
|
||||
called 'Mesa'. I specify
|
||||
To remove all G3toG4 libraries, executables and .d files, simply type
|
||||
|
||||
OGLLIBS := -L$(OGLHOME)/lib -lMesaGL -lMesaGLU -lMesaaux -lMesatk
|
||||
gmake clean
|
||||
|
||||
The AIX version is
|
||||
|
||||
OGLLIBS := -L$(OGLHOME)/lib -lGLX -lGLU -lGL -lXGLW -lglobalm5
|
||||
|
||||
Notes on the implementation (Sep 24 '96)
|
||||
the implementation (April '99)
|
||||
----------------------------------------
|
||||
- PGON, PCON still not in; awaiting Geant4 constructors. 100m^3
|
||||
boxes are generated for PGON, PCON at present.
|
||||
- MANY not available in Geant4 yet.
|
||||
- PGON, PCON are built using the CSG classes G4Polycone and G4Polyhedra.
|
||||
- G3 MANY feature has not been tested.
|
||||
- GsROTM is fully implemented and supports rotations and mirror reflections
|
||||
- GSPOSP implemented via individual logical volumes for each instantiation
|
||||
(G4PVIndexed doesn't exist yet)
|
||||
- GSDV* routines for dividing volumes implemented, using
|
||||
@@ -76,7 +78,5 @@ Notes on the implementation (Sep 24 '96)
|
||||
hit code can be activated.
|
||||
- GSPART has to be updated.
|
||||
- Usage of magnetic field class has to be turned on.
|
||||
- Use of G4UserLimits has to be reviewed and turned on.
|
||||
- GNUmakefile is tested only on HP
|
||||
|
||||
See History file for modificartion history.
|
||||
See History file for modification history.
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3CalcParams.hh,v 2.3 1998/10/05 15:26:05 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G3CalcParams.hh,v 1.1 1999/01/07 16:06:42 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// class G3CalcParams
|
||||
//
|
||||
|
||||
@@ -5,37 +5,50 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3DetTable.hh,v 2.1 1998/07/12 02:54:11 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G3DetTable.hh,v 1.2 1999/05/07 04:15:57 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// G3 materials table.
|
||||
// Maps G3 material indices to their G4 material object counterparts.
|
||||
// Maintains a linked List of G3 material index/G4 material pointer pairs.
|
||||
|
||||
#include <rw/gdlist.h>
|
||||
#include <rw/tphdict.h>
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VSensitiveDetector;
|
||||
|
||||
struct DetTableEntry {
|
||||
G4String name;
|
||||
G4int detid;
|
||||
G4VSensitiveDetector* detpt;
|
||||
class DetTableEntry {
|
||||
private:
|
||||
G4String _set;
|
||||
G4String _det;
|
||||
G4int _id;
|
||||
G4VSensitiveDetector* _detpt;
|
||||
|
||||
public:
|
||||
DetTableEntry(G4String& set, G4String& det, G4int id,
|
||||
G4VSensitiveDetector* D);
|
||||
~DetTableEntry();
|
||||
G4VSensitiveDetector* getSD();
|
||||
G4String getset();
|
||||
G4String getdet();
|
||||
G4int getid();
|
||||
};
|
||||
declare (RWGDlist, DetTableEntry)
|
||||
|
||||
class G3DetTable {
|
||||
private:
|
||||
RWGDlist(DetTableEntry) DetT;
|
||||
RWGDlist(DetTableEntry)* DetTable;
|
||||
RWTPtrHashDictionary<G4String, DetTableEntry>* _Det;
|
||||
G4String MakeHash(G4String& set, G4String& det);
|
||||
DetTableEntry* _DTE;
|
||||
|
||||
public:
|
||||
G3DetTable();
|
||||
~G3DetTable();
|
||||
G4VSensitiveDetector* get(G4String name);
|
||||
G4int GetID(G4String name);
|
||||
void put(G4String name, G4int detid, G4VSensitiveDetector* detpt);
|
||||
G3DetTable();
|
||||
~G3DetTable();
|
||||
G4VSensitiveDetector* getSD(G4String& set, G4String& det);
|
||||
G4int GetID(G4String& set, G4String& det);
|
||||
void put(G4String& set, G4String& det, G4int id, G4VSensitiveDetector* D);
|
||||
|
||||
};
|
||||
|
||||
extern G3DetTable G3Det;
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
#ifndef _G4ELETABLE_
|
||||
#define _G4ELETABLE_ 1
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3EleTable.hh,v 1.1 1999/05/06 04:19:58 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
#include <rw/ctoken.h>
|
||||
#include <rw/tpordvec.h>
|
||||
#include "globals.hh"
|
||||
#include "G4Element.hh"
|
||||
|
||||
class G3EleTable{
|
||||
|
||||
public:
|
||||
G3EleTable();
|
||||
virtual ~G3EleTable();
|
||||
G4Element* GetEle(G4double Z);
|
||||
|
||||
private:
|
||||
void LoadUp();
|
||||
int parse(G4double& Z, char* name, char* sym, G4double& A);
|
||||
|
||||
private:
|
||||
char** _EleNames;
|
||||
G4Element** _Ele;
|
||||
int _MaxEle;
|
||||
|
||||
};
|
||||
|
||||
extern G3EleTable G3Ele;
|
||||
#endif
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3G4Interface.hh,v 2.1 1998/07/12 02:54:11 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G3G4Interface.hh,v 1.4 1999/05/26 03:46:16 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// Interfaces for G3 equivalent routines
|
||||
@@ -18,12 +18,13 @@ class G4LogicalVolume;
|
||||
void G4gsvolu(G4String name, G4String shape, G4int nmed, G4double* par,
|
||||
G4int npar);
|
||||
|
||||
void G4gspos(G4String name, G4int num, G4String moth, G4double x,
|
||||
G4double y, G4double z, G4int irot, G4String only);
|
||||
void G4gspos(G4String& name, G4int num, G4String& moth,
|
||||
G4double x, G4double y, G4double z, G4int irot,
|
||||
G4String& only);
|
||||
|
||||
void G4gsposp(G4String name, G4int num, G4String moth, G4double x,
|
||||
G4double y, G4double z, G4int irot, G4String only,
|
||||
G4double* Rpar, G4int npar);
|
||||
void G4gsposp(G4String& name, G4int num, G4String& moth,
|
||||
G4double x, G4double y, G4double z, G4int irot,
|
||||
G4String& only, G4double* Rpar, G4int npar);
|
||||
|
||||
void G4gsrotm(G4int irot, G4double theta1, G4double phi1,
|
||||
G4double theta2, G4double phi2, G4double theta3, G4double phi3);
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#ifndef _G3MATTABLE_
|
||||
#define _G3MATTABLE_ 1
|
||||
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
@@ -5,34 +8,26 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3MatTable.hh,v 2.1 1998/07/12 02:54:12 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G3MatTable.hh,v 1.3 1999/05/06 17:46:37 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// G3 materials table.
|
||||
// Maps G3 material indices to their G4 material object counterparts.
|
||||
// Maintains a linked List of G3 material index/G4 material pointer pairs.
|
||||
|
||||
#include <rw/gdlist.h>
|
||||
#include <rw/tpordvec.h>
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Material.hh"
|
||||
|
||||
struct MatTableEntry {
|
||||
G4int matid;
|
||||
G4Material* matpt;
|
||||
};
|
||||
declare (RWGDlist, MatTableEntry)
|
||||
class G4Material;
|
||||
|
||||
class G3MatTable {
|
||||
private:
|
||||
RWGDlist(MatTableEntry) MatT;
|
||||
RWGDlist(MatTableEntry)* MatTable;
|
||||
RWTPtrOrderedVector<G4Material>* _Mat;
|
||||
public:
|
||||
G3MatTable();
|
||||
~G3MatTable();
|
||||
G4Material* get(G4int matid);
|
||||
void put(G4int* matid, G4Material* matpt);
|
||||
G3MatTable();
|
||||
~G3MatTable();
|
||||
G4Material* get(G4int matid);
|
||||
void put(G4int matid, G4Material* matpt);
|
||||
};
|
||||
|
||||
extern G3MatTable G3Mat;
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#ifndef _G3MEDTABLE_
|
||||
#define _G3MEDTABLE_ 1
|
||||
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
@@ -5,46 +8,25 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3MedTable.hh,v 2.1 1998/07/12 02:54:13 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G3MedTable.hh,v 1.3 1999/05/06 18:01:50 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// G3 materials table.
|
||||
// Maps G3 material indices to their G4 material object counterparts.
|
||||
// Maintains a linked List of G3 material index/G4 material pointer pairs.
|
||||
// Maps G3 tracking media indices to G4Material*
|
||||
|
||||
#include <rw/gdlist.h>
|
||||
#include <rw/tpordvec.h>
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4Material.hh"
|
||||
|
||||
class G4MagneticField;
|
||||
class G4UserLimits;
|
||||
|
||||
struct MedTableEntry {
|
||||
G4int medid;
|
||||
G4Material* matpt;
|
||||
G4MagneticField* magpt;
|
||||
G4UserLimits* limpt;
|
||||
G4int isvol;
|
||||
G4double deemax;
|
||||
G4double epsil;
|
||||
};
|
||||
declare (RWGDlist, MedTableEntry)
|
||||
class G4Material;
|
||||
|
||||
class G3MedTable {
|
||||
private:
|
||||
RWGDlist(MedTableEntry) MedT;
|
||||
RWGDlist(MedTableEntry)* MedTable;
|
||||
RWTPtrOrderedVector<G4Material>* _Med;
|
||||
public:
|
||||
G3MedTable();
|
||||
~G3MedTable();
|
||||
G4Material* GetMat(G4int medid); // get associated material
|
||||
G4MagneticField* GetMag(G4int medid);
|
||||
G4UserLimits* GetLim(G4int medid);
|
||||
void put(G4int medid, G4Material* matpt, G4MagneticField* field,
|
||||
G4UserLimits* limits, G4int isvol,
|
||||
G4double deemax, G4double epsil);
|
||||
G3MedTable();
|
||||
~G3MedTable();
|
||||
G4Material* get(G4int medid);
|
||||
void put(G4int medid, G4Material* matpt);
|
||||
};
|
||||
|
||||
extern G3MedTable G3Med;
|
||||
#endif
|
||||
|
||||
@@ -5,34 +5,27 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3PartTable.hh,v 2.1 1998/07/12 02:54:13 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G3PartTable.hh,v 1.2 1999/05/18 03:49:01 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// G3 materials table.
|
||||
// Maps G3 material indices to their G4 material object counterparts.
|
||||
// Maintains a linked List of G3 material index/G4 material pointer pairs.
|
||||
|
||||
#include <rw/gdlist.h>
|
||||
|
||||
#include "globals.hh"
|
||||
#include <rw/tphdict.h>
|
||||
#include "G4ParticleDefinition.hh"
|
||||
|
||||
struct PartTableEntry {
|
||||
G4int partid;
|
||||
G4ParticleDefinition* partpt;
|
||||
};
|
||||
declare (RWGDlist, PartTableEntry)
|
||||
|
||||
class G3PartTable {
|
||||
private:
|
||||
RWGDlist(PartTableEntry) PartT;
|
||||
RWGDlist(PartTableEntry)* PartTable;
|
||||
RWTPtrHashDictionary<G4String, G4ParticleDefinition>* _PTD;
|
||||
void HashID(G4int partid, G4String* _HID);
|
||||
void HashID(G4int partid, G4String& _HID);
|
||||
public:
|
||||
G3PartTable();
|
||||
~G3PartTable();
|
||||
G4ParticleDefinition* get(G4int partid);
|
||||
void put(G4int* partid, G4ParticleDefinition* partpt);
|
||||
void put(G4int partid, G4ParticleDefinition* partpt);
|
||||
};
|
||||
|
||||
extern G3PartTable G3Part;
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
#ifndef _G3POS_
|
||||
#define _G3POS_ 1
|
||||
|
||||
#include "G4ThreeVector.hh"
|
||||
|
||||
class VolTableEntry;
|
||||
|
||||
class G3Pos{
|
||||
private:
|
||||
VolTableEntry* _VTE;
|
||||
G4int _Copy;
|
||||
G4String _LV;
|
||||
G4ThreeVector* _Position;
|
||||
G4int _Irot;
|
||||
G4String _Only;
|
||||
public:
|
||||
G3Pos(){;}
|
||||
|
||||
G3Pos(G4String& LV, G4int C, G4ThreeVector* T, G4int R, G4String& O);
|
||||
|
||||
G4bool operator == (const G3Pos& g3p) const;
|
||||
|
||||
virtual ~G3Pos();
|
||||
|
||||
VolTableEntry* GetVTE();
|
||||
|
||||
G4String& GetName();
|
||||
|
||||
G4int GetIrot();
|
||||
|
||||
G4ThreeVector* GetPos();
|
||||
|
||||
G4int GetCopy();
|
||||
};
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
#ifndef _G3ROTTABLE_
|
||||
#define _G3ROTTABLE_ 1
|
||||
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
@@ -5,34 +8,26 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3RotTable.hh,v 2.1 1998/07/12 02:54:14 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G3RotTable.hh,v 1.5 1999/05/26 03:46:29 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// G3 materials table.
|
||||
// Maps G3 material indices to their G4 material object counterparts.
|
||||
// Maintains a linked List of G3 material index/G4 material pointer pairs.
|
||||
|
||||
#include <rw/gdlist.h>
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4RotationMatrix.hh"
|
||||
|
||||
struct RotTableEntry {
|
||||
G4int rotid;
|
||||
G4RotationMatrix* rotpt;
|
||||
};
|
||||
declare (RWGDlist, RotTableEntry)
|
||||
#include <rw/tpordvec.h>
|
||||
#include "G3toG4RotationMatrix.hh"
|
||||
|
||||
class G3RotTable {
|
||||
private:
|
||||
RWGDlist(RotTableEntry) RotT;
|
||||
RWGDlist(RotTableEntry)* RotTable;
|
||||
RWTPtrOrderedVector<G3toG4RotationMatrix>* _Rot;
|
||||
public:
|
||||
G3RotTable();
|
||||
~G3RotTable();
|
||||
G4RotationMatrix* get(G4int rotid);
|
||||
void put(G4int* rotid, G4RotationMatrix* rotpt);
|
||||
G3RotTable();
|
||||
~G3RotTable();
|
||||
G3toG4RotationMatrix* Get(G4int rotid);
|
||||
void Put(G4int rotid, G3toG4RotationMatrix* rotpt);
|
||||
};
|
||||
|
||||
extern G3RotTable G3Rot;
|
||||
#endif
|
||||
|
||||
@@ -1,100 +1,46 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3VolTable.hh,v 2.1 1998/07/12 02:54:15 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// G3 logical volume table.
|
||||
// Maps G3 logical volume names to their G4 logical volume object
|
||||
// counterparts.
|
||||
// Maintains a linked List of G3 volume names//G4 logical volume pointer
|
||||
// pairs.
|
||||
#ifndef _G3VOLTABLE_
|
||||
#define _G3VOLTABLE_ 1
|
||||
|
||||
#include <rw/gdlist.h>
|
||||
#include <rw/tpordvec.h>
|
||||
#include <rw/tphdict.h>
|
||||
#include "VolTableEntry.hh"
|
||||
|
||||
#include "globals.hh"
|
||||
#include "geomdefs.hh"
|
||||
#include "G4VSolid.hh"
|
||||
#include "G4LogicalVolume.hh"
|
||||
class G4LogicalVolume;
|
||||
class G4Material;
|
||||
class G4VSolid;
|
||||
|
||||
struct VolTableEntry {
|
||||
G4String vname;
|
||||
G4VSolid* solid;
|
||||
G4LogicalVolume* lvpt;
|
||||
G4VPhysicalVolume* pvpt;
|
||||
G4double rangehi[3]; // ranges
|
||||
G4double rangelo[3]; // ranges
|
||||
EAxis *axiscode; // axis codes
|
||||
G4int tmed;
|
||||
G4String shape;
|
||||
G4double* par;
|
||||
G4int npar;
|
||||
G4int count; // number of instantiations for vols indexed due to -ve pars
|
||||
RWTPtrOrderedVector<G4LogicalVolume> lVols; // vector of instantiated volumes
|
||||
RWTPtrOrderedVector<G4VPhysicalVolume> pVols; // vector of instantiated phys volumes
|
||||
};
|
||||
declare (RWGDlist, VolTableEntry)
|
||||
|
||||
class G3VolTable {
|
||||
class G3VolTable{
|
||||
private:
|
||||
RWGDlist(VolTableEntry) VolT;
|
||||
RWGDlist(VolTableEntry)* VolTable;
|
||||
VolTableEntry* curEntry;
|
||||
G4int ScanTmed;
|
||||
G4int nEntry;
|
||||
EAxis Rect[3];
|
||||
EAxis Polar[3];
|
||||
static G4VPhysicalVolume* mothPV; // mother of all mothers
|
||||
static G4LogicalVolume* mothLV; // mother of all mothers logical volume
|
||||
RWTPtrOrderedVector<G4VPhysicalVolume>* pVolsPtr;
|
||||
VolTableEntry* G3toG4TopVTE;
|
||||
G4String _FirstKey;
|
||||
VolTableEntry* _VTE;
|
||||
RWTPtrHashDictionary <G4String, VolTableEntry>* _VTD;
|
||||
G4int _NVTE;
|
||||
G4int _NG3Pos;
|
||||
|
||||
public:
|
||||
G3VolTable();
|
||||
~G3VolTable();
|
||||
G4LogicalVolume* GetLV();
|
||||
G4LogicalVolume* GetLVx(G4String &);
|
||||
G4LogicalVolume* GetLV(G4String* vname);
|
||||
G4VPhysicalVolume* GetPV(); // simply return the mother of all volumes
|
||||
G4VPhysicalVolume* GetPV(G4int npv); // Use pVols table of last retrieved phys vol
|
||||
// FindPV : look up PV in table to use in placement; if no associated PV, use
|
||||
// global mother
|
||||
void FindPV(G4int* npv, G4String* vname);
|
||||
// MatchPV: look up PV only
|
||||
void MatchPV(G4int* npv, G4String* vname);
|
||||
void GetLVPars(G4String* vname, G4int iaxis, G4double* rangehi,
|
||||
G4double* rangelo, EAxis*,
|
||||
G4String* shape, G4int* nmed, G4double* par[],
|
||||
G4int* npar, G4VSolid* solid);
|
||||
void GetLVInfo(G4String* vname, G4String* shape, G4int* nmed);
|
||||
void AddConstituentLVol(G4String* vname, G4LogicalVolume* lvol);
|
||||
void PutLV(G4String* vname, G4LogicalVolume* lvpt, G4int tmed,
|
||||
G4double rnghi[], G4double rnglo[],
|
||||
EAxis axis, G4String shape,
|
||||
G4double par[], G4int npar, G4VSolid* solid);
|
||||
// For case where nothing is known about the volume; it doesn't
|
||||
// come from g3tog4 (eg. externally specified global mother)
|
||||
void PutLV(G4String* vname, G4LogicalVolume* lvpt);
|
||||
// Builds List of all physical volume instantiations of a Indexed volume implemented
|
||||
// as individual logical volumes (so when daughters are added, they must be added
|
||||
// to the logical volumes of all the physical volumes in this List)
|
||||
void PutPV(G4String* vname, G4VPhysicalVolume* lvpt);
|
||||
// For non-Indexed volumes, builds a List of one element only
|
||||
void PutPV1(G4String* vname, G4VPhysicalVolume* lvpt);
|
||||
void MatchTmed(G4int tmed);
|
||||
G4LogicalVolume* NextTmed();
|
||||
G4int GetEntryCount() { return VolTable->entries();};
|
||||
void SetMother(G4VPhysicalVolume* mpv); // set mother-of-all
|
||||
void SetMother(G4LogicalVolume* mlv); // set mother-of-all
|
||||
void SetMother(); // set mother of all pointers to null
|
||||
VolTableEntry* find(G4String* vname); // find entry from vol name
|
||||
G4int Increment(G4String* vname); // Increment instantiation counter
|
||||
VolTableEntry* PutVTE(VolTableEntry* aVTE);
|
||||
RWTPtrHashDictionary <G4String, VolTableEntry>* GetVTD() ;
|
||||
VolTableEntry* GetVTE(const G4String& Vname);
|
||||
void ListVTE();
|
||||
G3VolTable();
|
||||
virtual ~G3VolTable();
|
||||
G4LogicalVolume* GetG3toG4Mother();
|
||||
VolTableEntry* GetFirstVTE();
|
||||
void SetFirstVTE();
|
||||
void VTEStat();
|
||||
void CountG3Pos();
|
||||
};
|
||||
|
||||
extern G3VolTable G3Vol; // logical volumes
|
||||
extern G3VolTable G3Vol;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3toG4.hh,v 2.0 1998/07/02 16:15:57 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G3toG4.hh,v 1.2 1999/05/15 00:16:53 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
#ifndef _G3TOG4_
|
||||
#define _G3TOG4_
|
||||
@@ -20,8 +20,8 @@ extern RWCString Spar[1000];
|
||||
//extern G4double min(G4double, G4double);
|
||||
|
||||
void G3fillParams(RWCString *tokens, char *ptypes);
|
||||
G4bool G3NegVolPars(G4double pars[], G4int* np, G4String vol, G4String moth,
|
||||
char* routine);
|
||||
// G4bool G3NegVolPars(G4double pars[], G4int* np, G4String vol, G4String moth,
|
||||
// char* routine);
|
||||
|
||||
#include "G3G4Interface.hh"
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
* based on the Program) you indicate your acceptance of this statement,
|
||||
* and all its terms.
|
||||
*
|
||||
* $Id: G3toG4.inc,v 2.1 1998/09/18 08:54:55 lockman Exp $
|
||||
* GEANT4 tag $Name: geant4-00 $
|
||||
* $Id: G3toG4.inc,v 1.1 1999/01/07 16:06:44 gunter Exp $
|
||||
* GEANT4 tag $Name: geant4-00-01 $
|
||||
*
|
||||
integer maxlines
|
||||
parameter (maxlines = 750) ! max no. of cmd lines per C++ source file
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#ifndef _G3TOG4BUILDTREE_
|
||||
#define _G3TOG4BUILDTREE_ 1
|
||||
#include "VolTableEntry.hh"
|
||||
void G3toG4BuildTree(VolTableEntry* MotherVTE);
|
||||
#endif
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef _G3TOG4MAKESOLID_
|
||||
#define _G3TOG4MAKESOLID_ 1
|
||||
G4VSolid* G3toG4MakeSolid(const G4String& vname, const G4String& shape,
|
||||
const G4double* Rpar, const G4int npar,
|
||||
G4bool& NegVolPars, G4bool& Deferred,
|
||||
G4bool* OKAxis);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3toG4RotationMatrix.hh,v 2.1 1998/11/07 04:11:44 lockman Exp $
|
||||
// $Id: G3toG4RotationMatrix.hh,v 1.1 1999/01/07 16:06:44 gunter Exp $
|
||||
//
|
||||
#ifndef _G3toG4ROTATION_
|
||||
#define _G3toG4ROTATION_
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G3toG4SetRotation.hh,v 2.1 1998/09/18 08:55:18 lockman Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
#ifndef _G3TOG4ROTATION_
|
||||
#define _G3TOG4ROTATION_
|
||||
|
||||
#include "G4RotationMatrix.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G3toG4SetRotation : public G4RotationMatrix
|
||||
{
|
||||
public:
|
||||
G3toG4SetRotation();
|
||||
|
||||
G3toG4SetRotation(const G4ThreeVector& col1,
|
||||
const G4ThreeVector& col2,
|
||||
const G4ThreeVector& col3);
|
||||
|
||||
~G3toG4SetRotation(){;}
|
||||
|
||||
inline void Setxx(const G4double axx) {rxx = axx;
|
||||
}
|
||||
|
||||
inline void Setxy(const G4double axy) {rxy = axy;
|
||||
}
|
||||
|
||||
inline void Setxz(const G4double axz) {rxz = axz;
|
||||
}
|
||||
|
||||
inline void Setyx(const G4double ayx) {ryx = ayx;
|
||||
}
|
||||
|
||||
inline void Setyy(const G4double ayy) {ryy = ayy;
|
||||
}
|
||||
|
||||
inline void Setyz(const G4double ayz) {ryz = ayz;
|
||||
}
|
||||
|
||||
inline void Setzx(const G4double azx) {rzx = azx;
|
||||
}
|
||||
|
||||
inline void Setzy(const G4double azy) {rzy = azy;
|
||||
}
|
||||
|
||||
inline void Setzz(const G4double azz) {rzz = azz;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user