9 TCanvas *c_samplefrac =
new TCanvas(
"c_samplefrac",
"c_samplefrac",10,10,1200,1600);
10 c_samplefrac->Divide(4,6);
11 for(
int i_pos = 0; i_pos < 6; ++i_pos)
13 for(
int i_add = 0; i_add < 4; ++i_add)
15 int i_pad = 4*i_pos + i_add;
16 c_samplefrac->cd(i_pad+1);
17 c_samplefrac->cd(i_pad+1)->SetLeftMargin(0.15);
18 c_samplefrac->cd(i_pad+1)->SetBottomMargin(0.15);
19 c_samplefrac->cd(i_pad+1)->SetGrid(0,0);
20 c_samplefrac->cd(i_pad+1)->SetTicks(1,1);
21 std::string inputfile = Form(
"./OutPut/SampleFrac/Proto4SampleFrac_HCALOUT_%d%d.root",i_pos,i_add);
22 TFile *File_InPut = TFile::Open(inputfile.c_str());
23 TH1F *h_samplefrac = (TH1F*)File_InPut->Get(
"h_QAG4Sim_HCALOUT_G4Hit_SF");
24 h_samplefrac->DrawCopy();
25 h_samplefrac->Reset();
29 c_samplefrac->SaveAs(
"./figures/c_cosmic_hcalout_sf.eps");
31 TFile *File_InPut = TFile::Open(
"./OutPut/SampleFrac/Proto4SampleFrac_HCALOUT.root");
32 TH3F *h_track = (TH3F*)File_InPut->Get(
"h_QAG4Sim_HCALOUT_G4Hit_XYZ");
33 TH1F *h_sf = (TH1F*)File_InPut->Get(
"h_QAG4Sim_HCALOUT_G4Hit_SF");
35 TCanvas *c_cosmic =
new TCanvas(
"c_cosmic",
"c_cosmic",10,10,800,800);
36 c_cosmic->cd()->SetLeftMargin(0.15);
37 c_cosmic->cd()->SetBottomMargin(0.15);
38 c_cosmic->cd()->SetGrid(0,0);
39 c_cosmic->cd()->SetTicks(1,1);
41 c_cosmic->SaveAs(
"./figures/c_cosmic_hcalout_track.eps");
43 TCanvas *c_samplefrac_all =
new TCanvas(
"c_samplefrac_all",
"c_samplefrac_all",10,10,800,800);
44 c_samplefrac_all->cd()->SetLeftMargin(0.15);
45 c_samplefrac_all->cd()->SetBottomMargin(0.15);
46 c_samplefrac_all->cd()->SetGrid(0,0);
47 c_samplefrac_all->cd()->SetTicks(1,1);
49 c_samplefrac_all->SaveAs(
"./figures/c_cosmic_hcalout_sf_all.eps");