Added maps where no calib is found.
This commit is contained in:
@ -116,6 +116,7 @@ int main(int argc, char* argv[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TH2F* pixelmask_map = new TH2F("pixelmask_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
TH2F* pixelmask_map = new TH2F("pixelmask_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
|
TH2F* no_g0g1_calib_map = new TH2F("no_g0g1_calib_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
|
|
||||||
TH2F* g0_grad_map = new TH2F("g0_grad_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
TH2F* g0_grad_map = new TH2F("g0_grad_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
TH2F* g0_grader_map = new TH2F("g0_grader_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
TH2F* g0_grader_map = new TH2F("g0_grader_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
@ -682,6 +683,8 @@ int main(int argc, char* argv[]) {
|
|||||||
if (isBulk(i)) {
|
if (isBulk(i)) {
|
||||||
g0overg1_hist_isBulk->Fill(fit_g0->GetParameter(1) / fit_g1->GetParameter(1));
|
g0overg1_hist_isBulk->Fill(fit_g0->GetParameter(1) / fit_g1->GetParameter(1));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
no_g0g1_calib_map->Fill(i%NC,i/NC,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete grap_g0;
|
delete grap_g0;
|
||||||
@ -935,6 +938,11 @@ int main(int argc, char* argv[]) {
|
|||||||
sprintf(savename,"plots/M%s/BackplanePulsing/g0overg1er_map_M%s.png", module_str.c_str(), 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));
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
|
for (int i = 0; i < NCH; i++) {
|
||||||
|
if (pixel_mask[i] == false) {
|
||||||
|
pixelmask_map->Fill(i%NC,i/NC,1);
|
||||||
|
}
|
||||||
|
}
|
||||||
pixelmask_map->GetXaxis()->SetTitle("Column");
|
pixelmask_map->GetXaxis()->SetTitle("Column");
|
||||||
pixelmask_map->GetYaxis()->SetTitle("Row");
|
pixelmask_map->GetYaxis()->SetTitle("Row");
|
||||||
pixelmask_map->GetYaxis()->SetTitleOffset(0.7);
|
pixelmask_map->GetYaxis()->SetTitleOffset(0.7);
|
||||||
@ -942,6 +950,13 @@ int main(int argc, char* argv[]) {
|
|||||||
sprintf(savename,"plots/M%s/BackplanePulsing/pixelmask_map_M%s.png", module_str.c_str(), 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));
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
|
no_g0g1_calib_map->GetXaxis()->SetTitle("Column");
|
||||||
|
no_g0g1_calib_map->GetYaxis()->SetTitle("Row");
|
||||||
|
no_g0g1_calib_map->GetYaxis()->SetTitleOffset(0.7);
|
||||||
|
no_g0g1_calib_map->Draw("colz");
|
||||||
|
sprintf(savename,"plots/M%s/BackplanePulsing/no_g0g1_calib_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());
|
sprintf(savename,"data/M%s/BP_ratio_M%s.root", module_str.c_str(), module_str.c_str());
|
||||||
TFile* saved_file2 = new TFile((const char *)(savename),"RECREATE");
|
TFile* saved_file2 = new TFile((const char *)(savename),"RECREATE");
|
||||||
g0overg1_map->Write();
|
g0overg1_map->Write();
|
||||||
|
@ -196,6 +196,9 @@ int main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
TH2F* pedeRMSG0 = new TH2F("pedeRMSG0","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
TH2F* pedeRMSG0 = new TH2F("pedeRMSG0","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
|
|
||||||
|
TH2F* no_g0g1_calib_map = new TH2F("no_g0g1_calib_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
|
TH2F* no_g1g2_calib_map = new TH2F("no_g1g2_calib_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
|
|
||||||
char savename[128];
|
char savename[128];
|
||||||
|
|
||||||
int createHistoFile = 0;
|
int createHistoFile = 0;
|
||||||
@ -1414,9 +1417,10 @@ int main(int argc, char* argv[]) {
|
|||||||
if (isBulk(i)) {
|
if (isBulk(i)) {
|
||||||
g0overg1_isBulk->Fill(fit_g0->GetParameter(1) / fit_g1->GetParameter(1));
|
g0overg1_isBulk->Fill(fit_g0->GetParameter(1) / fit_g1->GetParameter(1));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
no_g0g1_calib_map->Fill(i%NC,i/NC,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (rangemax_g1 > rangemin_g1 && rangemax_g2 > rangemin_g2) {
|
if (rangemax_g1 > rangemin_g1 && rangemax_g2 > rangemin_g2) {
|
||||||
|
|
||||||
g1overg2hist->Fill(fit_g1->GetParameter(1) / fit_g2->GetParameter(1));
|
g1overg2hist->Fill(fit_g1->GetParameter(1) / fit_g2->GetParameter(1));
|
||||||
@ -1442,6 +1446,8 @@ int main(int argc, char* argv[]) {
|
|||||||
if (isBulk(i)) {
|
if (isBulk(i)) {
|
||||||
g1overg2_isBulk->Fill(fit_g1->GetParameter(1) / fit_g2->GetParameter(1));
|
g1overg2_isBulk->Fill(fit_g1->GetParameter(1) / fit_g2->GetParameter(1));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
no_g1g2_calib_map->Fill(i%NC,i/NC,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete fit_g0;
|
delete fit_g0;
|
||||||
@ -1788,6 +1794,20 @@ int main(int argc, char* argv[]) {
|
|||||||
mapcanvas->SaveAs((const char *)(savename));
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
no_g0g1_calib_map->GetXaxis()->SetTitle("Column");
|
||||||
|
no_g0g1_calib_map->GetYaxis()->SetTitle("Row");
|
||||||
|
no_g0g1_calib_map->GetYaxis()->SetTitleOffset(0.7);
|
||||||
|
no_g0g1_calib_map->Draw("colz");
|
||||||
|
sprintf(savename,"plots/M%s/CurrentSource/no_g0g1_calib_map_M%s.png", module_str.c_str(), module_str.c_str());
|
||||||
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
|
no_g1g2_calib_map->GetXaxis()->SetTitle("Column");
|
||||||
|
no_g1g2_calib_map->GetYaxis()->SetTitle("Row");
|
||||||
|
no_g1g2_calib_map->GetYaxis()->SetTitleOffset(0.7);
|
||||||
|
no_g1g2_calib_map->Draw("colz");
|
||||||
|
sprintf(savename,"plots/M%s/CurrentSource/no_g1g2_calib_map_M%s.png", module_str.c_str(), module_str.c_str());
|
||||||
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
sprintf(savename,"data/M%s/CS_ratio_M%s.root", module_str.c_str(), module_str.c_str());
|
sprintf(savename,"data/M%s/CS_ratio_M%s.root", module_str.c_str(), module_str.c_str());
|
||||||
TFile* saved_file2 = new TFile((const char *)(savename),"RECREATE");
|
TFile* saved_file2 = new TFile((const char *)(savename),"RECREATE");
|
||||||
g1overg2map->Write();
|
g1overg2map->Write();
|
||||||
|
@ -47,6 +47,8 @@ int main(int argc, char* argv[]) {
|
|||||||
TH2F* pedeRMSG1 = new TH2F("pedeRMSG1","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
TH2F* pedeRMSG1 = new TH2F("pedeRMSG1","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
TH2F* pedeRMSG2 = new TH2F("pedeRMSG2","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
TH2F* pedeRMSG2 = new TH2F("pedeRMSG2","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
|
|
||||||
|
TH2F* no_g0g1_calib_map = new TH2F("no_g0g1_calib_map","",NC,-0.5,NC-0.5,NR,-0.5,NR-0.5);
|
||||||
|
|
||||||
char savename[128];
|
char savename[128];
|
||||||
|
|
||||||
int createHistoFile = 0;
|
int createHistoFile = 0;
|
||||||
@ -756,6 +758,8 @@ int main(int argc, char* argv[]) {
|
|||||||
if (isBulk(i)) {
|
if (isBulk(i)) {
|
||||||
g0overg1hist_isBulk->Fill(fit_g0->GetParameter(1)/fit_g1->GetParameter(1));
|
g0overg1hist_isBulk->Fill(fit_g0->GetParameter(1)/fit_g1->GetParameter(1));
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
no_g0g1_calib_map->Fill(i%NC,i/NC,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
delete fit_g0;
|
delete fit_g0;
|
||||||
@ -841,6 +845,13 @@ 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));
|
||||||
|
|
||||||
|
no_g0g1_calib_map->GetXaxis()->SetTitle("Column");
|
||||||
|
no_g0g1_calib_map->GetYaxis()->SetTitle("Row");
|
||||||
|
no_g0g1_calib_map->GetYaxis()->SetTitleOffset(0.7);
|
||||||
|
no_g0g1_calib_map->Draw("colz");
|
||||||
|
sprintf(savename,"plots/M%s/DirectBeam/no_g0g1_calib_map_M%s.png", module_str.c_str(), module_str.c_str());
|
||||||
|
mapcanvas->SaveAs((const char *)(savename));
|
||||||
|
|
||||||
c1->cd();
|
c1->cd();
|
||||||
|
|
||||||
g0overg1hist->GetXaxis()->SetTitle("G0 / G1");
|
g0overg1hist->GetXaxis()->SetTitle("G0 / G1");
|
||||||
|
Reference in New Issue
Block a user