Added maps where no calib is found.
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user