setup.sh

Go to the documentation of this file.
00001 
00002 echo -n "detect location   "
00003 LOCATION=$(hostname -d)
00004 echo $LOCATION
00005 
00006 MYCLASS_PATH=$(pwd)
00007 export MYCLASS_PATH
00008 
00009 export Cascadeversion=2.0.2
00010 export CLHEPversion=1.9.4.2
00011 #export CLHEPversion=2.0.3.2
00012 
00013 if [[ $LOCATION == "desy.de" ]] ; then
00014 #################### DESY setup ####################################
00015     echo "Initialize DESY setup ..."
00016     source check_platform_desy
00017 
00018     export PREFIX=/afs/desy.de/group/alliance/mcg/public
00019     
00020     # ROOT initialisation if not done yet by user
00021     if [ -z $ROOTSYS ]; then
00022         export ROOTver=5.22.00
00023         if ( echo $SYSNAME | grep amd64 ); then
00024             export ROOTSYS=/opt/products/root64/$ROOTver
00025             ROOTLIB=$ROOTSYS/lib64
00026         else
00027             export ROOTSYS=/opt/products/root/$ROOTver
00028             ROOTLIB=$ROOTSYS/lib
00029         fi
00030         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTLIB
00031         export PATH=$ROOTSYS/bin:$PATH
00032     fi
00033     
00034     #export CLHEPdir=$PREFIX/CLHEP/2.0.3.2/$SYSNAME
00035     export CLHEPdir=$PREFIX/CLHEP/$CLHEPversion/$SYSNAME
00036     export CERNLIB=/opt/products/cernlib/2005/lib
00037     #export CASCADEPDFPATH=$PREFIX/MCGenerators/cascade/2.0.2/data
00038     export PDFPATH=$PREFIX/MCGenerators/cascade/$Cascadeversion/data
00039 
00040 elif [[ $LOCATION == "naf.desy.de" ]] ; then
00041 #################### NAF setup ####################################
00042     echo "Initialize NAF setup ..."
00043     source check_platform_desy
00044 
00045     export PREFIX=/afs/desy.de/group/alliance/mcg/public
00046     
00047     # ROOT initialisation if not done yet by user
00048     if [ -z $ROOTSYS ]; then
00049         export ROOTver=5.22.00
00050         if ( echo $SYSNAME | grep amd64 ); then
00051             export ROOTSYS=/afs/naf.desy.de/products/root/$ROOTver
00052             ROOTLIB=$ROOTSYS/lib
00053         else
00054             echo "No 32bit ROOT version at NAF!"
00055             exit 1
00056         fi
00057         export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTLIB
00058         export PATH=$ROOTSYS/bin:$PATH
00059     fi
00060     
00061     #export CLHEPdir=$PREFIX/CLHEP/2.0.3.2/$SYSNAME
00062     export CLHEPdir=$PREFIX/CLHEP/$CLHEPversion/$SYSNAME
00063     export CERNLIB=/opt/products/cernlib/2005/lib
00064     #export CASCADEPDFPATH=$PREFIX/MCGenerators/cascade/2.0.2/data
00065     export PDFPATH=$PREFIX/MCGenerators/cascade/$Cascadeversion/data
00066 
00067 else
00068 ################### Cern setup, default! ###############################
00069     echo "Initialize cern setup ..."
00070     source check_platform
00071 
00072     export PREFIX=/afs/cern.ch/sw/lcg/external
00073     
00074 # ROOT initialisation
00075     export ROOTver=5.18.00d
00076     export ROOTSYS=$PREFIX/root/$ROOTver/$SYSNAME/root
00077     export ROOTLIB=$ROOTSYS/lib
00078     export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTLIB
00079     export PATH=$ROOTSYS/bin:$PATH
00080     
00081     #export CLHEPdir=$PREFIX/clhep/2.0.3.2/$SYSNAME
00082     export CLHEPdir=$PREFIX/clhep/$CLHEPversion/$SYSNAME
00083     export CERNLIB=$PREFIX/cernlib/2005/$SYSNAME/lib
00084     #export CASCADEPDFPATH=$PREFIX/MCGenerators/cascade/2.0.2/data
00085     export PDFPATH=$PREFIX/MCGenerators/cascade/$Cascadeversion/share/data
00086 fi
00087 
00088 ####################### generic pathnames and generator versions ############
00089 
00090 export HepMCversion=2.03.11
00091 export HepPDTversion=2.05.04
00092 export FastJetversion=2.4.1
00093 export GSLversion=1.10
00094 export Pythia8version=130
00095 export Pythia6version=421.2
00096 #export Herwigppversion=2.2.1
00097 #export Herwigppversion=2.3.1
00098 export Herwigppversion=2.4.0
00099 export Herwigversion=6.510.3
00100 export Jimmyversion=4.31.3
00101 #export ThePEGversion=1.3.0
00102 #export ThePEGversion=1.4.0
00103 export ThePEGversion=1.5.0
00104 export LHAPDFversion=5.7.0
00105 
00106 export HepMCdir=$PREFIX/HepMC/$HepMCversion/$SYSNAME
00107 export HepPDTdir=$PREFIX/HepPDT/$HepPDTversion/$SYSNAME
00108 export FastJetdir=$PREFIX/fastjet/$FastJetversion/$SYSNAME
00109 export GSLdir=$PREFIX/GSL/$GSLversion/$SYSNAME
00110 export Pythia8dir=$PREFIX/MCGenerators/pythia8/$Pythia8version/$SYSNAME
00111 export Pythia8DATA=$PREFIX/MCGenerators/pythia8/$Pythia8version/share/xmldoc
00112 export Pythia6dir=$PREFIX/MCGenerators/pythia6/$Pythia6version/$SYSNAME
00113 export Herwigppdir=$PREFIX/MCGenerators/herwig++/$Herwigppversion/$SYSNAME
00114 export ThePEGdir=$PREFIX/MCGenerators/thepeg/$ThePEGversion/$SYSNAME
00115 export Herwigdir=$PREFIX/MCGenerators/herwig/$Herwigversion/$SYSNAME
00116 export Jimmydir=$PREFIX/MCGenerators/jimmy/$Jimmyversion/$SYSNAME
00117 export LHAPDFdir=$PREFIX/MCGenerators/lhapdf/$LHAPDFversion/$SYSNAME
00118 export LHAPDFsets=$PREFIX/MCGenerators/lhapdf/$LHAPDFversion/share/PDFsets
00119 export LHAPATH=$PREFIX/MCGenerators/lhapdf/$LHAPDFversion/share/PDFsets
00120 export Cascadedir=$PREFIX/MCGenerators/cascade/$Cascadeversion/$SYSNAME
00121 
00122 # add everything to LD_LIBRARY_PATH
00123 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$Pythia8dir/lib
00124 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$Pythia8DATA
00125 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$Pythia6dir/lib
00126 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GSLdir/lib/
00127 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HepMCdir/lib
00128 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HepPDTdir/lib
00129 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CLHEPdir/lib
00130 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FastJetdir/lib
00131 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LHAPDFdir/lib
00132 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$Herwigppdir/lib/Herwig++
00133 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$Herwigdir/lib
00134 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$Jimmydir/lib
00135 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ThePEGdir/lib/ThePEG
00136 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$Cascadedir/lib
00137 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MYCLASS_PATH/lib
00138 
00139 echo "... done!"

Generated on Mon Jan 4 15:22:34 2010 for HepMCAnalysis by  doxygen 1.4.7