ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/dasu/UltraFastSim/runJob.sh
Revision: 1.1
Committed: Sat Mar 5 00:29:14 2011 UTC (14 years, 2 months ago) by dasu
Content type: application/x-sh
Branch: MAIN
CVS Tags: v2
Log Message:
Updated to save all three operating points

File Contents

# User Rev Content
1 dasu 1.1 #!/bin/bash
2     #
3     # Run the job
4     #
5     Script=$0
6     Executable=$1
7     jobName=$2
8     nEventsPerJob=$3
9     job=$4
10     pileupLevel=$5
11     $Executable $jobName $nEventsPerJob $job $pileupLevel
12     #
13     # Check status
14     #
15     runStatus=$?
16     if [ "$runStatus" != "0" ]; then
17     echo "$1 failed -- file not stored in HDFS"
18     exit $runStatus
19     fi
20     #
21     # Transfer root file(s) to HDFS
22     #
23     for file in `ls -1 *.root 2>/dev/null`; do
24     echo Executing srmcp -2 -debug=true -retry_num=0 file:///$file srm://cmshdfs01.hep.wisc.edu:8443/srm/v2/server?SFN=/hdfs/store/user/$USER/$jobName/`basename $file`
25     srmcp -2 -debug=true -retry_num=0 file:///$file srm://cmshdfs01.hep.wisc.edu:8443/srm/v2/server?SFN=/hdfs/store/user/$USER/$jobName/`basename $file`
26     # srmcpStatus = $?
27     # if [ "$srmcpStatus" != "0" ]; then
28     # echo "srmcp failed for $file -- not stored in HDFS"
29     # fi
30     rm $file
31     done