]>
Commit | Line | Data |
---|---|---|
1 | #!/bin/bash | |
2 | ||
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 | ||
15 | [ -z $1 ] && { echo "Usage: rec.sh <run_number> <aaf_cluster> <num_events> <num_events_skip> <num_workers>"; exit 1; } | |
16 | ||
17 | PROOF="alice-caf.cern.ch" | |
18 | if [ ! -z $2 ]; then | |
19 | PROOF="$2" | |
20 | fi | |
21 | ||
22 | PROOFWK="" | |
23 | if [ ! -z $5 ]; then | |
24 | PROOFWK="$5" | |
25 | fi | |
26 | ||
27 | nev=${3:-1000} | |
28 | fev=${4:-0} | |
29 | ||
30 | cd reco | |
31 | # aliroot -q runProofLite.C\($1,$nev,$fev,\"VO_ALICE@AliRoot::$ALICE_LEVEL\"\) | |
32 | aliroot -q runProof.C\($1,$nev,$fev,\"aliprod@$PROOF\",\"$PROOFWK\"\) |