Added module number to all plots.

This commit is contained in:
redford_s
2018-03-02 09:20:42 +01:00
parent 95ee141087
commit 409da82ee9
+28 -28
View File
@@ -145,21 +145,21 @@ int main(int argc, char* argv[]) {
pedestalsG0->GetYaxis()->SetTitle("Row");
pedestalsG0->GetYaxis()->SetTitleOffset(0.7);
pedestalsG0->Draw("colz");
sprintf(savename,"plots/M%s/DirectBeam/pedeG0.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/pedeG0_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
pedestalsG1->GetXaxis()->SetTitle("Column");
pedestalsG1->GetYaxis()->SetTitle("Row");
pedestalsG1->GetYaxis()->SetTitleOffset(0.7);
pedestalsG1->Draw("colz");
sprintf(savename,"plots/M%s/DirectBeam/pedeG1.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/pedeG1_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
pedestalsG2->GetXaxis()->SetTitle("Column");
pedestalsG2->GetYaxis()->SetTitle("Row");
pedestalsG2->GetYaxis()->SetTitleOffset(0.7);
pedestalsG2->Draw("colz");
sprintf(savename,"plots/M%s/DirectBeam/pedeG2.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/pedeG2_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
pedeRMSG0->GetXaxis()->SetTitle("Column");
@@ -167,7 +167,7 @@ int main(int argc, char* argv[]) {
pedeRMSG0->GetYaxis()->SetTitleOffset(0.7);
pedeRMSG0->GetZaxis()->SetRangeUser(0,25);
pedeRMSG0->Draw("colz");
sprintf(savename,"plots/M%s/DirectBeam/pedeRMSG0.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/pedeRMSG0_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
pedeRMSG1->GetXaxis()->SetTitle("Column");
@@ -175,7 +175,7 @@ int main(int argc, char* argv[]) {
pedeRMSG1->GetYaxis()->SetTitleOffset(0.7);
pedeRMSG1->GetZaxis()->SetRangeUser(0,15);
pedeRMSG1->Draw("colz");
sprintf(savename,"plots/M%s/DirectBeam/pedeRMSG1.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/pedeRMSG1_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
pedeRMSG2->GetXaxis()->SetTitle("Column");
@@ -183,7 +183,7 @@ int main(int argc, char* argv[]) {
pedeRMSG2->GetYaxis()->SetTitleOffset(0.7);
pedeRMSG2->GetZaxis()->SetRangeUser(0,15);
pedeRMSG2->Draw("colz");
sprintf(savename,"plots/M%s/DirectBeam/pedeRMSG2.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/pedeRMSG2_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
jungfrauPedestal *pedestalObjectG0 = new jungfrauPedestal();
@@ -265,7 +265,7 @@ int main(int argc, char* argv[]) {
avg_adc_g0_map[framecounter/1000 -1]->GetYaxis()->SetTitleOffset(0.7);
avg_adc_g0_map[framecounter/1000 -1]->Draw("colz");
avg_adc_g0_map[framecounter/1000 -1]->SetMinimum(0);
sprintf(savename,"plots/M%s/DirectBeam/perStep/avg_adc_g0_map_%d.png", module_str.c_str(), ((framecounter/1000 -1)+1)*2);
sprintf(savename,"plots/M%s/DirectBeam/perStep/avg_adc_g0_map_%d_M%s.png", module_str.c_str(), ((framecounter/1000 -1)+1)*2, module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
avg_adc_g1_map[framecounter/1000 -1]->GetXaxis()->SetTitle("Column");
@@ -273,7 +273,7 @@ int main(int argc, char* argv[]) {
avg_adc_g1_map[framecounter/1000 -1]->GetYaxis()->SetTitleOffset(0.7);
avg_adc_g1_map[framecounter/1000 -1]->Draw("colz");
avg_adc_g1_map[framecounter/1000 -1]->SetMinimum(0);
sprintf(savename,"plots/M%s/DirectBeam/perStep/avg_adc_g1_map_%d.png", module_str.c_str(), ((framecounter/1000 -1)+1)*2);
sprintf(savename,"plots/M%s/DirectBeam/perStep/avg_adc_g1_map_%d_M%s.png", module_str.c_str(), ((framecounter/1000 -1)+1)*2, module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
avg_adcer_g0_map[framecounter/1000 -1]->GetXaxis()->SetTitle("Column");
@@ -281,7 +281,7 @@ int main(int argc, char* argv[]) {
avg_adcer_g0_map[framecounter/1000 -1]->GetYaxis()->SetTitleOffset(0.7);
avg_adcer_g0_map[framecounter/1000 -1]->Draw("colz");
avg_adcer_g0_map[framecounter/1000 -1]->SetMinimum(0);
sprintf(savename,"plots/M%s/DirectBeam/perStep/avg_adcer_g0_map_%d.png", module_str.c_str(), ((framecounter/1000 -1)+1)*2);
sprintf(savename,"plots/M%s/DirectBeam/perStep/avg_adcer_g0_map_%d_M%s.png", module_str.c_str(), ((framecounter/1000 -1)+1)*2, module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
avg_adcer_g1_map[framecounter/1000 -1]->GetXaxis()->SetTitle("Column");
@@ -289,7 +289,7 @@ int main(int argc, char* argv[]) {
avg_adcer_g1_map[framecounter/1000 -1]->GetYaxis()->SetTitleOffset(0.7);
avg_adcer_g1_map[framecounter/1000 -1]->Draw("colz");
avg_adcer_g1_map[framecounter/1000 -1]->SetMinimum(0);
sprintf(savename,"plots/M%s/DirectBeam/perStep/avg_adcer_g1_map_%d.png", module_str.c_str(), ((framecounter/1000 -1)+1)*2);
sprintf(savename,"plots/M%s/DirectBeam/perStep/avg_adcer_g1_map_%d_M%s.png", module_str.c_str(), ((framecounter/1000 -1)+1)*2, module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
}
@@ -537,7 +537,7 @@ int main(int argc, char* argv[]) {
st1->SetBorderSize(0);
st1->SetTextColor(kGreen+2);
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d.png", module_str.c_str(), pixel_type.c_str(), i);
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));
// normalise
@@ -563,11 +563,11 @@ int main(int argc, char* argv[]) {
grap0_norm->GetYaxis()->SetTitleOffset(0.9);
grap0_norm->Draw("AP");
flat_g0->Draw("same");
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g0norm.png", module_str.c_str(), pixel_type.c_str(), i);
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g0norm_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
grap0_norm->SetMinimum(-100);
grap0_norm->SetMaximum(100);
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g0norm_zoom.png", module_str.c_str(), pixel_type.c_str(), i);
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g0norm_zoom_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
grap1_norm->SetMarkerColor(kGreen+2);
@@ -578,11 +578,11 @@ int main(int argc, char* argv[]) {
grap1_norm->GetYaxis()->SetTitleOffset(0.9);
grap1_norm->Draw("AP");
flat_g1->Draw("same");
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g1norm.png", module_str.c_str(), pixel_type.c_str(), i);
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g1norm_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
grap1_norm->SetMinimum(-50);
grap1_norm->SetMaximum(50);
sprintf(savename,"plots/M%s/DirectBeam/graps_%s_%d_g1norm_zoom.png", module_str.c_str(), pixel_type.c_str(), i);
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->SetLeftMargin(0.1);
@@ -600,26 +600,26 @@ int main(int argc, char* argv[]) {
range1minhist->GetXaxis()->SetTitle("Start of gain 1 fit [ADU]");
range1minhist->Draw();
sprintf(savename,"plots/M%s/DirectBeam/range1minhist.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/range1minhist_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
range0maxhist->GetXaxis()->SetTitle("End of gain 0 fit [ADU]");
range0maxhist->Draw();
sprintf(savename,"plots/M%s/DirectBeam/range0maxhist.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/range0maxhist_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
range1minmap->GetXaxis()->SetTitle("Column");
range1minmap->GetYaxis()->SetTitle("Row");
range1minmap->GetYaxis()->SetTitleOffset(0.7);
range1minmap->Draw("colz");
sprintf(savename,"plots/M%s/DirectBeam/range1minmap.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/range1minmap_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
range0maxmap->GetXaxis()->SetTitle("Column");
range0maxmap->GetYaxis()->SetTitle("Row");
range0maxmap->GetYaxis()->SetTitleOffset(0.7);
range0maxmap->Draw("colz");
sprintf(savename,"plots/M%s/DirectBeam/range0maxmap.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/range0maxmap_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
g1map->GetXaxis()->SetTitle("Column");
@@ -627,7 +627,7 @@ int main(int argc, char* argv[]) {
g1map->GetYaxis()->SetTitleOffset(0.7);
g1map->Draw("colz");
g1map->GetZaxis()->SetRangeUser(-40,0);
sprintf(savename,"plots/M%s/DirectBeam/g1map.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/g1map_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
g0map->GetXaxis()->SetTitle("Column");
@@ -635,7 +635,7 @@ int main(int argc, char* argv[]) {
g0map->GetYaxis()->SetTitleOffset(0.7);
g0map->Draw("colz");
g0map->GetZaxis()->SetRangeUser(200,800);
sprintf(savename,"plots/M%s/DirectBeam/g0map.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/g0map_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
g1ermap->GetXaxis()->SetTitle("Column");
@@ -643,7 +643,7 @@ int main(int argc, char* argv[]) {
g1ermap->GetYaxis()->SetTitleOffset(0.7);
g1ermap->Draw("colz");
g1ermap->GetZaxis()->SetRangeUser(0,0.7);
sprintf(savename,"plots/M%s/DirectBeam/g1ermap.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/g1ermap_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
g0ermap->GetXaxis()->SetTitle("Column");
@@ -651,7 +651,7 @@ int main(int argc, char* argv[]) {
g0ermap->GetYaxis()->SetTitleOffset(0.7);
g0ermap->Draw("colz");
g0ermap->GetZaxis()->SetRangeUser(2,8);
sprintf(savename,"plots/M%s/DirectBeam/g0ermap.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/g0ermap_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
g0overg1map->GetXaxis()->SetTitle("Column");
@@ -659,7 +659,7 @@ int main(int argc, char* argv[]) {
g0overg1map->GetYaxis()->SetTitleOffset(0.7);
g0overg1map->Draw("colz");
g0overg1map->GetZaxis()->SetRangeUser(-35,-20);
sprintf(savename,"plots/M%s/DirectBeam/g0overg1map.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/g0overg1map_M%s.png", module_str.c_str(), module_str.c_str());
mapcanvas->SaveAs((const char *)(savename));
g0overg1ermap->GetXaxis()->SetTitle("Column");
@@ -667,19 +667,19 @@ int main(int argc, char* argv[]) {
g0overg1ermap->GetYaxis()->SetTitleOffset(0.7);
g0overg1ermap->Draw("colz");
g0overg1ermap->GetZaxis()->SetRangeUser(0,1);
sprintf(savename,"plots/M%s/DirectBeam/g0overg1ermap.png", 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));
TCanvas* c1 = new TCanvas("c1","");
g0overg1hist->GetXaxis()->SetTitle("G0 / G1");
g0overg1hist->Draw();
sprintf(savename,"plots/M%s/DirectBeam/g0overg1hist.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/g0overg1hist_M%s.png", module_str.c_str(), module_str.c_str());
c1->SaveAs((const char *)(savename));
g0overg1erhist->GetXaxis()->SetTitle("#sigma_{G0 / G1}");
g0overg1erhist->Draw();
sprintf(savename,"plots/M%s/DirectBeam/g0overg1erhist.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/g0overg1erhist_M%s.png", module_str.c_str(), module_str.c_str());
c1->SaveAs((const char *)(savename));
g0overg1hist_isEdge->SetLineColor(kBlue);
@@ -713,7 +713,7 @@ int main(int argc, char* argv[]) {
g0overg1hist_isNextToDouble->Draw("same");
g0overg1hist_isBulk->Draw("same");
leg->Draw("same");
sprintf(savename,"plots/M%s/DirectBeam/g0overg1hist_perType.png", module_str.c_str());
sprintf(savename,"plots/M%s/DirectBeam/g0overg1hist_perType_M%s.png", module_str.c_str(), module_str.c_str());
c1->SaveAs((const char *)(savename));
sprintf(savename,"data/M%s/DB_ratio_M%s.root", module_str.c_str(), module_str.c_str());