Added a label axis for proceedings.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "TFile.h"
|
||||
#include "TPaveStats.h"
|
||||
#include "TLegend.h"
|
||||
#include "TPaveText.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
jungfrauStyle();
|
||||
@@ -222,6 +223,12 @@ int main(int argc, char* argv[]) {
|
||||
mapcanvas->SetTopMargin(0.08);
|
||||
mapcanvas->SetBottomMargin(0.15);
|
||||
|
||||
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);
|
||||
|
||||
peak_fit_pos_2d->GetXaxis()->SetTitle("Column");
|
||||
peak_fit_pos_2d->GetYaxis()->SetTitle("Row");
|
||||
peak_fit_pos_2d->GetYaxis()->SetTitleOffset(0.7);
|
||||
@@ -258,6 +265,8 @@ int main(int argc, char* argv[]) {
|
||||
gain_fit_2d->GetYaxis()->SetTitle("Row");
|
||||
gain_fit_2d->GetYaxis()->SetTitleOffset(0.7);
|
||||
gain_fit_2d->Draw("colz");
|
||||
pave->AddText("G0 [ADU/8 keV]");
|
||||
pave->Draw();
|
||||
gain_fit_2d->GetZaxis()->SetRangeUser(250,400);
|
||||
sprintf(savename,"plots/M%s/CuFluo/gain_fit_2d.png",module_str.c_str());
|
||||
mapcanvas->SaveAs((const char *)(savename));
|
||||
@@ -312,6 +321,11 @@ int main(int argc, char* argv[]) {
|
||||
sprintf(savename,"plots/M%s/CuFluo/gain_fit.png",module_str.c_str());
|
||||
c1->SaveAs((const char *)(savename));
|
||||
|
||||
gain_fit->Fit("gaus");
|
||||
gain_fit->Draw();
|
||||
sprintf(savename,"plots/M%s/CuFluo/gain_fit_fit.png",module_str.c_str());
|
||||
c1->SaveAs((const char *)(savename));
|
||||
|
||||
gain_fiterr->GetXaxis()->SetTitle("Gain uncert [ADU / 8 keV]");
|
||||
gain_fiterr->Draw();
|
||||
sprintf(savename,"plots/M%s/CuFluo/gain_fiterr.png",module_str.c_str());
|
||||
|
||||
Reference in New Issue
Block a user