3 cout <<
"TEST VII" << endl;
5 int pz[9] = {1,2,4,8,12,16,32,40,50};
13 double intnum[1000] = {0};
14 double varnum[1000] = {0};
15 char *part[] = {
"anti_neutron"};
24 for (
int q=0; q<1; q++)
26 for (
int w=0; w<9;w++)
28 cout <<
"TEST VI" << endl;
30 sprintf(ffile,
"/phenix/u/jpinkenburg/sPHENIX/analysis/AntiSigma/macros/HistoBaseFiles/%s_ThinBins.root", part[q]);
31 TFile *
f = TFile::Open(ffile);
33 sprintf(hname,
"%s%dd",part[q],pz[w]);
34 TH1F *
h1 = (TH1F *)f->Get(hname);
43 intnum[
i] = (h1->Integral(1,var))/(h1->Integral());
51 sprintf(fname,
"Gamma_Neutron_Energy_Graphs.root");
52 TFile *
fout = TFile::Open(fname,
"UPDATE");
60 gStyle->SetOptStat(0);
63 TMarker *
mean =
new TMarker();
64 mean->SetMarkerStyle(20);
65 mean->SetMarkerColor(3);
67 sprintf(canvname,
"%s%d",part[q],pz[w]);
70 cout <<
"TEST V" << endl;
71 TGraph *
gr =
new TGraph((i-2),varnum,intnum);
73 sprintf(gtitle,
"%s%dGeV;ConeSize;Percentage of Energy Deposited",part[q],pz[w]);
75 sprintf(gname,
"%s%dGeV",part[q],pz[w]);
76 cout << intnum[50] <<
" " << varnum[50] << endl;
79 gr->SetMarkerStyle(20);
80 if (part[q] ==
"anti_neutron")
82 gr->SetMarkerColor(4);
84 else if (part[q] ==
"neutron")
86 gr->SetMarkerColor(2);
88 else if (part[q] ==
"gamma")
90 gr->SetMarkerColor(3);
94 cout <<
"idiot" << endl;
105 cout <<
"TEST 1" << endl;
107 cout <<
"TEST II" << endl;
109 cout <<
"TEST III" << endl;
111 cout <<
"TEST IV" << endl;
119 for (
int a=0;
a<1000;
a++)
178 int pz[9] = {1,2,4,8,12,16,32,40,50};
180 double means[9] = {0};
184 bool lastbin =
false;
186 double intnum[1000] = {0};
187 double varnum[1000] = {0};
188 char *part[] = {
"gamma",
"neutron",
"anti_neutron"};
190 TGraph *
gr =
new TGraph();
192 for (
int q=0; q<3; q++)
197 sprintf(ffile,
"%s_ThinBins.root", part[q]);
198 TFile *
f = TFile::Open(ffile);
200 sprintf(hname,
"%s12d",part[q]);
201 TH1F *
h1 = (TH1F *)f->Get(hname);
209 varnum[
i] = .005*(i+1);
210 intnum[
i] = (h1->Integral(1,var))/(h1->Integral());
224 sprintf(fname,
"PosterHistos.root");
225 y TFile *
fout = TFile::Open(fname,
"UPDATE");
234 TH2 *
h2 =
new TH2F(
"meanvals",
"anti_neutron",1,0,4,1,0,50);
235 gStyle->SetOptStat(0);
236 TMarker *
mean =
new TMarker();
237 mean->SetMarkerStyle(20);
238 mean->SetMarkerColor(3);
241 gr->TGraph((i-1),varnum,intnum);
243 sprintf(gname,
"12GeV;xtitle;ytitle");
253 for (
int a=0;
a<1000;
a++)
271 TFile *fin = TFile::Open(
"PosterHistos.root");
273 TH2 *
h2 =
new TH2F(
"DumbGraph",
"TresLines",1,0,10,1,0,50);
274 gStyle->SetOptStat(0);
275 TMarker *spf =
new TMarker();
276 spf->SetMarkerStyle(20);
277 spf->SetMarkerColor(4);
278 TCanvas *c1 =
new TCanvas();
284 sprintf(hname,
"meanvals");
285 TH2 *
gr = (TH2F *) fin->Get(hname);
286 cout <<
"herro" << endl;
287 cout <<
gr()->GetPoint(1,x,y) << endl;