6 ALICE_ITS='$ALICE_ROOT/ITS'
9 EXECFOLDER='$HOME/macroQAshifter'
10 echo "Run Number :[${RUN}]"
12 if [ "$REPLY" != "" ]; then
16 echo "Period :[${PERIOD}]"
18 if [ "$REPLY" != "" ]; then
22 echo "Pass : [${PASS}]"
24 if [ "$REPLY" != "" ]; then
28 echo "Year :[${YEAR}]"
30 if [ "$REPLY" != "" ]; then
34 echo "folder with macros :[${EXECFOLDER}]"
36 if [ "$REPLY" != "" ]; then
37 export EXECFOLDER=$REPLY
38 echo "Folder: $EXECFOLDER"
40 echo "local or lxplus (1=local 2=lxplus) :[${TMPFOLDER}]"
42 if [ "$REPLY" != "" ]; then
43 export TMPFOLDER=$REPLY
45 if [ "$TMPFOLDER" == "1" ]; then
46 export TMPPLACE='/tmp'
48 export TMPPLACE='/tmp/$USERNAME'
50 if [ ls -l "run$RUN" >/dev/null 2>&1 ]; then
51 echo "directory run$RUN exists "
56 if [ ls -l $PASS > /dev/null 2>&1 ]; then
57 echo "directory $PASS exixsts"
62 time aliroot -l <<EOI|tee merge.log
64 .x $EXECFOLDER/ReadQASDD.C($RUN,$YEAR,"${PERIOD}","${PASS}" );
67 time aliroot -l <<EOI|tee plot.log
68 .x $EXECFOLDER/PlotQASDD.C("File.QA.${YEAR}.${PERIOD}.${PASS}.Run.${RUN}.root");
71 rm File.QA.${YEAR}.${PERIOD}.${PASS}.Run.${RUN}.root
72 if [ls -l "images" >/dev/null 2>&1 ]; then
73 echo "directory images exists"
77 mv *.ps *.eps images/.
85 rm -rf $TMPPLACE/*.root