]> git.uio.no Git - u/mrichter/AliRoot.git/blame - ITS/ShowSDDQA.sh
Checking RecoParam before creating the ITSdebug.root file (A. Dainese)
[u/mrichter/AliRoot.git] / ITS / ShowSDDQA.sh
CommitLineData
0bca1a77 1#!/bin/bash
2RUN='123456'
3PERIOD='LHC10a'
4PASS='pass1'
5YEAR='2010'
6ALICE_ITS='$ALICE_ROOT/ITS'
7echo "Run Number :[${RUN}]"
8read
9if [ "$REPLY" != "" ]; then
10export RUN=$REPLY
11echo "Run $RUN"
12fi
13echo "Period :[${PERIOD}]"
14read
15if [ "$REPLY" != "" ]; then
16export PERIOD=$REPLY
17echo "Period $PERIOD"
18fi
19echo "Pass : [${PASS}]"
20read
21if [ "$REPLY" != "" ]; then
22export PASS=$REPLY
23echo "Pass $PASS "
24fi
25echo "Year :[${YEAR}]"
26read
27if [ "$REPLY" != "" ]; then
28export YEAR=$REPLY
29echo "Year $YEAR"
30fi
31if [ ls -l "run$RUN" >/dev/null 2>&1 ]; then
32echo "directory run$RUN exists "
33else
34mkdir "run$RUN"
35fi
36cd "run$RUN"
37if [ ls -l $PASS > /dev/null 2>&1 ]; then
38echo "directory $PASS exixsts"
39else
40mkdir $PASS
41cd $PASS
42fi
43time aliroot >>merge.log 2>&1 <<EOI
44.x $ALICE_ITS/ReadQASDD.C($RUN,$YEAR,"${PERIOD}","${PASS}" );
45.q
46EOI
47time aliroot >> plot.log 2>&1 <<EOI
48.x $ALICE_ITS/PlotQASDD.C("File.QA.${YEAR}.${PERIOD}.${PASS}.Run.${RUN}.root");
49EOI
50
51if [ls -l "images" >/dev/null 2>&1 ]; then
52echo "directory images exists"
53else
54mkdir images
55fi
56mv *.ps *.eps images/.
57cd images
58for i in *.ps;
59do
60gv $i &
61sleep 2
62done
63echo "Plots Done!!"
64