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
38 source /cvmfs/icarus.opensciencegrid.org/products/icarus/setup_icarus.sh
45 WDIR=
"${PWD}/sbncode-${LAR_VERSION}"
49 echo
"Unable to create directory ${WDIR}"
55 LAR_QUAL_STR=${LAR_QUAL
63 #mrb gitCheckout -t master sbncode
64 #echo "Bailing early..."
71 cat << EOF >> ${TOPDIR}/setup_sbncode-${
LAR_VERSION}.sh
78 cd ${WDIR}/srcs/sbncode/sbnanalysis
81 cmake .. -DCMAKE_BUILD_TYPE=Debug
85 echo
"source ${PWD}/bin/setup_sbnanalysis.sh" >> ${TOPDIR}/setup_sbncode-${
LAR_VERSION}.sh
87 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