11 if(runID ==
"0422") mom =
"8GeV";
12 string inputfile = Form(
"/sphenix/user/xusun/TestBeam/ShowerCalib/Proto4ShowerInfoRAW_%s.root",runID.c_str());
13 TFile *File_InPut = TFile::Open(inputfile.c_str());
14 TH2F *h_mAsymmEnergy_raw= (TH2F*)File_InPut->Get(
"h_tower_energy_raw");
15 TH2F *h_mAsymmEnergy_calib = (TH2F*)File_InPut->Get(
"h_tower_energy_calib");
17 TCanvas *c_EnergyAsmm =
new TCanvas(
"c_EnergyAsmm",
"c_EnergyAsmm",10,10,1600,800);
18 c_EnergyAsmm->Divide(2,1);
19 for(
int i_pad = 0; i_pad < 2; ++i_pad)
21 c_EnergyAsmm->cd(i_pad+1);
22 c_EnergyAsmm->cd(i_pad+1)->SetLeftMargin(0.15);
23 c_EnergyAsmm->cd(i_pad+1)->SetBottomMargin(0.15);
24 c_EnergyAsmm->cd(i_pad+1)->SetTicks(1,1);
25 c_EnergyAsmm->cd(i_pad+1)->SetGrid(0,0);
29 h_mAsymmEnergy_raw->SetTitle(
"ADC vs. Asymm");
31 h_mAsymmEnergy_raw->GetYaxis()->SetTitle(
"ADC");
32 h_mAsymmEnergy_raw->GetYaxis()->CenterTitle();
33 h_mAsymmEnergy_raw->GetYaxis()->SetNdivisions(505);
35 h_mAsymmEnergy_raw->GetXaxis()->SetTitle(
"E_{Asymm}");
36 h_mAsymmEnergy_raw->GetXaxis()->CenterTitle();
38 h_mAsymmEnergy_raw->Draw(
"colz");
42 h_mAsymmEnergy_calib->SetTitle(
"Energy vs. Asymm");
44 h_mAsymmEnergy_calib->GetYaxis()->SetTitle(
"Energy (GeV)");
45 h_mAsymmEnergy_calib->GetYaxis()->CenterTitle();
46 h_mAsymmEnergy_calib->GetYaxis()->SetNdivisions(505);
48 h_mAsymmEnergy_calib->GetXaxis()->SetTitle(
"E_{Asymm}");
49 h_mAsymmEnergy_calib->GetXaxis()->CenterTitle();
51 h_mAsymmEnergy_calib->Draw(
"colz");
53 string fig_name = Form(
"../figures/HCAL_ShowerCalib/c_EnergyAsmm_nocuts_%s.eps",mom.c_str());
54 c_EnergyAsmm->SaveAs(fig_name.c_str());