#!/bin/bah # Script install the data files needed by GEANT4. Either it # gets this from the download page or if present in the directory # only copy the files cd $SIMPATH/transport/ mkdir -p data/geant4 echo "**** Installing the Geant4 data files ****" | tee -a $logfile if [ "$geant4_get_data" = "yes" ]; then echo "**** Retrieving the data files ****" | tee -a $logfile echo "**** Retrieving G4EMLOW ****" | tee -a $logfile wget http://geant4.web.cern.ch/geant4/support/source/G4EMLOW.5.1.tar.gz echo "**** Retrieving G4NDL ****" | tee -a $logfile wget http://geant4.web.cern.ch/geant4/support/source/G4NDL.3.12.tar.gz echo "**** Retrieving G4RadiactiveDecay ****" | tee -a $logfile wget http://geant4.web.cern.ch/geant4/support/source/G4RadioactiveDecay.3.2.tar.gz echo "**** Retrieving PhotonEvaporation ****" | tee -a $logfile wget http://geant4.web.cern.ch/geant4/support/source/PhotonEvaporation.2.0.tar.gz echo "**** Retrieving G4ELASTIC ****" | tee -a $logfile wget http://geant4.web.cern.ch/geant4/support/source/G4ELASTIC.1.1.tar.gz echo "**** Retrieving G4ABLA ****" | tee -a $logfile wget http://geant4.web.cern.ch/geant4/support/source/G4ABLA.3.0.tar.gz fi if [ -e G4EMLOW.5.1.tar.gz ]; then mv G4EMLOW.5.1.tar.gz data/geant4 cd data/geant4 untar G4EMLOW G4EMLOW.5.1.tar.gz ln -s G4EMLOW5.1 G4EMLOW rm G4EMLOW.5.1.tar.gz cd ../.. else echo "Could not find file G4EMLOW.4.3.tar.gz in $SIMPATH/transport" | tee -a $logfile fi if [ -e G4NDL.3.12.tar.gz ]; then mv G4NDL.3.12.tar.gz data/geant4 cd data/geant4 untar G4NDL G4NDL.3.12.tar.gz ln -s G4NDL3.12 G4NDL rm G4NDL.3.12.tar.gz cd ../.. else echo "Could not find file G4NDL.3.11.tar.gz in $SIMPATH/transport" | tee -a $logfile fi if [ -e G4RadioactiveDecay.3.2.tar.gz ]; then mv G4RadioactiveDecay.3.2.tar.gz data/geant4 cd data/geant4 untar G4RadioactiveDecay G4RadioactiveDecay.3.2.tar.gz ln -s RadioactiveDecay3.2 RadioactiveDecay rm G4RadioactiveDecay.3.2.tar.gz cd ../.. else echo "Could not find file G4RadioactiveDecay.3.2.tar.gz in $SIMPATH/transport" | tee -a $logfile fi if [ -e PhotonEvaporation.2.0.tar.gz ]; then mv PhotonEvaporation.2.0.tar.gz data/geant4 cd data/geant4 untar PhotonEvaporation PhotonEvaporation.2.0.tar.gz ln -s PhotonEvaporation2.0 PhotonEvaporation rm PhotonEvaporation.2.0.tar.gz cd ../.. else echo "Could not find file PhotonEvaporation.2.0.tar.gz in $SIMPATH/transport" | tee -a $logfile fi if [ -e G4ELASTIC.1.1.tar.gz ]; then mv G4ELASTIC.1.1.tar.gz data/geant4 cd data/geant4 untar G4ELASTIC G4ELASTIC.1.1.tar.gz ln -s G4ELASTIC1.1 G4ELASTIC rm G4ELASTIC.1.1.tar.gz cd ../.. else echo "Could not find file G4ELASTIC.1.1.tar.gz in $SIMPATH/transport" | tee -a $logfile fi if [ -e G4ABLA.3.0.tar.gz ]; then mv G4ABLA.3.0.tar.gz data/geant4 cd data/geant4 untar G4ABLA G4ABLA.3.0.tar.gz ln -s G4ABLA3.0 G4ABLA rm G4ABLA.3.0.tar.gz cd ../.. else echo "Could not find file G4ABLA.3.0.tar.gz in $SIMPATH/transport" | tee -a $logfile fi cd $SIMPATH return 1