ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/batch/bin/run_MC.sh
Revision: 1.1
Committed: Wed Jun 20 20:22:29 2012 UTC (12 years, 10 months ago) by khahn
Content type: application/x-sh
Branch: MAIN
CVS Tags: compiled, HEAD
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/bin/sh
2
3 echo "Arguments: $*"
4 label=$1
5 chan=$2
6 outputDir=$3
7 totalMC=$4
8 inputfile=$5
9 outputfile=$6
10
11 export SCRAM_ARCH=slc5_amd64_gcc462
12 cd /data/blue/khahn/CMSSW_5_2_3_patch3/src/
13 eval `scramv1 runtime -sh`
14
15 cd MitHzz4l/
16 echo " "; echo "Show where we are"; echo " "
17 pwd
18 echo ""
19 echo "arg: label: ${label}"
20 echo "arg: chan: ${chan}"
21 echo "arg: inputfile: ${inputfile}"
22
23 ## env
24
25 echo "running ./Selection/bin/applySelection.exe --inputfile ${inputfile} --outputfile ${outputfile} --mc --totalMC ${totalMC} --doFSR >& ${label}_${jobNumber}.log"
26 ./Selection/bin/applySelection.exe --inputfile ${inputfile} --outputfile ${outputfile} --mc --totalMC ${totalMC} --doFSR >& ${mH}_${label}.log
27
28
29 mv $outputfile $outputDir/
30 mv ${chan}_${label}.log $outputDir/
31
32
33 ls
34
35 echo "DONE"
36 hostname
37
38 exit $status