4 int rad[11] = {0,1,2,3,4,5,6,7,8,9,100};
5 int pz[8] = {1,2,4,8,16,32,40,50};
6 char *calo[] = {
"E",
"HO",
"HI",
"BH",
"MAG"};
13 sprintf(fname,
"%spercent.root",part);
15 sprintf(area,
"%s",part);
16 TFile *fin = TFile::Open(fname);
18 for (
int i=0;
i<8;
i++)
20 for (
int j=0;
j<5;
j++)
22 for (
int k=0;
k<11;
k++)
26 sprintf(hname,
"%sSH%dRad%d%s",part,pz[
i],rad[
k],calo[
j]);
27 TH1 *
h1 = (TH1F *) fin->Get(hname);
30 cout <<
"DEATH BY STUPIDITY" << endl;
32 cout << hname << endl;
33 y[
k] = h1->GetMean(1);
34 yer[
k] = h1->GetRMS(1);
36 gr =
new TGraphErrors(10,x,y,xer,yer);
38 sprintf(gname,
"%s%d%sRADERR",part,pz[
i],calo[
j]);
42 gr->SetMarkerStyle(20);
43 gr->SetMarkerColor(2);
45 sprintf(fname,
"%sShEdepErr.root",part);
46 TFile *
fout = TFile::Open(fname,
"UPDATE");
50 for (
int m=0;
m<11;
m++)