3 void PlotHists(
const char* infile,
const char* outfile)
5 TFile* ifile =
new TFile(infile,
"READ");
7 TH2* dEtaVsdPhi = dEtaVsdPhi;
9 TFile* ofile =
new TFile(outfile,
"RECREATE");
10 TH1* dEta = dEtaVsdPhi->ProjectionY(
"dEta");
11 dEta->SetLineWidth(2);
12 dEta->SetXTitle(
"#Delta#eta");
13 dEta->SetTitle(
"#Delta#eta, pt>2 GeV, Trigger Pt>3 GeV");
14 TH1* dPhi = dEtaVsdPhi->ProjectionX(
"dPhi");
15 dPhi->SetLineWidth(2);
16 dPhi->SetXTitle(
"#Delta#phi");
17 dPhi->SetTitle(
"#Delta#phi, pt>2 GeV, Trigger Pt>3 GeV");
19 dEtaVsdPhi->SetTitle(
"#Delta#phi vs. #DeltaEta, pt>2 GeV, Trigger Pt>3 GeV");
20 dEtaVsdPhi->SetXTitle(
"#Delta#eta");
21 dEtaVsdPhi->SetYTitle(
"#Delta#phi");
22 dEtaVsdPhi->SetLineWidth(2);