]>
Commit | Line | Data |
---|---|---|
967f5306 | 1 | #! /bin/sh |
2 | # Take all the C++ macros from the local computer to the working directory | |
3 | command scp phristov@pcepalice69:/home/phristov/pp/*.C . | |
4 | ||
5 | # Execute the simulation macro. Redirect the output and error streams | |
6 | command aliroot -b -q sim.C > sim.log 2>&1 | |
7 | ||
8 | # Execute the reconstruction macro. Redirect the output and error streams | |
9 | command aliroot -b -q rec.C > rec.log 2>&1 | |
10 | ||
11 | # Create a new CASTOR directory for this job ($LSB_JOBID) | |
12 | command rfmkdir /castor/cern.ch/user/p/phristov/pp/$LSB_JOBID | |
13 | ||
14 | # Copy all log files to CASTOR | |
15 | for a in *.log; do rfcp $a /castor/cern.ch/user/p/phristov/pp/$LSB_JOBID; done | |
16 | # Copy all ROOT files to CASTOR | |
17 | for a in *.root; do rfcp $a /castor/cern.ch/user/p/phristov/pp/$LSB_JOBID; done |