4 # alidoxyimg.sh <macro>.C
6 # Generates <macro>.png image as the output of <macro>.
8 # Needs aliroot executable.
10 if [[ $1 == '' ]] ; then
12 echo ' alidoxyimg.sh <macro>.C'
14 echo 'The output will be a file named <macro>.png.'
18 if ! which aliroot > /dev/null 2>&1 ; then
19 echo 'Error: aliroot executable not found in $PATH'
27 TVirtualPad *topPad = gPad;
28 while (topPad->GetMother() != topPad) {
29 topPad = topPad->GetMother();
31 topPad->Print("$base.$ext");
34 if [[ ! -e "${base}.${ext}" ]] ; then
35 echo "Error: output file ${base}.${ext} not generated!"