6 ALICE_ITS='$ALICE_ROOT/ITS'
9 EXECFOLDER='$HOME/macroQAshifter'
11 echo "Run Number :[${RUN}]"
13 if [ "$REPLY" != "" ]; then
17 echo "Period :[${PERIOD}]"
19 if [ "$REPLY" != "" ]; then
23 echo "Pass : [${PASS}]"
25 if [ "$REPLY" != "" ]; then
29 echo "Year :[${YEAR}]"
31 if [ "$REPLY" != "" ]; then
35 echo "folder with macros :[${EXECFOLDER}]"
37 if [ "$REPLY" != "" ]; then
39 echo "Folder: $EXECFOLDER"
41 echo "local or lxplus (1=local 2=lxplus) :[${TMPFOLDER}]"
43 if [ "$REPLY" != "" ]; then
46 if [ "$TMPFOLDER" == "1" ]; then
49 TMPPLACE='/tmp/$USERNAME'
52 echo "Max number of files (Insert a number >0) :[${MAXFILES}]"
55 # *[a-zA-Z]*|*[!0-9]*|*[-]*)
56 # echo "Wrong: it is not a number > 0";;
59 # echo "Max number of files: $MAXFILES"
63 if [ "$REPLY" != "" ]; then
65 echo "Max number of files: $MAXFILES"
67 if [ ls -l "run$RUN" >/dev/null 2>&1 ]; then
68 echo "directory run$RUN exists "
73 if [ ls -l $PASS > /dev/null 2>&1 ]; then
74 echo "directory $PASS exixsts"
79 time aliroot -l <<EOI|tee merge$RUN.log
81 .x $EXECFOLDER/ReadQASDD.C($RUN,$YEAR,"${PERIOD}","${PASS}",$MAXFILES);
84 time aliroot -l <<EOI|tee plot$RUN.log
85 .x $EXECFOLDER/PlotQASDD.C("File.QA.${YEAR}.${PERIOD}.${PASS}.Run.${RUN}.root");
88 rm File.QA.${YEAR}.${PERIOD}.${PASS}.Run.${RUN}.root
89 if [ls -l "images" >/dev/null 2>&1 ]; then
90 echo "directory images exists"
102 rm -rf $TMPPLACE/*.root