source: HiSusy/trunk/config.csh @ 1

Last change on this file since 1 was 1, checked in by zerwas, 11 years ago

first import of structure, PYTHIA8 and DELPHES

File size: 1.6 KB
Line 
1#!/bin/tcsh
2
3echo setting up root 5.34
4#the root initialisation was copied from /lal/root/5.34/setup.csh
5# to change the version, change the number in the line "set init_script=...."
6
7# echo "Setting the ROOTSYS and PATH Variables"
8
9set root_arch=`uname -i`
10switch ( $root_arch )
11case i386:
12     set libdir=lib
13     breaksw
14
15case x86_64:
16       set libdir=lib64
17       breaksw
18
19default:
20       echo "Error: unsupported root_architecture ($root_arch)"
21       exit 1
22       breaksw
23endsw
24
25# ROOTSYS must point to the directory containing ROOT etc/
26set init_script=`echo /lal/root/5.34/setup.sh`
27if ( -z ${init_script} ) then
28  echo "Failed to guess ROOT version. Cannot set the environment."
29  exit 2
30endif
31set root_dir=`dirname ${init_script}`
32set root_version=`basename ${root_dir}`
33
34if ( ${init_script} == '.' ) then
35  echo "Failed to guess ROOT version. Cannot set the environment."
36  exit 3
37endif
38set root_sys_dir=/lal/root/${root_version}
39if ( ! -d ${root_sys_dir} ) then
40  echo "ROOT version ${root_version} not found"
41  exit 4
42endif
43set root_bin_dir=${root_sys_dir}/bin/${root_arch}
44if ( ! -d ${root_bin_dir} ) then
45  echo "Architecture ${root_arch} not available for ROOT version ${root_version}"
46  exit 5
47endif
48setenv ROOTSYS ${root_sys_dir}
49
50# ROOT binaries are located in an root_arch-specific directory under bin
51setenv PATH ${root_bin_dir}:${PATH}
52
53setenv LD_LIBRARY_PATH ${ROOTSYS}/${libdir}:${LD_LIBRARY_PATH}
54
55echo setting up Pythia8 with HepMC
56source `pwd`/Pythia8/pythia8170/examples/config.csh
57
58echo setting up PythiaDelphes
59setenv PYTHIA8LOCATION `pwd`/Pythia8/pythia8170
60setenv PYTHIA8DATA `pwd`/Pythia8/pythia8170
Note: See TracBrowser for help on using the repository browser.