From 343fc17c6ca9cf34e2ca1013b673359520a4e255 Mon Sep 17 00:00:00 2001 From: redford_s Date: Tue, 15 Aug 2017 17:11:58 +0200 Subject: [PATCH] Labelling alterations for proceedings. --- JFMC_BackplanePulsing.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/JFMC_BackplanePulsing.cpp b/JFMC_BackplanePulsing.cpp index 66837d7..776fdf3 100644 --- a/JFMC_BackplanePulsing.cpp +++ b/JFMC_BackplanePulsing.cpp @@ -12,6 +12,7 @@ #include "TPaveStats.h" #include "TFile.h" #include "TLegend.h" +#include "TPaveText.h" int main(int argc, char* argv[]) { @@ -521,10 +522,18 @@ int main(int argc, char* argv[]) { mapcanvas->cd(); + TPaveText *pave = new TPaveText(0.86,0.95,0.91,0.98,"blNDC"); + pave->SetBorderSize(0); + pave->SetFillStyle(0); + pave->SetTextSize(0.06); + pave->SetTextAlign(32); + g0_grad_map->GetXaxis()->SetTitle("Column"); g0_grad_map->GetYaxis()->SetTitle("Row"); g0_grad_map->GetYaxis()->SetTitleOffset(0.7); g0_grad_map->Draw("colz"); + pave->AddText("G0 [ADU/mV]"); + pave->Draw(); g0_grad_map->GetZaxis()->SetRangeUser(5,10); sprintf(savename,"plots/M%s/BackplanePulsing/g0_grad_map.png", module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); @@ -533,6 +542,9 @@ int main(int argc, char* argv[]) { g0_grader_map->GetYaxis()->SetTitle("Row"); g0_grader_map->GetYaxis()->SetTitleOffset(0.7); g0_grader_map->Draw("colz"); + pave->Clear(); + pave->AddText("#sigma_{G0}"); + pave->Draw(); g0_grader_map->GetZaxis()->SetRangeUser(0.0,0.001); sprintf(savename,"plots/M%s/BackplanePulsing/g0_grader_map.png", module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); @@ -541,6 +553,9 @@ int main(int argc, char* argv[]) { g1_grad_map->GetYaxis()->SetTitle("Row"); g1_grad_map->GetYaxis()->SetTitleOffset(0.7); g1_grad_map->Draw("colz"); + pave->Clear(); + pave->AddText("G1 [ADU/mV]"); + pave->Draw(); if (module_str == "006") { g1_grad_map->GetZaxis()->SetRangeUser(-0.3,-0.15); } else { @@ -553,6 +568,9 @@ int main(int argc, char* argv[]) { g1_grader_map->GetYaxis()->SetTitle("Row"); g1_grader_map->GetYaxis()->SetTitleOffset(0.7); g1_grader_map->Draw("colz"); + pave->Clear(); + pave->AddText("#sigma_{G1}"); + pave->Draw(); if (module_str == "006") { g1_grader_map->GetZaxis()->SetRangeUser(0.0,0.002); } else { @@ -661,6 +679,9 @@ int main(int argc, char* argv[]) { g0overg1_hist->Draw(); sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_hist.png", module_str.c_str()); c1->SaveAs((const char *)(savename)); + g0overg1_hist->Fit("gaus"); + sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_histfit.png", module_str.c_str()); + c1->SaveAs((const char *)(savename)); g0overg1er_hist->GetXaxis()->SetTitle("#sigma_{G0 / G1}"); g0overg1er_hist->Draw(); @@ -713,6 +734,9 @@ int main(int argc, char* argv[]) { g0overg1_map->GetYaxis()->SetTitle("Row"); g0overg1_map->GetYaxis()->SetTitleOffset(0.7); g0overg1_map->Draw("colz"); + pave->Clear(); + pave->AddText("G0/G1"); + pave->Draw(); g0overg1_map->GetZaxis()->SetRangeUser(-32,-25); sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_map.png", module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); @@ -721,6 +745,9 @@ int main(int argc, char* argv[]) { g0overg1er_map->GetYaxis()->SetTitle("Row"); g0overg1er_map->GetYaxis()->SetTitleOffset(0.7); g0overg1er_map->Draw("colz"); + pave->Clear(); + pave->AddText("#sigma_{G0/G1}"); + pave->Draw(); if (module_str == "006") { g0overg1er_map->GetZaxis()->SetRangeUser(0,0.01); } else {