11 const char* mode_dir[NMODES] = {
"PROD1",
"PROD2",
"PROD4" };
16 TH1 *h_rap_sphenix[NMODES];
18 TH1 *h_rap_sphenix_total;
21 for (
int imode=0; imode<NMODES; imode++)
24 name = mode_dir[imode]; name +=
"/upc_starlight.root";
25 tfile[imode] =
new TFile(name,
"READ");
28 h_rap[imode] = (TH1*)tfile[imode]->
Get(
"h_rap");
29 h_rap_sphenix[imode] = (TH1*)tfile[imode]->
Get(
"h_rap_sphenix");
33 h_rap_total = (TH1*)h_rap[0]->Clone(
"h_rap_total");
34 h_rap_total->Add( h_rap[1] );
35 h_rap_total->Add( h_rap[2] );
37 h_rap_sphenix_total = (TH1*)h_rap[0]->Clone(
"h_rap_sphenix_total");
38 h_rap_sphenix_total->Add( h_rap_sphenix[1] );
39 h_rap_sphenix_total->Add( h_rap_sphenix[2] );
42 TCanvas *c_rap =
new TCanvas(
"c_rap",
"Rapidity",550,425);
43 h_rap_total->Draw(
"ehist");
44 h_rap_sphenix_total->SetLineColor(kBlue);
45 h_rap_sphenix_total->SetMarkerColor(kBlue);
46 h_rap_sphenix_total->Draw(
"ehistsame");