Import Geant4 5.0.0 source tree
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
|
||||
The files in this directory are intended for developpers' use.
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
#!/bin/csh -f
|
||||
set file = $1
|
||||
set tmpfile = fadsmv.tmp.$$
|
||||
#if ( ! -f $file ) then
|
||||
# echo "File $file does not exist. Stop."
|
||||
# exit 1
|
||||
#endif
|
||||
|
||||
set filename = `basename $file`
|
||||
set filepath = `dirname $file`
|
||||
|
||||
echo $filename | sed \
|
||||
-e 's/DigitRootIO/G4DigitRootIO/g' \
|
||||
-e 's/EventRootIO/G4EventRootIO/g' \
|
||||
-e 's/HepMCRootIO/G4HepMCRootIO/g' \
|
||||
-e 's/HitRootIO/G4HitRootIO/g' \
|
||||
-e 's/MCTruthRootIO/G4MCTruthRootIO/g' \
|
||||
-e 's/RootFADSevent/G4RootEvent/g' \
|
||||
-e 's/RootIOManager/G4RootIOManager/g' \
|
||||
-e 's/RootTransManager/G4RootTransManager/g' \
|
||||
-e 's/fadsROOTLinkDef/G4ROOTLinkDef/g' \
|
||||
-e 's/G4G4/G4/g' \
|
||||
-e 's/G4VG4/G4V/g' \
|
||||
> $tmpfile
|
||||
|
||||
set filename2 = `cat $tmpfile`
|
||||
|
||||
if ( $filename != $filename2 ) then
|
||||
echo "mv -f $filepath/$filename $filepath/$filename2"
|
||||
mv -f $filepath/$filename $filepath/$filename2
|
||||
endif
|
||||
|
||||
rm -f $tmpfile
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
#!/bin/csh -f
|
||||
set file = $1
|
||||
set tmpfile = $1.tmp.$$
|
||||
if ( ! -f $file ) then
|
||||
echo "File $file does not exist. Stop."
|
||||
exit 1
|
||||
endif
|
||||
|
||||
cat $file | sed \
|
||||
-e 's/DigitRootIO/G4DigitRootIO/g' \
|
||||
-e 's/EventRootIO/G4EventRootIO/g' \
|
||||
-e 's/HepMCRootIO/G4HepMCRootIO/g' \
|
||||
-e 's/HitRootIO/G4HitRootIO/g' \
|
||||
-e 's/MCTruthRootIO/G4MCTruthRootIO/g' \
|
||||
-e 's/RootFADSevent/G4RootEvent/g' \
|
||||
-e 's/RootIOManager/G4RootIOManager/g' \
|
||||
-e 's/RootTransManager/G4RootTransManager/g' \
|
||||
-e 's/fadsROOTLinkDef/G4ROOTLinkDef/g' \
|
||||
-e 's/G4G4/G4/g' \
|
||||
-e 's/G4VG4/G4V/g' \
|
||||
-e 's/FADS\/Goofy tag/GEANT4 tag/g' \
|
||||
> $tmpfile
|
||||
|
||||
diff $file $tmpfile
|
||||
|
||||
mv -f $file ${file}.org
|
||||
mv -f $tmpfile $file
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
#!/bin/csh -f
|
||||
set file = $1
|
||||
set tmpfile = $1.tmp.$$
|
||||
if ( ! -f $file ) then
|
||||
echo "File $file does not exist. Stop."
|
||||
exit 1
|
||||
endif
|
||||
|
||||
cat $file | sed \
|
||||
-e 's/DCIOcatalog/G4DCIOcatalog/g' \
|
||||
-e 's/DCIOentryT/G4DCIOentryT/g' \
|
||||
-e 's/FADSevent/G4Pevent/g' \
|
||||
-e 's/FileUtilities/G4FileUtilities/g' \
|
||||
-e 's/HCIOcatalog/G4HCIOcatalog/g' \
|
||||
-e 's/HCIOentryT/G4HCIOentryT/g' \
|
||||
-e 's/PersistencyCenter/G4PersistencyCenter/g' \
|
||||
-e 's/PersistencyCenterMessenger/G4PersistencyCenterMessenger/g' \
|
||||
-e 's/PersistencyManager/G4PersistencyManager/g' \
|
||||
-e 's/PersistencyManagerT/G4PersistencyManagerT/g' \
|
||||
-e 's/VDCIOentry/G4VDCIOentry/g' \
|
||||
-e 's/VHCIOentry/G4VHCIOentry/g' \
|
||||
-e 's/VHepMCIO/G4VHepMCIO/g' \
|
||||
-e 's/VMCTruthIO/G4VMCTruthIO/g' \
|
||||
-e 's/VPDigitIO/G4VPDigitIO/g' \
|
||||
-e 's/VPDigitsCollectionIO/G4VPDigitsCollectionIO/g' \
|
||||
-e 's/VPEventIO/G4VPEventIO/g' \
|
||||
-e 's/VPHitIO/G4VPHitIO/g' \
|
||||
-e 's/VPHitsCollectionIO/G4VPHitsCollectionIO/g' \
|
||||
-e 's/VTransactionManager/G4VTransactionManager/g' \
|
||||
-e 's/MCTEvent/G4MCTEvent/g' \
|
||||
-e 's/MCTEventAction/G4MCTEventAction/g' \
|
||||
-e 's/MCTGenEvent/G4MCTGenEvent/g' \
|
||||
-e 's/MCTGenParticle/G4MCTGenParticle/g' \
|
||||
-e 's/MCTManager/G4MCTManager/g' \
|
||||
-e 's/MCTMessenger/G4MCTMessenger/g' \
|
||||
-e 's/MCTSimEvent/G4MCTSimEvent/g' \
|
||||
-e 's/MCTSimParticle/G4MCTSimParticle/g' \
|
||||
-e 's/MCTSimVertex/G4MCTSimVertex/g' \
|
||||
-e 's/MCTSteppingAction/G4MCTSteppingAction/g' \
|
||||
-e 's/MCTVStoreSelection/G4MCTVStoreSelection/g' \
|
||||
-e 's/MCTVUserFilter/G4MCTVUserFilter/g' \
|
||||
-e 's/G4G4/G4/g' \
|
||||
-e 's/G4VG4/G4V/g' \
|
||||
-e 's/FADS\/Goofy tag/GEANT4 tag/g' \
|
||||
> $tmpfile
|
||||
|
||||
diff $file $tmpfile
|
||||
|
||||
mv -f $file ${file}.org
|
||||
mv -f $tmpfile $file
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
#! /usr/bin/perl
|
||||
|
||||
while(<STDIN>) {
|
||||
chop;
|
||||
s/.hh//;
|
||||
print " -e \'s/$_/G4$_/g\' \\\n";
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
find . -name '*.h*' -exec ./g4exmv.sh "{}" \;
|
||||
find . -name '*.cc' -exec ./g4exmv.sh "{}" \;
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
find . -name '*.h*' -exec ./g4exsed.sh "{}" \;
|
||||
find . -name '*.h*' -exec ./g4psed.sh "{}" \;
|
||||
find . -name '*.cc' -exec ./g4exsed.sh "{}" \;
|
||||
find . -name '*.cc' -exec ./g4psed.sh "{}" \;
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
#!/bin/csh -f
|
||||
set file = $1
|
||||
set tmpfile = $1.tmp
|
||||
if ( ! -f $file ) then
|
||||
echo "File $file does not exist. Stop."
|
||||
exit 1
|
||||
endif
|
||||
|
||||
cat $file | sed \
|
||||
-e 's/g4rootio/fadsrootio/g' \
|
||||
-e 's/G4DCIOcatalog/DCIOcatalog/g' \
|
||||
-e 's/G4DCIOentryT/DCIOentryT/g' \
|
||||
-e 's/G4Pevent/FADSevent/g' \
|
||||
-e 's/G4FileUtilities/FileUtilities/g' \
|
||||
-e 's/G4HCIOcatalog/HCIOcatalog/g' \
|
||||
-e 's/G4HCIOentryT/HCIOentryT/g' \
|
||||
-e 's/G4PersistencyCenter/PersistencyCenter/g' \
|
||||
-e 's/G4PersistencyCenterMessenger/PersistencyCenterMessenger/g' \
|
||||
-e 's/G4PersistencyManager/PersistencyManager/g' \
|
||||
-e 's/G4PersistencyManagerT/PersistencyManagerT/g' \
|
||||
-e 's/G4VDCIOentry/VDCIOentry/g' \
|
||||
-e 's/G4VHCIOentry/VHCIOentry/g' \
|
||||
-e 's/G4VHepMCIO/VHepMCIO/g' \
|
||||
-e 's/G4VMCTruthIO/VMCTruthIO/g' \
|
||||
-e 's/G4VPDigitIO/VPDigitIO/g' \
|
||||
-e 's/G4VPDigitsCollectionIO/VPDigitsCollectionIO/g' \
|
||||
-e 's/G4VPEventIO/VPEventIO/g' \
|
||||
-e 's/G4VPHitIO/VPHitIO/g' \
|
||||
-e 's/G4VPHitsCollectionIO/VPHitsCollectionIO/g' \
|
||||
-e 's/G4VTransactionManager/VTransactionManager/g' \
|
||||
-e 's/G4MCTEvent/MCTEvent/g' \
|
||||
-e 's/G4MCTEventAction/MCTEventAction/g' \
|
||||
-e 's/G4MCTGenEvent/MCTGenEvent/g' \
|
||||
-e 's/G4MCTGenParticle/MCTGenParticle/g' \
|
||||
-e 's/G4MCTManager/MCTManager/g' \
|
||||
-e 's/G4MCTMessenger/MCTMessenger/g' \
|
||||
-e 's/G4MCTSimEvent/MCTSimEvent/g' \
|
||||
-e 's/G4MCTSimParticle/MCTSimParticle/g' \
|
||||
-e 's/G4MCTSimVertex/MCTSimVertex/g' \
|
||||
-e 's/G4MCTSteppingAction/MCTSteppingAction/g' \
|
||||
-e 's/G4MCTVStoreSelection/MCTVStoreSelection/g' \
|
||||
-e 's/G4MCTVUserFilter/MCTVUserFilter/g' \
|
||||
-e 's/G4HitRootIO/HitRootIO/g' \
|
||||
-e 's/G4RootIOManager/RootIOManager/g' \
|
||||
-e 's/G4RootTransManager/RootTransManager/g' \
|
||||
-e 's/GEANT4 tag/FADS\/Goofy tag/g' \
|
||||
-e 's/Geant4/FADS/g' \
|
||||
-e 's/G4cout/std::cout/g' \
|
||||
-e 's/G4cerr/std::cerr/g' \
|
||||
-e 's/G4endl/std::endl/g' \
|
||||
-e 's/G4std/std/g' \
|
||||
-e 's/$package_name = "FADS";/$package_name = "FADS\/Goofy";/g' \
|
||||
> $tmpfile
|
||||
|
||||
diff $file $tmpfile
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
setenv G4INSTALL $HOME/geant4/cvsco/geant4
|
||||
setenv G4SYSTEM Linux-g++
|
||||
setenv G4LIB_BUILD_SHARED 1
|
||||
|
||||
# CLHEP (1.80)
|
||||
set clhep_vers = 1.8.0.0
|
||||
setenv CLHEP_BASE_DIR /usr/local/CLHEP/$clhep_vers
|
||||
|
||||
# ROOT
|
||||
setenv ROOTSYS $HOME/local/root/v3.03.06/root
|
||||
setenv PATH $ROOTSYS/bin:$PATH
|
||||
setenv LD_LIBRARY_PATH $ROOTSYS/lib:$LD_LIBRARY_PATH
|
||||
|
||||
Reference in New Issue
Block a user