better ESD performance plot
[u/mrichter/AliRoot.git] / TRD / qaRec / macros / makeResults.C
index 48ea961092c638e34ba8a14fa586615b397d4cf5..3ed28f912c515fd4f263b628bdfaa04ff4cecbfd 100644 (file)
@@ -138,7 +138,7 @@ void processTRD(TNamed *otask)
   for(Int_t ipic=0; ipic<task->GetNRefFigures(); ipic++){
     c->Clear();
     if(!task->GetRefFigure(ipic)) continue;
-    c->SaveAs(Form("%s_Fig%02d.gif", task->GetName(), ipic));
+    c->SaveAs(Form("%s_Fig%02d.gif", task->GetName(), ipic), "gif");
   }
   delete task;
 }
@@ -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;