ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/AnalysisFramework/DistributedModelCalculations/CBAFviaCRAB/SendCrabJob.sh
(Generate patch)

Comparing UserCode/cbrown/AnalysisFramework/DistributedModelCalculations/CBAFviaCRAB/SendCrabJob.sh (file contents):
Revision 1.1 by buchmann, Thu Jan 19 13:55:39 2012 UTC vs.
Revision 1.2 by buchmann, Thu Jan 19 14:14:36 2012 UTC

# Line 23 | Line 23 | function clean {
23  
24   function produce_all_plots {
25   directory=$1
26 < cp ../Limits/PlotScanResults.exec .
27 < ./PlotScanResults.exec $directory
28 < rm ../Limits/PlotScanResults.exec
29 < rm LOGerr.txt
30 < rm Tex.txt
31 < rm LOG.txt
26 >
27 > ## delete previous executable so everything's up-to-date
28 > clean_file "PlotScanResults.C"
29 >
30 > cp ../Limits/PlotScanResults.C .
31 > g++ PlotScanResults.C -o PlotScanResults.exec `root-config --glibs --cflags` -lTreePlayer
32 > clean_file "PlotScanResults.C"
33 > echo "Compiled script to produce Going to produce plots now"
34 > PlotScanResults.exec $directory
35 > clean_file "LOGerr.txt"
36 > clean_file "Tex.txt"
37 > clean_file "LOG.txt"
38   echo "All plots have been generated. That's all, now have a look at the results :-)"
39   }
40  
# Line 153 | Line 159 | fi
159   python utils/fusejobs.py -d ${name}
160   rm -r Plots/
161   source /swshare/ROOT/thisroot.sh
162 < produce_all_plots "/scratch/`whoami`/bussolaresults/${name}.root"
162 >
163   rm -r Plots_${name}/
164 + rm -r Plots/
165 + produce_all_plots "/scratch/`whoami`/bussolaresults/${name}.root"
166   mv Plots/ Plots_${name}/
167   mail_all_plots Plots_${name}
168   echo "Done. Your results are in Plots_${name}/ :-)"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines