- fImage[specie]->Print(Form("%s%s%d.%s", AliQAv1::GetImageFileName(),
- AliQAv1::GetModeName(mode),
- AliQAChecker::Instance()->GetRunNumber(),
- AliQAv1::GetImageFileFormat()), "ps");
+ // Special cases
+ if (name.Contains("readouterrors", TString::kIgnoreCase)) {
+ for (Int_t kk = 1; kk <= 3; kk++) {
+ TH1* proj = static_cast<TH2*>(hist)->ProjectionY("",kk,kk);
+ Double_t m = proj->GetMean();
+ TLatex* l = new TLatex(kk, 30, Form("Mean: %f", m));
+ l->SetTextAngle(90);
+ l->SetTextColor(m > 10 ? kRed+1 : m > .7 ? kOrange+2 :kGreen+2);
+ l->Draw();
+ }
+ }
+ else {
+ gStyle->SetOptTitle(0);
+ TPad* insert = new TPad("insert", "Zoom",
+ .4,.4, .99, .95, 0, 0, 0);
+ insert->SetTopMargin(0.01);
+ insert->SetRightMargin(0.01);
+ insert->SetFillColor(0);
+ insert->SetBorderSize(1);
+ insert->SetBorderMode(0);
+ insert->Draw();
+ insert->cd();
+ if (logOpts & 0x1) insert->SetLogx();
+ if (logOpts & 0x2) insert->SetLogy();
+ if (logOpts & 0x4) insert->SetLogz();
+ hist->GetXaxis()->SetRange(1, hist->GetNbinsX()/8);
+ TH1* copy = hist->DrawCopy(opt);
+ copy->GetXaxis()->SetNdivisions(408, false);
+ // Restore full range
+ hist->GetXaxis()->SetRange(0, 0);
+ gStyle->SetOptTitle(1);
+ }
+ pad->cd();
+ // Possibly restore the log options
+ RestoreLog(hist->GetXaxis(), logOpts & 0x1);
+ RestoreLog(hist->GetYaxis(), logOpts & 0x2);
+ RestoreLog(hist->GetZaxis(), logOpts & 0x4);
+ }
+ // Print to a post-script file
+ fImage[specie]->Print(outName, "ps");