Added maps where no calib is found.

This commit is contained in:
redford_s
2019-02-08 16:55:25 +01:00
parent d8515bcaa6
commit 8e9dadc17a
3 changed files with 47 additions and 1 deletions

View File

@ -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* 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];
int createHistoFile = 0;
@ -756,6 +758,8 @@ int main(int argc, char* argv[]) {
if (isBulk(i)) {
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;
@ -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());
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();
g0overg1hist->GetXaxis()->SetTitle("G0 / G1");