better ESD performance plot
[u/mrichter/AliRoot.git] / TRD / qaRec / macros / makeResults.C
index 29b04987b45bca864c19d67ba3628d5657b2a7e1..3ed28f912c515fd4f263b628bdfaa04ff4cecbfd 100644 (file)
@@ -161,10 +161,11 @@ void processESD(TNamed *otask)
 
   esd->Terminate();
 
-  TGraphErrors *g = 0x0; Int_t ipic=0;
-  while((g=esd->GetGraph(ipic, ""))){
-    c->Clear(); g->Draw("apl");
+  c->Clear();
+  Int_t ipic=0;
+  while((esd->GetRefFigure(ipic))){
     c->SaveAs(Form("%s_Fig%02d.gif", esd->GetName(), ipic));
+    c->Clear();
     ipic++;
   }
   delete esd;