+ cstatus->SaveAs(Form("GoodAnodesRun%d.gif",year));
+
+ TCanvas* cfrac=new TCanvas("cfrac","Fraction of Good");
+ gfracvstim->SetMarkerStyle(20);
+ gfrac3vstim->SetMarkerStyle(22);
+ gfrac3vstim->SetMarkerColor(2);
+ gfrac3vstim->SetLineColor(2);
+ gfrac4vstim->SetMarkerStyle(23);
+ gfrac4vstim->SetMarkerColor(4);
+ gfrac4vstim->SetLineColor(4);
+ gfracvstim->Draw("APL");
+ gfrac3vstim->Draw("PLSAME");
+ gfrac4vstim->Draw("PLSAME");
+ gfracvstim->SetMinimum(0.7);
+ gfracvstim->SetMaximum(1.05);
+ gfracvstim->GetXaxis()->SetTitle("Run number");
+ gfracvstim->GetYaxis()->SetTitle("Fraction of good anodes in acquisition");
+ TLegend* leg=new TLegend(0.2,0.15,0.45,0.35);
+ leg->SetFillColor(0);
+ TLegendEntry* entr=leg->AddEntry(gfrac3vstim,"Layer 3","P");
+ entr->SetTextColor(2);
+ entr=leg->AddEntry(gfrac4vstim,"Layer 4","P");
+ entr->SetTextColor(4);
+ entr=leg->AddEntry(gfracvstim,"All","P");
+ entr->SetTextColor(1);
+ leg->Draw();
+ cfrac->SaveAs(Form("FractionGoodRun%d.gif",year));