All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
setup_sbnd.sh
Go to the documentation of this file.
1 # Source this file to set the basic configuration needed by LArSoft
2 # and for the uBooNE-specific software that interfaces to LArSoft.
3 
4 # Set up ups for LArSoft
5 # Sourcing this setup will add /grid/fermiapp/products/larsoft and
6 # /grid/fermiapp/products/common to $PRODUCTS
7 #
8 
9 OASIS_LARSOFT_DIR="/cvmfs/oasis.opensciencegrid.org/fermilab/products/larsoft/"
10 FERMIAPP_LARSOFT_DIR="/grid/fermiapp/products/larsoft/"
11 OASIS_SBND_DIR="/cvmfs/oasis.opensciencegrid.org/sbnd/products/"
12 FERMIAPP_SBND_DIR="/grid/fermiapp/products/sbnd/"
13 FERMIAPP_COMMON_DIR="/grid/fermiapp/products/"
14 SBND_BLUEARC_DATA="/sbnd/data/"
15 
16 #if [[ -d "${FERMIAPP_COMMON_DIR}" ]]; then
17 # echo "Setting up the Grid Fermiapp common UPS area...${FERMIAPP_COMMON_DIR}"
18 # source ${FERMIAPP_COMMON_DIR}/setups.sh
19 #fi
20 
21 if [[ -d "${FERMIAPP_LARSOFT_DIR}" ]]; then
22  echo "Setting up the Grid Fermiapp larsoft UPS area...${FERMIAPP_LARSOFT_DIR}"
23  echo /bin/bash > /dev/null
24  source ${FERMIAPP_LARSOFT_DIR}/setups
25  export PRODUCTS=${PRODUCTS}:/grid/fermiapp/products/common/db
26 
27 elif [[ -d "${OASIS_LARSOFT_DIR}" ]]; then
28  echo "Setting up the OASIS Fermilab UPS area...${OASIS_LARSOFT_DIR}"
29  echo /bin/bash > /dev/null
30  source ${OASIS_LARSOFT_DIR}/setups.for.cvmfs
31  export PRODUCTS=${PRODUCTS}:/cvmfs/oasis.opensciencegrid.org/fermilab/products/common/db
32 fi
33 
34 if [[ -d "${FERMIAPP_SBND_DIR}" ]]; then
35  echo "Setting up the Grid Fermiapp sbnd UPS area...${FERMIAPP_SBND_DIR}"
36  echo /bin/bash > /dev/null
37 # source ${FERMIAPP_SBND_DIR}/setups
38  export PRODUCTS="/grid/fermiapp/products/sbnd:$PRODUCTS"
39 
40 elif [[ -d "${OASIS_SBND_DIR}" ]]; then
41  echo "Setting up the OASIS sbnd UPS area...${OASIS_SBND_DIR}"
42  echo /bin/bash > /dev/null
43  source ${OASIS_SBND_DIR}/setups.for.cvmfs
44 fi
45 
46 # Add uBooNE path to FW_SEARCH_PATH
47 #
48 if [[ -d "${SBND_BLUEARC_DATA}" ]]; then
49 
50  [[ -n $FW_SEARCH_PATH ]] && FW_SEARCH_PATH=`dropit -e -p $FW_SEARCH_PATH ${SBND_BLUEARC_DATA}`
51  export FW_SEARCH_PATH=${SBND_BLUEARC_DATA}:${FW_SEARCH_PATH}
52 
53 fi
54 
55 
56 # Set up the basic tools that will be needed
57 #
58 setup git
59 setup gitflow
60 setup mrb
61 
62 # Define the value of MRB_PROJECT. This can be used
63 # to drive other set-ups.
64 # We need to set this to 'larsoft' for now.
65 
66 export MRB_PROJECT=larsoft
67 
68 # Define environment variables that store the standard experiment name.
69 
70 export JOBSUB_GROUP=sbnd
71 export EXPERIMENT=sbnd
72 export SAM_EXPERIMENT=sbnd
73 
74 # For Art workbook
75 
76 export ART_WORKBOOK_OUTPUT_BASE=/sbnd/data/users
77 export ART_WORKBOOK_WORKING_BASE=/sbnd/app/users
78 export ART_WORKBOOK_QUAL="s2:e5:nu"
then source grid fermiapp products dune setup_dune_fermiapp sh exit else echo No setup file found exit fi setup
then setup git exit fi setup gitflow exit export MRB_PROJECT
do source
pdgs p
Definition: selectors.fcl:22
then source cvmfs dune opensciencegrid org products dune setup_dune sh exit elif[-f/grid/fermiapp/products/dune/setup_dune_fermiapp.sh]
constexpr details::BinObj< T > bin(T value)
Returns a wrapper to print the specified data in binary format.
then shift fi
esac shift done rm f *xml find $SBNDCODE_DIR source fcl gen name *fcl while read fcl do if!echo $fcl grep q common
g grid
do i e
stream1 can override from command line with o or output services user sbnd
height to which particles are projected pnfs larsoft persistent physics cosmics Fermilab CORSIKA standard He_showers_ * db