ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/DistributedModelCalculations/Systematics/Source/calcSys.sh_template
Revision: 1.1
Committed: Tue Apr 10 13:37:09 2012 UTC (13 years ago) by buchmann
Branch: MAIN
CVS Tags: HEAD
Log Message:
Systematics files added (with updated files)

File Contents

# User Rev Content
1 buchmann 1.1 #!/bin/bash
2    
3     ############ BATCH QUEUE DIRECTIVES ##############################
4     # Lines beginning with #$ are used to set options for the SGE
5     # queueing system (same as specifying these options to the qsub
6     # command
7    
8     ### Specify the queue on which to run
9     #$ -q QUEUE
10    
11     ##################################################################
12    
13     export SCRAM_ARCH=slc5_amd64_gcc434
14     source $VO_CMS_SW_DIR/cmsset_default.sh
15    
16     cd /shome/buchmann/new_development/V020500/CMSSW_4_2_8/src/
17    
18     eval `scramv1 runtime -sh`
19    
20     REFERENCEDIR=THISDIR
21    
22     cd ${REFERENCEDIR}
23    
24     source /swshare/ROOT/thisroot.sh
25    
26     cd ../../exchange/
27     LOCDIR="$(date +%N)$(date +%N)"
28     mkdir -p $LOCDIR && cd $LOCDIR && mkdir -p output
29     mkdir -p ${REFERENCEDIR}/logs && mkdir -p ${REFERENCEDIR}/output
30    
31    
32     JZBCUT=SETJZBCUT
33     NJOBS=SETNJOBS
34     SYSTFILE=SETSYSTFILE
35    
36     ${REFERENCEDIR}/SystematicsWorkerScript.exec $NJOBS $1> ${REFERENCEDIR}/logs/myout_$1.txt 2>${REFERENCEDIR}/logs/myerr_$1.txt
37    
38     mv output/Distributed*.root ${REFERENCEDIR}/output/
39     cd ../
40     rm -r $LOCDIR