]>
Commit | Line | Data |
---|---|---|
fb6fc115 | 1 | #!/bin/bash |
2 | ||
fb6fc115 | 3 | if [ "$1" != "-force" ] |
4 | then | |
5 | pgrep aliroot > /dev/null | |
6 | if [ "$?" -eq "0" ] | |
7 | then | |
8 | echo "Error: You can only start one rec.sh at a time. Please wait for the other session to terminate or close it." | |
9 | exit | |
10 | fi | |
11 | else | |
12 | shift | |
13 | fi | |
14 | ||
154117a7 | 15 | [ -z $1 ] && { echo "Usage: rec.sh <run_number> <aaf_cluster> <num_events> <num_events_skip> <num_workers>"; exit 1; } |
294ca602 | 16 | |
154117a7 | 17 | PROOF="alice-caf.cern.ch" |
18 | if [ ! -z $2 ]; then | |
19 | PROOF="$2" | |
294ca602 | 20 | fi |
21 | ||
154117a7 | 22 | PROOFWK="" |
23 | if [ ! -z $5 ]; then | |
24 | PROOFWK="$5" | |
25 | fi | |
fb6fc115 | 26 | |
154117a7 | 27 | nev=${3:-1000} |
28 | fev=${4:-0} | |
fb6fc115 | 29 | |
30 | cd reco | |
154117a7 | 31 | # aliroot -q runProofLite.C\($1,$nev,$fev,\"VO_ALICE@AliRoot::$ALICE_LEVEL\"\) |
32 | aliroot -q runProof.C\($1,$nev,$fev,\"aliprod@$PROOF\",\"$PROOFWK\"\) |