- save all canvases in png files in addition to root files
[u/mrichter/AliRoot.git] / HLT / QA / tasks / macros / drawTHnSparse.C
index ccb9a2fca11885c66d9471de5b1f320e098e40fc..4e08b776da1af71f440e8686805749c04c300ae8 100644 (file)
@@ -96,6 +96,7 @@ void drawTHnSparse( TString inputFile,
    
   gSystem->Exec("mkdir "+folder);
   can0->SaveAs(folder+"/event_properties.root");
+  can0->SaveAs(folder+"/event_properties.png");
   
  
   stringstream sMinEta, sMaxEta;
@@ -137,9 +138,14 @@ void drawTHnSparse( TString inputFile,
      trackName += ".root";
   }
   can1->SaveAs(folder+"/"+trackName);
+  trackName.ReplaceAll("root","png");
+  can1->SaveAs(folder+"/"+trackName);
+  
   
   can2->SaveAs(folder+"/HLT_2D_track_correlations.root");
   can3->SaveAs(folder+"/OFF_2D_track_correlations.root");
+  can2->SaveAs(folder+"/HLT_2D_track_correlations.png");
+  can3->SaveAs(folder+"/OFF_2D_track_correlations.png");
 
   return;
 }