Created
January 25, 2012 10:47
-
-
Save brynmathias/1675789 to your computer and use it in GitHub Desktop.
setup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pwd=$PWD | |
# prompt analysis directory | |
export CAF_TRIGGER=/vols/cms03/bm409/ | |
export L1CMSSW=CMSSW_4_2_5 | |
# 64bit architecture | |
export SCRAM_ARCH=slc5_amd64_gcc434 | |
# GRID UI | |
source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.sh | |
# setup CMSSW environment | |
cd $CAF_TRIGGER/$L1CMSSW/src | |
eval `scram ru -sh` | |
cd $pwd | |
# CRAB | |
#source /afs/cern.ch/cms/ccs/wm/scripts/Crab/crab.sh | |
source /afs/cern.ch/cms/ccs/wm/scripts/Crab/crab.sh | |
# include scripts in path | |
export PATH=${PATH}:$CAF_TRIGGER/econte | |
export CASTORPATH=rfio:///castor/cern.ch/cms/store/caf/user/L1AnalysisNtuples/ | |
# add jobs to pythonpath | |
export PYTHONPATH=${PYTHONPATH}:$CAF_TRIGGER/econte/$L1CMSSW/src/UserCode/L1TriggerDPG/test | |
# add ROOT macros to ROOTPATH - doesn't work, grrr | |
export ROOTPATH=${ROOTPATH}:$CAF_TRIGGER/l1analysis/macros | |
if [ ! -e "$CAF_TRIGGER/ntuples" ] | |
then ln -s $CAF_TRIGGER/l1analysis/ntuples $CAF_TRIGGER/ntuples | |
fi | |
if [ ! -e "$CAF_TRIGGER/macros" ] | |
then ln -s $CAF_TRIGGER/l1analysis/macros $CAF_TRIGGER/macros | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment