5 # --- Help message ---------------------------------------------------
12 -f,--file FILE Input file
13 -t,--title STRING Title string
14 -o,--output FILE Write output on this file
15 -h,--help Show this help
19 # --- Command line parsing -------------------------------------------
20 while test $# -gt 0 ; do
22 -f|--file) file=$2 ; shift ;;
23 -t|--title) title=$2 ; shift ;;
24 -h|--help) usage ; exit 0 ;;
25 *) echo "Uknown option $1" > /dev/stderr ; exit 1 ;;
30 # --- Run aliroot ----------------------------------------------------
31 scr=$ALICE_ROOT/PWG2/FORWARD/analysis2/qa/DrawQA.C
33 root -l -b -q ${scr}\(\"$file\"\)
35 # --- Make LaTeX code ------------------------------------------------
36 if test "x$title" = "x" ; then
37 title=`echo "QA from $file" | sed -e 's/_/\\_/g'`
39 if test "x$output" = "x" ; then
40 output=`basename $file .root`
42 output=`basename $file .pdf`
48 \documentclass[landscape,12pt,a4paper]{article}
49 \usepackage[a4paper,margin=2cm]{geometry}
59 pngs="fit_results neighbors beforeAfter 123 recAnaELoss occupancy elossVsPoisson"
62 fit_results) t="Energy loss fits" ;;
63 neighbors) t="Correlation of neighbors" ;;
64 beforeAfter) t="Effect of sharing correction" ;;
65 123) t="Energy loss from single, double, and tripple hits" ;;
66 recAnaELoss) t="Energy loss from reconstruction and used in analysis" ;;
67 occupancy) t="Calculated occupancy" ;;
68 elossVsPoisson) t="Correlation of Poisson and Energy loss methods" ;;
74 \includegraphics[keepaspectratio,height=.9\textheight]{$i}
86 rm -f $doc $output.aux $output.log FitResults.pdf
87 for i in $pngs ; do rm -f $i.png ; done