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