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}."
19 SBN_VERSION=
"v08_40_00_01"
23 SBN_VERSION=$LAR_VERSION
26 if [ -
z "$LAR_VERSION" ] || [ -
z "$LAR_QUAL" ]; then
27 echo
"Invalid LArSoft version: $LAR_VERSION -q $LAR_QUAL"
30 echo
"Using LArSoft version: $LAR_VERSION -q $LAR_QUAL"
33 # Set up the environment
35 cat << EOF > ${TOPDIR}/setup_sbncode-${SBN_VERSION}.sh
36 source /cvmfs/
uboone.opensciencegrid.org/products/setup_uboone.sh
40 source /cvmfs/icarus.opensciencegrid.org/products/icarus/setup_icarus.sh
44 source ./setup_sbncode-${SBN_VERSION}.sh
47 WDIR=
"${PWD}/sbncode-${SBN_VERSION}"
51 echo
"Unable to create directory ${WDIR}"
57 LAR_QUAL_STR=${LAR_QUAL
63 mrb gitCheckout -t ${SBN_VERSION} sbncode
65 #mrb gitCheckout -t master sbncode
66 #echo "Bailing early..."
73 cat << EOF >> ${TOPDIR}/setup_sbncode-${SBN_VERSION}.sh
80 cd ${WDIR}/srcs/sbncode/sbnanalysis
83 cmake .. -DCMAKE_BUILD_TYPE=Debug
87 echo
"source ${PWD}/bin/setup_sbnanalysis.sh" >> ${TOPDIR}/setup_sbncode-${SBN_VERSION}.sh
89 echo -
e "Setup finished. To use this environment, run\n\n source setup_sbncode-${SBN_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