9 int hbdchanIHC[4][4] = {{16, 12, 8, 4},
14 string inputfile = Form(
"/sphenix/user/xusun/TestBeam/ShowerCalib/Proto4ShowerInfoRAW_%s.root",
runId.c_str());
15 TFile *File_InPut = TFile::Open(inputfile.c_str());
17 TH1F *h_hcalin_tower_calib[16];
18 TH1F *h_hcalout_tower_calib[16];
19 for(
int i_tower = 0; i_tower < 16; ++i_tower)
23 HistName= Form(
"h_hcalin_lg_tower_%d_calib",i_tower);
24 h_hcalin_tower_calib[i_tower] = (TH1F*)File_InPut->Get(HistName.c_str())->Clone();
26 HistName= Form(
"h_hcalout_lg_tower_%d_calib",i_tower);
27 h_hcalout_tower_calib[i_tower] = (TH1F*)File_InPut->Get(HistName.c_str())->Clone();
30 TCanvas *c_hcal_in =
new TCanvas(
"c_hcal_in",
"c_hcal_in",10,10,1600,1600);
31 c_hcal_in->Divide(4,4);
32 for(
int i_row = 0; i_row < 4; ++i_row)
34 for(
int i_col = 0; i_col < 4; ++i_col)
36 int i_pad = 4*i_row+i_col+1;
37 int i_tower = hbdchanIHC[i_row][i_col]-1;
39 c_hcal_in->cd(i_pad)->SetLogy();
40 h_hcalin_tower_calib[i_tower]->Draw();
43 c_hcal_in->SaveAs(
"../figures/HCAL_TowerMap/c_hcal_in_0571.eps");
46 TCanvas *c_hcal_out =
new TCanvas(
"c_hcal_out",
"c_hcal_out",10,10,1600,1600);
47 c_hcal_out->Divide(4,4);
48 for(
int i_row = 0; i_row < 4; ++i_row)
50 for(
int i_col = 0; i_col < 4; ++i_col)
52 int i_pad = 4*i_row+i_col+1;
53 int i_tower = hbdchanIHC[i_row][i_col]-1;
54 c_hcal_out->cd(i_pad);
55 c_hcal_out->cd(i_pad)->SetLogy();
56 h_hcalout_tower_calib[i_tower]->Draw();
59 c_hcal_out->SaveAs(
"../figures/HCAL_TowerMap/c_hcal_out_0571.eps");