-
Notifications
You must be signed in to change notification settings - Fork 0
/
set_environment.sh
27 lines (23 loc) · 992 Bytes
/
set_environment.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# set_environment.sh - preparing framework environment under GPL v2+
#-------------------------------------------------------------------
if voms-proxy-init --voms cms; then
echo -e "\nvoms CMS enabled\n"
else
echo -e "\nWarning: your grid certificate is not configured\n"
fi
export PPSFRAMEWORKROOT=`pwd`
export WORKINGPPSDIR=$PPSFRAMEWORKROOT/working
#if [-d "$WORKINGPPSDIR" -a ! -h "$WORKINGPPSDIR"]
if [ -d $WORKINGPPSDIR ]
then
echo -e "\n$WORKINGPPSDIR is present. Nothing is needed to do.\n"
else
echo -e "\nCreating a working dir.\n"
mkdir $PPSFRAMEWORKROOT/working
cp $PPSFRAMEWORKROOT/Skimmer/test/RunMissingMassSearches.py $PPSFRAMEWORKROOT/working/.
cp $PPSFRAMEWORKROOT/Skimmer/data/*.root $PPSFRAMEWORKROOT/working/.
cp -r $PPSFRAMEWORKROOT/Skimmer/test/json_dpg $PPSFRAMEWORKROOT/working/.
echo -e "\nChecking: $WORKINGPPSDIR\n"
fi
alias PREPAREMCGENERATION="cp $PPSFRAMEWORKROOT/MCProduction/Execution/*.sh $WORKINGPPSDIR/."