diff --git a/JFMC_BackplanePulsing.cpp b/JFMC_BackplanePulsing.cpp index ff559c7..f3ba75c 100644 --- a/JFMC_BackplanePulsing.cpp +++ b/JFMC_BackplanePulsing.cpp @@ -45,8 +45,12 @@ int main(int argc, char* argv[]) { pixelMaskObject->maskSupercolumn(4,2, pixel_mask); } else if (module_str == "065") { pixelMaskObject->maskChip(5,pixel_mask); + } else if (module_str == "086") { + pixelMaskObject->maskChip(8,pixel_mask); } else if (module_str == "094") { pixelMaskObject->maskChip(6,pixel_mask); + } else if (module_str == "124") { + pixelMaskObject->maskChip(1,pixel_mask); } jungfrauPedestal *pedestalObjectG0 = new jungfrauPedestal(); @@ -194,7 +198,7 @@ int main(int argc, char* argv[]) { avg_adcG0_map[framecounter/100]->GetYaxis()->SetTitleOffset(0.7); avg_adcG0_map[framecounter/100]->GetZaxis()->SetRangeUser(0,17000); avg_adcG0_map[framecounter/100]->Draw("colz"); - sprintf(savename,"plots/M%s/BackplanePulsing/perStep/adc_g0_map_%d.png", module_str.c_str(), framecounter/100); + sprintf(savename,"plots/M%s/BackplanePulsing/perStep/adc_g0_map_%d_M%s.png", module_str.c_str(), framecounter/100, module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); avg_adcG0er_map[framecounter/100]->GetXaxis()->SetTitle("Column"); @@ -202,7 +206,7 @@ int main(int argc, char* argv[]) { avg_adcG0er_map[framecounter/100]->GetYaxis()->SetTitleOffset(0.7); avg_adcG0er_map[framecounter/100]->GetZaxis()->SetRangeUser(0,5); avg_adcG0er_map[framecounter/100]->Draw("colz"); - sprintf(savename,"plots/M%s/BackplanePulsing/perStep/adcer_g0_map_%d.png", module_str.c_str(), framecounter/100); + sprintf(savename,"plots/M%s/BackplanePulsing/perStep/adcer_g0_map_%d_M%s.png", module_str.c_str(), framecounter/100, module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); avg_adcG1_map[framecounter/100]->GetXaxis()->SetTitle("Column"); @@ -210,7 +214,7 @@ int main(int argc, char* argv[]) { avg_adcG1_map[framecounter/100]->GetYaxis()->SetTitleOffset(0.7); avg_adcG1_map[framecounter/100]->GetZaxis()->SetRangeUser(0,17000); avg_adcG1_map[framecounter/100]->Draw("colz"); - sprintf(savename,"plots/M%s/BackplanePulsing/perStep/adc_g1_map_%d.png", module_str.c_str(), framecounter/100); + sprintf(savename,"plots/M%s/BackplanePulsing/perStep/adc_g1_map_%d_M%s.png", module_str.c_str(), framecounter/100, module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); avg_adcG1er_map[framecounter/100]->GetXaxis()->SetTitle("Column"); @@ -218,7 +222,7 @@ int main(int argc, char* argv[]) { avg_adcG1er_map[framecounter/100]->GetYaxis()->SetTitleOffset(0.7); avg_adcG1er_map[framecounter/100]->GetZaxis()->SetRangeUser(0,20); avg_adcG1er_map[framecounter/100]->Draw("colz"); - sprintf(savename,"plots/M%s/BackplanePulsing/perStep/adcer_g1_map_%d.png", module_str.c_str(), framecounter/100); + sprintf(savename,"plots/M%s/BackplanePulsing/perStep/adcer_g1_map_%d_M%s.png", module_str.c_str(), framecounter/100, module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); } @@ -418,7 +422,7 @@ int main(int argc, char* argv[]) { st1->SetBorderSize(0); st1->SetTextColor(kGreen+2); - sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%s_%d.png", module_str.c_str(), pixel_type.c_str(), i); + sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%s_%d_M%s.png", module_str.c_str(), pixel_type.c_str(), i, module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); // normalise @@ -444,11 +448,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/BackplanePulsing/pixel_%s_%d_g0norm.png", module_str.c_str(), pixel_type.c_str(), i); + 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)); grap0_norm->SetMinimum(-50); grap0_norm->SetMaximum(50); - sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%s_%d_g0norm_zoom.png", module_str.c_str(), pixel_type.c_str(), i); + sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%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); @@ -459,11 +463,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/BackplanePulsing/pixel_%s_%d_g1norm.png", module_str.c_str(), pixel_type.c_str(), i); + 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)); grap1_norm->SetMinimum(-30); grap1_norm->SetMaximum(30); - sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%s_%d_g1norm_zoom.png", module_str.c_str(), pixel_type.c_str(), i); + sprintf(savename,"plots/M%s/BackplanePulsing/pixel_%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); @@ -496,42 +500,42 @@ int main(int argc, char* argv[]) { g0_grad_hist->GetXaxis()->SetTitle("G0 gradient"); g0_grad_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g0_grad_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0_grad_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g0_grader_hist->GetXaxis()->SetTitle("#sigma_{G0 gradient}"); g0_grader_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g0_grader_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0_grader_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g1_grad_hist->GetXaxis()->SetTitle("G1 gradient"); g1_grad_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g1_grad_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g1_grad_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g1_grader_hist->GetXaxis()->SetTitle("#sigma_{G1 gradient}"); g1_grader_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g1_grader_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g1_grader_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g0_const_hist->GetXaxis()->SetTitle("G0 intercept"); g0_const_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g0_const_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0_const_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g0_conster_hist->GetXaxis()->SetTitle("#sigma_{G0 intercept}"); g0_conster_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g0_conster_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0_conster_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g1_const_hist->GetXaxis()->SetTitle("G1 intercept"); g1_const_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g1_const_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g1_const_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g1_conster_hist->GetXaxis()->SetTitle("#sigma_{G1 intercept}"); g1_conster_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g1_conster_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g1_conster_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); mapcanvas->cd(); @@ -549,7 +553,7 @@ int main(int argc, char* argv[]) { 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()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0_grad_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); g0_grader_map->GetXaxis()->SetTitle("Column"); @@ -560,7 +564,7 @@ int main(int argc, char* argv[]) { 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()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0_grader_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); g1_grad_map->GetXaxis()->SetTitle("Column"); @@ -577,7 +581,7 @@ int main(int argc, char* argv[]) { } else { g1_grad_map->GetZaxis()->SetRangeUser(-0.25,-0.2); } - sprintf(savename,"plots/M%s/BackplanePulsing/g1_grad_map.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g1_grad_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); g1_grader_map->GetXaxis()->SetTitle("Column"); @@ -592,7 +596,7 @@ int main(int argc, char* argv[]) { } else { g1_grader_map->GetZaxis()->SetRangeUser(0.0,0.0002); } - sprintf(savename,"plots/M%s/BackplanePulsing/g1_grader_map.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g1_grader_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); g0_const_map->GetXaxis()->SetTitle("Column"); @@ -600,7 +604,7 @@ int main(int argc, char* argv[]) { g0_const_map->GetYaxis()->SetTitleOffset(0.7); g0_const_map->Draw("colz"); g0_const_map->GetZaxis()->SetRangeUser(1500,3500); - sprintf(savename,"plots/M%s/BackplanePulsing/g0_const_map.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0_const_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); g0_conster_map->GetXaxis()->SetTitle("Column"); @@ -608,7 +612,7 @@ int main(int argc, char* argv[]) { g0_conster_map->GetYaxis()->SetTitleOffset(0.7); g0_conster_map->Draw("colz"); g0_conster_map->GetZaxis()->SetRangeUser(0.0,0.5); - sprintf(savename,"plots/M%s/BackplanePulsing/g0_conster_map.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0_conster_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); g1_const_map->GetXaxis()->SetTitle("Column"); @@ -620,7 +624,7 @@ int main(int argc, char* argv[]) { } else { g1_const_map->GetZaxis()->SetRangeUser(13000,15000); } - sprintf(savename,"plots/M%s/BackplanePulsing/g1_const_map.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g1_const_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); g1_conster_map->GetXaxis()->SetTitle("Column"); @@ -632,7 +636,7 @@ int main(int argc, char* argv[]) { } else { g1_conster_map->GetZaxis()->SetRangeUser(0.0,1.); } - sprintf(savename,"plots/M%s/BackplanePulsing/g1_conster_map.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g1_conster_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); TH1F* g0overg1_hist = new TH1F("g0overg1_hist","",100,-34,-24); @@ -693,15 +697,15 @@ int main(int argc, char* argv[]) { g0overg1_hist->GetXaxis()->SetTitle("G0 / G1"); g0overg1_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_hist_M%s.png", module_str.c_str(), 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()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_histfit_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g0overg1er_hist->GetXaxis()->SetTitle("#sigma_{G0 / G1}"); g0overg1er_hist->Draw(); - sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1er_hist.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1er_hist_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); g0overg1_hist_isEdge->SetLineColor(kBlue); @@ -741,7 +745,7 @@ int main(int argc, char* argv[]) { g0overg1_hist_isNextToDouble->Draw("same"); g0overg1_hist_isBulk->Draw("same"); leg->Draw("same"); - sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_hist_perType.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_hist_perType_M%s.png", module_str.c_str(), module_str.c_str()); c1->SaveAs((const char *)(savename)); mapcanvas->cd(); @@ -753,8 +757,8 @@ int main(int argc, char* argv[]) { 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()); + g0overg1_map->GetZaxis()->SetRangeUser(-31,-27); + sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); g0overg1er_map->GetXaxis()->SetTitle("Column"); @@ -769,14 +773,14 @@ int main(int argc, char* argv[]) { } else { g0overg1er_map->GetZaxis()->SetRangeUser(0,0.001); } - sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1er_map.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1er_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); pixelmask_map->GetXaxis()->SetTitle("Column"); pixelmask_map->GetYaxis()->SetTitle("Row"); pixelmask_map->GetYaxis()->SetTitleOffset(0.7); pixelmask_map->Draw("colz"); - sprintf(savename,"plots/M%s/BackplanePulsing/pixelmask_map.png", module_str.c_str()); + sprintf(savename,"plots/M%s/BackplanePulsing/pixelmask_map_M%s.png", module_str.c_str(), module_str.c_str()); mapcanvas->SaveAs((const char *)(savename)); sprintf(savename,"data/M%s/BP_ratio_M%s.root", module_str.c_str(), module_str.c_str());