10 string inputfile =
"./OutPut/Proto4SampleFrac.root";
11 TFile *File_InPut = TFile::Open(inputfile.c_str());
13 TH1F *h_hcalin_tower_sim[16];
14 for(
int i_tower = 0; i_tower < 16; ++i_tower)
16 string HistName = Form(
"h_hcalin_tower_%d_sim",i_tower);
17 h_hcalin_tower_sim[i_tower] = (TH1F*)File_InPut->Get(HistName.c_str())->Clone();
20 TCanvas *c_hcalin =
new TCanvas(
"c_hcalin",
"c_hcalin",10,10,1600,1600);
21 c_hcalin->Divide(4,4,0,0);
22 for(
int i_row = 0; i_row < 4; ++i_row)
24 for(
int i_col =0; i_col < 4; ++i_col)
26 int i_pad = 4*(4-(i_row+1))+i_col+1;
27 int i_hist = i_row + 4*i_col;
29 h_hcalin_tower_sim[i_hist]->GetXaxis()->SetRangeUser(2,20);
30 h_hcalin_tower_sim[i_hist]->Draw();
33 c_hcalin->SaveAs(
"./figures/c_hcalin_horizontal.eps");
35 TH1F *h_hcalout_tower_sim[16];
36 for(
int i_tower = 0; i_tower < 16; ++i_tower)
38 string HistName = Form(
"h_hcalout_tower_%d_sim",i_tower);
39 h_hcalout_tower_sim[i_tower] = (TH1F*)File_InPut->Get(HistName.c_str())->Clone();
42 TCanvas *c_hcalout =
new TCanvas(
"c_hcalout",
"c_hcalout",10,10,1600,1600);
43 c_hcalout->Divide(4,4,0,0);
44 for(
int i_row = 0; i_row < 4; ++i_row)
46 for(
int i_col =0; i_col < 4; ++i_col)
48 int i_pad = 4*(4-(i_row+1))+i_col+1;
49 int i_hist = i_row + 4*i_col;
51 h_hcalout_tower_sim[i_hist]->GetXaxis()->SetRangeUser(2,20);
52 h_hcalout_tower_sim[i_hist]->Draw();
55 c_hcalout->SaveAs(
"./figures/c_hcalout_horizontal.eps");