Better TCanvas.
This commit is contained in:
@ -100,6 +100,10 @@ int main(int argc, char* argv[]) {
|
|||||||
mapcanvas->SetTopMargin(0.08);
|
mapcanvas->SetTopMargin(0.08);
|
||||||
mapcanvas->SetBottomMargin(0.15);
|
mapcanvas->SetBottomMargin(0.15);
|
||||||
|
|
||||||
|
TCanvas* c1 = new TCanvas("c1","");
|
||||||
|
|
||||||
|
mapcanvas->cd();
|
||||||
|
|
||||||
TH1F* g0_grad_hist = new TH1F("g0_grad_hist","",100,5,10);
|
TH1F* g0_grad_hist = new TH1F("g0_grad_hist","",100,5,10);
|
||||||
TH1F* g0_grader_hist = new TH1F("g0_grader_hist","",100,0,0.002);
|
TH1F* g0_grader_hist = new TH1F("g0_grader_hist","",100,0,0.002);
|
||||||
|
|
||||||
@ -297,6 +301,9 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mapcanvas->SetLeftMargin(0.13);
|
||||||
|
mapcanvas->SetRightMargin(0.05);
|
||||||
|
|
||||||
for (int i = 0; i < NCH; i++) {
|
for (int i = 0; i < NCH; i++) {
|
||||||
|
|
||||||
if (pixel_mask[i] == true) {
|
if (pixel_mask[i] == true) {
|
||||||
@ -384,9 +391,6 @@ int main(int argc, char* argv[]) {
|
|||||||
pixel_type = "q";
|
pixel_type = "q";
|
||||||
}
|
}
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.13);
|
|
||||||
mapcanvas->SetRightMargin(0.05);
|
|
||||||
|
|
||||||
grap_g1->GetXaxis()->SetTitle("Signal generator voltage [mV]");
|
grap_g1->GetXaxis()->SetTitle("Signal generator voltage [mV]");
|
||||||
grap_g1->GetYaxis()->SetTitle("ADC [ADU]");
|
grap_g1->GetYaxis()->SetTitle("ADC [ADU]");
|
||||||
grap_g1->GetYaxis()->SetTitleOffset(0.9);
|
grap_g1->GetYaxis()->SetTitleOffset(0.9);
|
||||||
@ -450,9 +454,6 @@ int main(int argc, char* argv[]) {
|
|||||||
pixel_type = "q";
|
pixel_type = "q";
|
||||||
}
|
}
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.13);
|
|
||||||
mapcanvas->SetRightMargin(0.05);
|
|
||||||
|
|
||||||
grap_g0->GetXaxis()->SetTitle("Signal generator voltage [mV]");
|
grap_g0->GetXaxis()->SetTitle("Signal generator voltage [mV]");
|
||||||
grap_g0->GetYaxis()->SetTitle("ADC [ADU]");
|
grap_g0->GetYaxis()->SetTitle("ADC [ADU]");
|
||||||
grap_g0->GetYaxis()->SetTitleOffset(0.9);
|
grap_g0->GetYaxis()->SetTitleOffset(0.9);
|
||||||
@ -532,9 +533,6 @@ int main(int argc, char* argv[]) {
|
|||||||
sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%s_%d_g0norm_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
|
sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%s_%d_g0norm_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
|
||||||
mapcanvas->SaveAs((const char *)(savename));
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.1);
|
|
||||||
mapcanvas->SetRightMargin(0.13);
|
|
||||||
|
|
||||||
delete norm_g0;
|
delete norm_g0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -585,9 +583,6 @@ int main(int argc, char* argv[]) {
|
|||||||
pixel_type = "q";
|
pixel_type = "q";
|
||||||
}
|
}
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.13);
|
|
||||||
mapcanvas->SetRightMargin(0.05);
|
|
||||||
|
|
||||||
grap_g1->GetXaxis()->SetTitle("Signal generator voltage [mV]");
|
grap_g1->GetXaxis()->SetTitle("Signal generator voltage [mV]");
|
||||||
grap_g1->GetYaxis()->SetTitle("ADC [ADU]");
|
grap_g1->GetYaxis()->SetTitle("ADC [ADU]");
|
||||||
grap_g1->GetYaxis()->SetTitleOffset(0.9);
|
grap_g1->GetYaxis()->SetTitleOffset(0.9);
|
||||||
@ -655,9 +650,6 @@ int main(int argc, char* argv[]) {
|
|||||||
sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%s_%d_g1norm_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
|
sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%s_%d_g1norm_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
|
||||||
mapcanvas->SaveAs((const char *)(savename));
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.1);
|
|
||||||
mapcanvas->SetRightMargin(0.13);
|
|
||||||
|
|
||||||
delete norm_g1;
|
delete norm_g1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -697,7 +689,10 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TCanvas* c1 = new TCanvas("c1","");
|
mapcanvas->SetLeftMargin(0.1);
|
||||||
|
mapcanvas->SetRightMargin(0.13);
|
||||||
|
|
||||||
|
c1->cd();
|
||||||
|
|
||||||
g0_grad_hist->GetXaxis()->SetTitle("G0 gradient");
|
g0_grad_hist->GetXaxis()->SetTitle("G0 gradient");
|
||||||
g0_grad_hist->Draw();
|
g0_grad_hist->Draw();
|
||||||
|
@ -319,6 +319,10 @@ int main(int argc, char* argv[]) {
|
|||||||
mapcanvas->SetTopMargin(0.08);
|
mapcanvas->SetTopMargin(0.08);
|
||||||
mapcanvas->SetBottomMargin(0.15);
|
mapcanvas->SetBottomMargin(0.15);
|
||||||
|
|
||||||
|
TCanvas *c1 = new TCanvas("c1","");
|
||||||
|
|
||||||
|
mapcanvas->cd();
|
||||||
|
|
||||||
pedestalsG0->GetXaxis()->SetTitle("Column");
|
pedestalsG0->GetXaxis()->SetTitle("Column");
|
||||||
pedestalsG0->GetYaxis()->SetTitle("Row");
|
pedestalsG0->GetYaxis()->SetTitle("Row");
|
||||||
pedestalsG0->GetYaxis()->SetTitleOffset(0.7);
|
pedestalsG0->GetYaxis()->SetTitleOffset(0.7);
|
||||||
@ -359,8 +363,6 @@ int main(int argc, char* argv[]) {
|
|||||||
TH2F *adcermap_avg_g1 [97];
|
TH2F *adcermap_avg_g1 [97];
|
||||||
TH2F *adcermap_avg_g2 [97];
|
TH2F *adcermap_avg_g2 [97];
|
||||||
|
|
||||||
TCanvas *c1 = new TCanvas("c1","");
|
|
||||||
|
|
||||||
// creating the histograms
|
// creating the histograms
|
||||||
if (createHistoFile) {
|
if (createHistoFile) {
|
||||||
|
|
||||||
|
@ -141,6 +141,10 @@ int main(int argc, char* argv[]) {
|
|||||||
mapcanvas->SetTopMargin(0.08);
|
mapcanvas->SetTopMargin(0.08);
|
||||||
mapcanvas->SetBottomMargin(0.15);
|
mapcanvas->SetBottomMargin(0.15);
|
||||||
|
|
||||||
|
TCanvas* c1 = new TCanvas("c1","");
|
||||||
|
|
||||||
|
mapcanvas->cd();
|
||||||
|
|
||||||
pedestalsG0->GetXaxis()->SetTitle("Column");
|
pedestalsG0->GetXaxis()->SetTitle("Column");
|
||||||
pedestalsG0->GetYaxis()->SetTitle("Row");
|
pedestalsG0->GetYaxis()->SetTitle("Row");
|
||||||
pedestalsG0->GetYaxis()->SetTitleOffset(0.7);
|
pedestalsG0->GetYaxis()->SetTitleOffset(0.7);
|
||||||
@ -378,6 +382,10 @@ int main(int argc, char* argv[]) {
|
|||||||
TH2F* range0maxmap = new TH2F("range0maxmap","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
TH2F* range0maxmap = new TH2F("range0maxmap","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
TH2F* range1minmap = new TH2F("range1minmap","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
TH2F* range1minmap = new TH2F("range1minmap","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
|
|
||||||
|
mapcanvas->cd();
|
||||||
|
mapcanvas->SetLeftMargin(0.13);
|
||||||
|
mapcanvas->SetRightMargin(0.05);
|
||||||
|
|
||||||
for (int i = 0; i < NCH; i++) {
|
for (int i = 0; i < NCH; i++) {
|
||||||
|
|
||||||
if (pixel_mask[i] == true) {
|
if (pixel_mask[i] == true) {
|
||||||
@ -472,9 +480,6 @@ int main(int argc, char* argv[]) {
|
|||||||
pixel_type = "q";
|
pixel_type = "q";
|
||||||
}
|
}
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.13);
|
|
||||||
mapcanvas->SetRightMargin(0.05);
|
|
||||||
|
|
||||||
grap_g1->SetMinimum(0);
|
grap_g1->SetMinimum(0);
|
||||||
grap_g1->SetMaximum(17000);
|
grap_g1->SetMaximum(17000);
|
||||||
grap_g1->GetXaxis()->SetTitle("Tube current [mA]");
|
grap_g1->GetXaxis()->SetTitle("Tube current [mA]");
|
||||||
@ -487,9 +492,6 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
|
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
|
||||||
mapcanvas->SaveAs((const char *)(savename));
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.1);
|
|
||||||
mapcanvas->SetRightMargin(0.13);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -537,9 +539,6 @@ int main(int argc, char* argv[]) {
|
|||||||
pixel_type = "q";
|
pixel_type = "q";
|
||||||
}
|
}
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.13);
|
|
||||||
mapcanvas->SetRightMargin(0.05);
|
|
||||||
|
|
||||||
grap_g0->SetMinimum(0);
|
grap_g0->SetMinimum(0);
|
||||||
grap_g0->SetMaximum(17000);
|
grap_g0->SetMaximum(17000);
|
||||||
grap_g0->GetXaxis()->SetTitle("Tube current [mA]");
|
grap_g0->GetXaxis()->SetTitle("Tube current [mA]");
|
||||||
@ -610,9 +609,6 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
delete norm_g0;
|
delete norm_g0;
|
||||||
delete flat_g0;
|
delete flat_g0;
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.1);
|
|
||||||
mapcanvas->SetRightMargin(0.13);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -660,9 +656,6 @@ int main(int argc, char* argv[]) {
|
|||||||
pixel_type = "q";
|
pixel_type = "q";
|
||||||
}
|
}
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.13);
|
|
||||||
mapcanvas->SetRightMargin(0.05);
|
|
||||||
|
|
||||||
grap_g1->SetMinimum(0);
|
grap_g1->SetMinimum(0);
|
||||||
grap_g1->SetMaximum(17000);
|
grap_g1->SetMaximum(17000);
|
||||||
grap_g1->GetXaxis()->SetTitle("Tube current [mA]");
|
grap_g1->GetXaxis()->SetTitle("Tube current [mA]");
|
||||||
@ -731,9 +724,6 @@ int main(int argc, char* argv[]) {
|
|||||||
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g1norm_zoom_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
|
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g1norm_zoom_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
|
||||||
mapcanvas->SaveAs((const char *)(savename));
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
mapcanvas->SetLeftMargin(0.1);
|
|
||||||
mapcanvas->SetRightMargin(0.13);
|
|
||||||
|
|
||||||
delete norm_g1;
|
delete norm_g1;
|
||||||
delete flat_g1;
|
delete flat_g1;
|
||||||
}
|
}
|
||||||
@ -776,6 +766,9 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mapcanvas->SetLeftMargin(0.1);
|
||||||
|
mapcanvas->SetRightMargin(0.13);
|
||||||
|
|
||||||
range1minhist->GetXaxis()->SetTitle("Start of gain 1 fit [ADU]");
|
range1minhist->GetXaxis()->SetTitle("Start of gain 1 fit [ADU]");
|
||||||
range1minhist->Draw();
|
range1minhist->Draw();
|
||||||
sprintf(savename,"plots/M%s/DirectBeam/range1minhist_M%s.png", module_str.c_str(), module_str.c_str());
|
sprintf(savename,"plots/M%s/DirectBeam/range1minhist_M%s.png", module_str.c_str(), module_str.c_str());
|
||||||
@ -848,7 +841,7 @@ int main(int argc, char* argv[]) {
|
|||||||
sprintf(savename,"plots/M%s/DirectBeam/g0overg1ermap_M%s.png", module_str.c_str(), module_str.c_str());
|
sprintf(savename,"plots/M%s/DirectBeam/g0overg1ermap_M%s.png", module_str.c_str(), module_str.c_str());
|
||||||
mapcanvas->SaveAs((const char *)(savename));
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
TCanvas* c1 = new TCanvas("c1","");
|
c1->cd();
|
||||||
|
|
||||||
g0overg1hist->GetXaxis()->SetTitle("G0 / G1");
|
g0overg1hist->GetXaxis()->SetTitle("G0 / G1");
|
||||||
g0overg1hist->Draw();
|
g0overg1hist->Draw();
|
||||||
|
Reference in New Issue
Block a user