]>
Commit | Line | Data |
---|---|---|
2a250bc5 | 1 | #!/bin/bash |
2 | ||
3 | RUN='123456' | |
4 | PERIOD='LHC10b' | |
5 | PASS='pass1' | |
6 | YEAR='2010' | |
7 | ALICE_ITS='$ALICE_ROOT/ITS' | |
8 | TMPPLACE='/tmp' | |
9 | TMPFOLDER='1' | |
10 | EXECFOLDER='$HOME/macroQAshifter' | |
11 | FILERUN=LHC10b.txt | |
12 | FILEQATREND='FileQAtrend' | |
13 | echo "file with the run numbers (Please insert the full path without environment variables) :[${FILERUN}]" | |
14 | read | |
15 | if [ "$REPLY" != "" ]; then | |
16 | export FILERUN="$REPLY" | |
17 | echo "File $FILERUN" | |
18 | fi | |
19 | echo "Period :[${PERIOD}]" | |
20 | read | |
21 | if [ "$REPLY" != "" ]; then | |
22 | export PERIOD=$REPLY | |
23 | echo "Period $PERIOD" | |
24 | fi | |
25 | echo "Pass : [${PASS}]" | |
26 | read | |
27 | if [ "$REPLY" != "" ]; then | |
28 | export PASS=$REPLY | |
29 | echo "Pass $PASS " | |
30 | fi | |
31 | echo "Year :[${YEAR}]" | |
32 | read | |
33 | if [ "$REPLY" != "" ]; then | |
34 | export YEAR=$REPLY | |
35 | echo "Year $YEAR" | |
36 | fi | |
37 | echo "local or lxplus (1=local 2=lxplus) :[${TMPFOLDER}]" | |
38 | read | |
39 | if [ "$REPLY" != "" ]; then | |
40 | export TMPFOLDER=$REPLY | |
41 | fi | |
42 | if [ "$TMPFOLDER" == "1" ]; then | |
43 | export TMPPLACE='/tmp' | |
44 | else | |
45 | export TMPPLACE='/tmp/$USERNAME' | |
46 | fi | |
47 | echo "folder with macros :[${EXECFOLDER}]" | |
48 | read | |
49 | if [ "$REPLY" != "" ]; then | |
50 | export EXECFOLDER=$REPLY | |
51 | echo "Folder: $EXECFOLDER" | |
52 | fi | |
53 | time aliroot -l <<EOI | tee trend.log | |
54 | .L $EXECFOLDER/TrendQASDD.C++ | |
55 | TrendQASDD("${FILERUN}","FileQAtrend","${PASS}",$YEAR,"${PERIOD}") | |
56 | .q | |
57 | EOI | |
58 | gv SDDtrend$PERIOD$PASS.ps & | |
59 | echo "Done!!" |