3 ###############################################################################
4 # Set up the environment and install sbncode on a GPVM
6 # A. Mastbaum <mastbaum@uchicago.edu>, 2018/06/12
7 ###############################################################################
9 # Check we're in a good location
10 #ALLOWED="/sbnd/app/users/${USER}"
11 #if [[ ${PWD} != *"${ALLOWED}"* ]]; then
12 # echo "Please move to a location inside ${ALLOWED}."
24 if [ -
z "$LAR_VERSION" ] || [ -
z "$LAR_QUAL" ]; then
25 echo
"Invalid LArSoft version: $LAR_VERSION -q $LAR_QUAL"
28 echo
"Using LArSoft version: $LAR_VERSION -q $LAR_QUAL"
31 # Set up the environment
33 cat << EOF > ${TOPDIR}/setup_sbncode-${
LAR_VERSION}.sh
34 source /cvmfs/
uboone.opensciencegrid.org/products/setup_uboone.sh
39 source /cvmfs/icarus.opensciencegrid.org/products/icarus/setup_icarus.sh
46 WDIR=
"${PWD}/sbncode-${LAR_VERSION}"
50 echo
"Unable to create directory ${WDIR}"
56 LAR_QUAL_STR=${LAR_QUAL
64 #mrb gitCheckout -t master sbncode
65 #echo "Bailing early..."
72 cat << EOF >> ${TOPDIR}/setup_sbncode-${
LAR_VERSION}.sh
79 cd ${WDIR}/srcs/sbncode/sbnanalysis
82 cmake .. -DCMAKE_BUILD_TYPE=Debug
86 echo
"source ${PWD}/bin/setup_sbnanalysis.sh" >> ${TOPDIR}/setup_sbncode-${
LAR_VERSION}.sh
88 echo -
e "Setup finished. To use this environment, run\n\n source setup_sbncode-${LAR_VERSION}.sh"
process_name opflash particleana ie ie ie z
then source grid fermiapp products dune setup_dune_fermiapp sh exit else echo No setup file found exit fi setup
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.
stream1 can override from command line with o or output services user sbnd