4 int rad[11] = {0,1,2,3,4,5,6,7,8,9,100};
6 int pz[8] = {1,2,4,8,16,32,40,50};
8 char *calo[] = {
"E",
"HO",
"HI",
"BH",
"MAG"};
10 for (
int i=0;
i<8;
i++)
12 for (
int j=0;
j<11;
j++)
18 sprintf(infile,
"%sSmallSH%dout.root",part, pz[
i]);
20 sprintf(hname,
"%sSH%dRad%d%s",part,pz[i],rad[
j],calo[
k]);
21 TH1F *
h1 =
new TH1F(hname, hname, 1000, 0, (pz[i]+1));
22 TFile *
f = TFile::Open(infile);
25 cout << infile <<
" not found - bozo!!!" << endl;
29 TNtuple *nt = (TNtuple *)f->Get(
"sz");
31 sprintf(radn,
"RAD==%d", rad[j]);
32 nt->Project(hname,calo[k],radn);
35 cout <<
"sz" <<
" not found - bozo!!!" << endl;
68 sprintf(fname,
"%spercent.root",part);
69 TFile *
fout = TFile::Open(fname,
"UPDATE");
72 cout << h1->Integral() <<
" " << hname << endl;
82 int rad[11] = {0,1,2,3,4,5,6,7,8,9,100};
83 int pz[8] = {1,2,4,8,16,32,40,50};
84 char *calo[] = {
"E",
"HO",
"HI",
"BH",
"MAG"};
91 sprintf(fname,
"%spercent.root",part);
93 sprintf(area,
"%s",part);
94 TFile *fin = TFile::Open(fname);
96 for (
int i=0;
i<8;
i++)
98 for (
int j=0;
j<5;
j++)
100 for (
int k=0;
k<11;
k++)
104 sprintf(hname,
"%sSH%dRad%d%s",part,pz[
i],rad[
k],calo[
j]);
105 TH1 *
h1 = (TH1F *) fin->Get(hname);
108 cout <<
"DEATH BY STUPIDITY" << endl;
110 cout << hname << endl;
111 y[
k] = h1->GetMean(1);
112 yer[
k] = h1->GetRMS(1);
114 gr =
new TGraphErrors(10,x,y,xer,yer);
116 sprintf(gname,
"%s%d%sRADERR",part,pz[
i],calo[
j]);
120 gr->SetMarkerStyle(20);
121 gr->SetMarkerColor(2);
123 sprintf(fname,
"%sShEdepErr.root",part);
124 TFile *
fout = TFile::Open(fname,
"UPDATE");
128 for (
int m=0;
m<11;
m++)