From a3558bcf15d80c272bd4ffa2d635415e26748bbb Mon Sep 17 00:00:00 2001 From: vratislav3 Date: Thu, 11 Oct 2018 23:04:10 +0300 Subject: [PATCH] Pictures for IZV RAN finished. --- macros/izvRAN/figIZVBestFits.cxx | 11 ++++++----- macros/izvRAN/figIZVCorrGS.cxx | 8 +++++--- macros/izvRAN/figIZVCorrLeftES.cxx | 8 +++++--- macros/izvRAN/figIZVCorrRightGS.cxx | 8 ++++---- macros/izvRAN/figSpectraIZV.cxx | 8 ++++++-- 5 files changed, 26 insertions(+), 17 deletions(-) diff --git a/macros/izvRAN/figIZVBestFits.cxx b/macros/izvRAN/figIZVBestFits.cxx index 50c4273..ee05b28 100755 --- a/macros/izvRAN/figIZVBestFits.cxx +++ b/macros/izvRAN/figIZVBestFits.cxx @@ -551,16 +551,17 @@ void figIZVBestFits(Bool_t saveFigs = 0) c1->Update(); TText *t1[12]; - TString panel[12] = {"a)", "b)", "c)", "d)", - "e)", "f)", "g)", "h)", - "i)", "j)", "k)", "l)"}; + TString panel[12] = {"a", "b", "c", "d", + "e", "f", "g", "h", + "i", "j", "k", "l"}; for (Int_t i = 0; i < 12; i++) { c1->cd(i+1); - t1[i] = new TText(0.18,0.87,panel[i].Data()); +// t1[i] = new TText(0.18,0.87,panel[i].Data()); + t1[i] = new TText(0.5,0.92,panel[i].Data()); // t1[i] = new TText(0.5,0.95,panel[i].Data()); t1[i]->SetNDC(); - t1[i]->SetTextFont(132); + t1[i]->SetTextFont(12); t1[i]->SetTextSize(0.07); t1[i]->Draw(); } diff --git a/macros/izvRAN/figIZVCorrGS.cxx b/macros/izvRAN/figIZVCorrGS.cxx index 8e18690..7c3c9e1 100755 --- a/macros/izvRAN/figIZVCorrGS.cxx +++ b/macros/izvRAN/figIZVCorrGS.cxx @@ -57,7 +57,7 @@ void figIZVCorrGS(const Bool_t saveFigs = 0) c1->Divide(4, 1, .001, .001); TText *t1[4]; - TString panel[4] = {"a)", "b)", "c)", "d)"}; + TString panel[4] = {"a", "b", "c", "d"}; for (Int_t i = 0; i < 4; i++) { c1->cd(i+1); @@ -87,14 +87,16 @@ void figIZVCorrGS(const Bool_t saveFigs = 0) hExp[i]->Chi2Test(hSim[i], "P"); - t1[i] = new TText(0.18,0.87,panel[i].Data()); +// t1[i] = new TText(0.18,0.87,panel[i].Data()); + t1[i] = new TText(0.5,0.92,panel[i].Data()); t1[i]->SetNDC(); - t1[i]->SetTextFont(132); + t1[i]->SetTextFont(12); t1[i]->SetTextSize(0.07); t1[i]->Draw(); } c1->Update(); + cout << saveFigs << endl; if (saveFigs) { // c2->SaveAs("figures/PresGSepsilonTright7590.png"); diff --git a/macros/izvRAN/figIZVCorrLeftES.cxx b/macros/izvRAN/figIZVCorrLeftES.cxx index 1a8abd4..9457c16 100755 --- a/macros/izvRAN/figIZVCorrLeftES.cxx +++ b/macros/izvRAN/figIZVCorrLeftES.cxx @@ -46,7 +46,8 @@ void figIZVCorrLeftES(const Bool_t saveFigs = 0) cout << "Fig. 4" << endl; TText *t1[6]; - TString panel[6] = {"a)", "b)", "c)", "d)", "e)", "f)"}; +// TString panel[6] = {"a)", "b)", "c)", "d)", "e)", "f)"}; + TString panel[6] = {"a", "d", "c", "f", "b", "e"}; for (Int_t i = 0; i < 6; i++) { c4->cd(canMap[i]); @@ -105,10 +106,11 @@ void figIZVCorrLeftES(const Bool_t saveFigs = 0) hAlphaExp90120[i]->Chi2Test(hAlphaSim90120[i], "P"); - t1[i] = new TText(0.18,0.87,panel[i].Data()); +// t1[i] = new TText(0.18,0.87,panel[i].Data()); + t1[i] = new TText(0.5,0.92,panel[i].Data()); // t1[i] = new TText(0.5,0.95,panel[i].Data()); t1[i]->SetNDC(); - t1[i]->SetTextFont(132); + t1[i]->SetTextFont(12); t1[i]->SetTextSize(0.07); t1[i]->Draw(); diff --git a/macros/izvRAN/figIZVCorrRightGS.cxx b/macros/izvRAN/figIZVCorrRightGS.cxx index fc2c998..457a987 100755 --- a/macros/izvRAN/figIZVCorrRightGS.cxx +++ b/macros/izvRAN/figIZVCorrRightGS.cxx @@ -68,7 +68,7 @@ void figIZVCorrRightGS(const Bool_t saveFigs = 0) cout << "Fig. 3" << endl; TText *t1[6]; - TString panel[6] = {"a)", "b)", "c)", "d)", "e)", "f)"}; + TString panel[6] = {"a", "d", "c", "f", "b", "e"}; for (Int_t i = 0; i < 6; i++) { c2->cd(canMap[i]); @@ -107,10 +107,10 @@ void figIZVCorrRightGS(const Bool_t saveFigs = 0) hCorrExp[i]->Chi2Test(hCorrSim[i], "P"); - t1[i] = new TText(0.18,0.87,panel[i].Data()); -// t1[i] = new TText(0.5,0.95,panel[i].Data()); +// t1[i] = new TText(0.18,0.87,panel[i].Data()); + t1[i] = new TText(0.5,0.92,panel[i].Data()); t1[i]->SetNDC(); - t1[i]->SetTextFont(132); + t1[i]->SetTextFont(12); t1[i]->SetTextSize(0.07); t1[i]->Draw(); } diff --git a/macros/izvRAN/figSpectraIZV.cxx b/macros/izvRAN/figSpectraIZV.cxx index ff8a5d3..8fdbb63 100755 --- a/macros/izvRAN/figSpectraIZV.cxx +++ b/macros/izvRAN/figSpectraIZV.cxx @@ -76,13 +76,17 @@ void figSpectraIZV(const Bool_t saveFigs = 0) if (i==0) hSim[i]->GetYaxis()->SetRangeUser(0,13000); - t1[i] = new TText(0.18,0.87,panel[i].Data()); +// t1[i] = new TText(0.18,0.87,panel[i].Data()); + t1[i] = new TText(0.5,0.92,panel[i].Data()); t1[i]->SetNDC(); - t1[i]->SetTextFont(132); + t1[i]->SetTextFont(12); t1[i]->SetTextSize(0.07); t1[i]->Draw(); } +// c1->Update(); +// c1->Update(); + if (saveFigs) { // c2->SaveAs("figures/PresGSepsilonTright7590.png"); -- 2.18.1