4 # @author Christian Holm Christensen <cholm@nbi.dk>
5 # @date Thu Nov 17 11:31:03 2011
7 # @brief Draw most QA stuff
9 # @deprecated Use QATrender instead
10 # @ingroup pwglf_forward_qa_scripts
13 # --- Help message ---------------------------------------------------
20 -f,--file FILE Input file
21 -t,--title STRING Title string
22 -o,--output FILE Write output on this file
23 -h,--help Show this help
27 # --- Command line parsing -------------------------------------------
28 while test $# -gt 0 ; do
30 -f|--file) file=$2 ; shift ;;
31 -t|--title) title=$2 ; shift ;;
32 -h|--help) usage ; exit 0 ;;
33 *) echo "Uknown option $1" > /dev/stderr ; exit 1 ;;
38 # --- Run aliroot ----------------------------------------------------
39 scr=$ALICE_ROOT/PWGLF/FORWARD/analysis2/qa/DrawQA.C
41 root -l -b -q ${scr}\(\"$file\"\)
43 # --- Make LaTeX code ------------------------------------------------
44 if test "x$title" = "x" ; then
45 title=`echo "QA from $file" | sed -e 's/_/\\_/g'`
47 if test "x$output" = "x" ; then
48 output=`basename $file .root`
50 output=`basename $file .pdf`
56 \documentclass[landscape,12pt,a4paper]{article}
57 \usepackage[a4paper,margin=2cm]{geometry}
67 pngs="fit_results neighbors beforeAfter 123 recAnaELoss occupancy elossVsPoisson"
70 fit_results) t="Energy loss fits" ;;
71 neighbors) t="Correlation of neighbors" ;;
72 beforeAfter) t="Effect of sharing correction" ;;
73 123) t="Energy loss from single, double, and tripple hits" ;;
74 recAnaELoss) t="Energy loss from reconstruction and used in analysis" ;;
75 occupancy) t="Calculated occupancy" ;;
76 elossVsPoisson) t="Correlation of Poisson and Energy loss methods" ;;
82 \includegraphics[keepaspectratio,height=.9\textheight]{$i}
94 rm -f $doc $output.aux $output.log FitResults.pdf
95 for i in $pngs ; do rm -f $i.png ; done