Skip to content

Commit

Permalink
Merge pull request #104 from rlcee/archive_230802
Browse files Browse the repository at this point in the history
important global setup file
  • Loading branch information
rlcee authored Aug 2, 2023
2 parents 4e35c84 + ad8e4f6 commit 99c63ce
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions archive/setupmu2e-art.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#! /bin/echo "You should be sourcing this file."
#
# Setup the Mu2e environment; this script does not setup
# any release of the Mu2e software.
#
# This file is sourced directly or as part of "setup mu2e"
#

# where mu2e-managed products are (artexternals)
export MU2E=/cvmfs/mu2e.opensciencegrid.org

# magnetic field maps, data files for tests etc.
export MU2E_DATA_PATH=${MU2E}/DataFiles

# always redefine ups to point to artexternals version for consistency
source ${MU2E}/artexternals/setup

# make sure the mu2e path is in front of fermilab path
export PRODUCTS=`dropit -p $PRODUCTS -sf /cvmfs/fermilab.opensciencegrid.org/products/common/db`
export PRODUCTS=`dropit -p $PRODUCTS -sf /cvmfs/mu2e.opensciencegrid.org/artexternals`

# Make sure that subshells can see the UPS setup command.
export -f setup
export -f unsetup

# add some Mu2e utility commands
export PATH=`dropit -p $PATH -sf /cvmfs/mu2e.opensciencegrid.org/bin`

# force use of the current default UPS git
setup git

# setup Muse for convenience
setup muse

# Access to Mu2e cvs
export [email protected]:/cvs/mu2e
export CVS_RSH=/usr/bin/ssh

# Needed for ifdh
export EXPERIMENT=mu2e

# Needed for sam_web_client
export SAM_EXPERIMENT=mu2e

# Needed for jobsub_client
export JOBSUB_GROUP=mu2e

# make sure the default man paths are included (path starts with ":")
[ "${MANPATH:0:1}" != ":" ] && export MANPATH=":"$MANPATH

0 comments on commit 99c63ce

Please sign in to comment.