X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FmacrosSDD%2FShowSDDQA.sh;h=6673be2bd978f34f8e62905c693bdf9124417124;hb=6b8d43785ead9dcd91c400f11fa9d584fc59dd71;hp=09dee57e665fa5bed110897a6728357854a9e744;hpb=e8eba3587f66eececd29ca3d0c55fe405b3e9c61;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/macrosSDD/ShowSDDQA.sh b/ITS/macrosSDD/ShowSDDQA.sh index 09dee57e665..6673be2bd97 100755 --- a/ITS/macrosSDD/ShowSDDQA.sh +++ b/ITS/macrosSDD/ShowSDDQA.sh @@ -4,30 +4,66 @@ PERIOD='LHC10a' PASS='pass1' YEAR='2010' ALICE_ITS='$ALICE_ROOT/ITS' +TMPPLACE='/tmp' +TMPFOLDER='1' +EXECFOLDER='$HOME/macroQAshifter' +MAXFILES='300' echo "Run Number :[${RUN}]" read if [ "$REPLY" != "" ]; then -export RUN=$REPLY +RUN=$REPLY echo "Run $RUN" fi echo "Period :[${PERIOD}]" read if [ "$REPLY" != "" ]; then -export PERIOD=$REPLY +PERIOD=$REPLY echo "Period $PERIOD" fi echo "Pass : [${PASS}]" read if [ "$REPLY" != "" ]; then -export PASS=$REPLY +PASS=$REPLY echo "Pass $PASS " fi echo "Year :[${YEAR}]" read if [ "$REPLY" != "" ]; then -export YEAR=$REPLY +YEAR=$REPLY echo "Year $YEAR" fi +echo "folder with macros :[${EXECFOLDER}]" +read +if [ "$REPLY" != "" ]; then +EXECFOLDER=$REPLY +echo "Folder: $EXECFOLDER" +fi +echo "local or lxplus (1=local 2=lxplus) :[${TMPFOLDER}]" +read +if [ "$REPLY" != "" ]; then +TMPFOLDER=$REPLY +fi +if [ "$TMPFOLDER" == "1" ]; then +TMPPLACE='/tmp' +else +TMPPLACE='/tmp/$USERNAME' +fi +GOOD=130 +echo "Max number of files (Insert a number >0) :[${MAXFILES}]" +read +#case $REPLY in +# *[a-zA-Z]*|*[!0-9]*|*[-]*) +# echo "Wrong: it is not a number > 0";; +# *[0-9]*) +# MAXFILES=$REPLY +# echo "Max number of files: $MAXFILES" +# export GOOD=0 +# ;; +#esac +if [ "$REPLY" != "" ]; then +MAXFILES=$REPLY +echo "Max number of files: $MAXFILES" +fi if [ ls -l "run$RUN" >/dev/null 2>&1 ]; then echo "directory run$RUN exists " else @@ -40,20 +76,22 @@ else mkdir $PASS cd $PASS fi -time aliroot >>merge.log 2>&1 <> plot.log 2>&1 </dev/null 2>&1 ]; then echo "directory images exists" else mkdir images fi -mv *.ps *.eps images/. +mv *.ps images/. cd images for i in *.ps; do @@ -61,4 +99,5 @@ gv $i & sleep 2 done echo "Plots Done!!" - +rm -rf $TMPPLACE/*.root +cd ../../../