Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10664313
setup.csh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
setup.csh
View Options
# Setup script for spartyjet
#Check if ROOT is setup
if
(
!
$?
ROOTSYS
)
then
echo
"ROOTSYS not defined. Please set up ROOT before compiling or running."
exit
1
endif
# Pythia8 setup
if
(
`
root-config --has-pythia8
`
==
"yes"
&& !
$?
PYTHIA8DIR
)
then
echo
"Pythia8 enabled, but PYTHIA8DIR undefined. If using PYTHIA8, please define it and re-source setup.sh"
else
setenv
LD_LIBRARY_PATH
${
LD_LIBRARY_PATH
}
:
${
PYTHIA8DIR
}
/lib
setenv
PYTHIA8DATA
${
PYTHIA8DIR
}
/xmldoc
endif
# Pythia6 setup
if
(
`
root-config --has-pythia6
`
==
"yes"
&& !
$?
PYTHIA6DIR
)
then
echo
"Pythia6 enabled, but PYTHIA6DIR undefined. If using PYTHIA6, please define it and re-source setup.sh"
else
setenv
LD_LIBRARY_PATH
${
LD_LIBRARY_PATH
}
:
${
PYTHIA6DIR
}
endif
# Check if fastjet should be installed
if
(
{
fastjet-config --prefix
}
)
then
set
FASTJETDIR
=
`
fastjet-config --prefix
`
setenv
PATH
${
PATH
}
:
`
pwd
`
/External/fastjet-2.4.3/bin
setenv
DYLD_LIBRARY_PATH
`
pwd
`
/External/fastjet-2.4.3/lib:
${
DYLD_LIBRARY_PATH
}
endif
#Define SpartyJet dirctory
if
(
!
$?
SPARTYJETDIR
)
then
setenv
SPARTYJETDIR
`
pwd
`
# Setup environment
setenv
PYTHONPATH
${
PYTHONPATH
}
:
${
SPARTYJETDIR
}
/display:
${
SPARTYJETDIR
}
/python
setenv
LD_LIBRARY_PATH
${
LD_LIBRARY_PATH
}
:
${
SPARTYJETDIR
}
/libs
endif
# Print Environment
echo
"######################################################"
echo
"SpartyJet - v3.6"
echo
""
echo
"SpartyJet: -------- "
$SPARTYJETDIR
echo
"ROOT: -------- "
`
root-config --prefix
`
if
(
!
$?
FASTJETDIR
)
then
echo
"FastJet: -------- Using internal fastjet If you have not already done so do: 'make fastjet' then compile spartyjet"
else
echo
"FastJet: -------- using ${FASTJETDIR}"
endif
if
(
!
$?
F77
)
then
echo
"StdHep: -------- disabled"
else
echo
"StdHep: -------- enabled (using $F77)"
endif
if
(
!
$?
PYTHIA6DIR
)
then
echo
"Pythia6: -------- disabled"
else
echo
"Pythia6: -------- enabled (${PYTHIA6DIR})"
endif
if
(
!
$?
PYTHIA8DIR
)
then
echo
"Pythia8: -------- disabled"
else
echo
"Pythia8: -------- enabled (${PYTHIA8DIR})"
endif
echo
"######################################################"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 6:36 AM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4858711
Default Alt Text
setup.csh (2 KB)
Attached To
rSPARTYJETSVN spartyjetsvn
Event Timeline
Log In to Comment