Bug in ZEM2 TDC filling fixed
[u/mrichter/AliRoot.git] / ZDC / PlotPedestalsvsTime.C
index 04c7fee..d19a27c 100644 (file)
@@ -81,7 +81,7 @@ void PlotPedestalsvsTime(Int_t year=2011, Int_t firstRun=141820,
     f->Close();
  }
 
- TFile *outfile=new TFile(Form("Calib%dVsTime.root",year),"recreate");
+ TFile *outfile=new TFile(Form("PedCalib%dVsTime.root",year),"recreate");
  outfile->cd();
  for(int i=0; i<kNchannels; i++) graph[i]->Write();
  outfile->Close();
@@ -170,6 +170,7 @@ void PlotPedestalsvsTime(Int_t year=2011, Int_t firstRun=141820,
    graph[ic+17]->Draw("P, SAME");
  }
  cHadPeds->SaveAs("ZDCPedvsTime1.gif");
+ cHadPeds->SaveAs("ZDCPedvsTime1.C");
 
  TCanvas *cothPeds = new TCanvas("cothPeds","ZEM + Ref. pedestals",800,0,600,600);
  cothPeds->Divide(2,2);
@@ -202,5 +203,6 @@ void PlotPedestalsvsTime(Int_t year=2011, Int_t firstRun=141820,
     graph[ic+22]->Draw("P, SAME");
  }
  cothPeds->SaveAs("ZDCPedvsTime2.gif");
+ cothPeds->SaveAs("ZDCPedvsTime2.C");
  
 }