4 int pz[9] = {1,2,4,8,12,16,32,40,50};
12 for (
int i=0;
i<9;
i++)
16 sprintf(infile,
"/sphenix/user/jpinkenburg/ShowerSize/ntuple/%s_eta0_%dGeV.root",part, pz[
i]);
18 sprintf(hname,
"%s%dd",part,pz[i]);
19 TH1F *
h1 =
new TH1F(hname, hname, 8000, 0, 4);
20 TFile *
f = TFile::Open(infile);
22 TNtuple *nt = (TNtuple *)f->Get(
"de");
23 nt->Project(hname,
"dtotal",
"(ID<=2)*edep");
59 sprintf(fname,
"%s_ThinBins.root",part);
60 TFile *
fout = TFile::Open(fname,
"UPDATE");
63 cout << h1->Integral() <<
" " << hname <<
" " << pz[
i] << endl;
110 void EdepSmall(
const char *calo=
"HOe",
const char *part =
"e")
112 int pz[9] = {1,2,4,8,12,16,32,40,50};
119 sprintf(fname,
"%sShowerEdepPercent.root",part);
121 sprintf(area,
"%s",calo);
122 TFile *fin = TFile::Open(fname);
124 for (
int i=0;
i<9;
i++)
127 sprintf(hname,
"%s%s%dd",calo,part,pz[
i]);
128 TH1 *
h1 = (TH1F *) fin->Get(hname);
129 y[
i] = h1->GetMean(1);
130 yer[
i] = h1->GetRMS(1);
132 gr =
new TGraphErrors(9,x,y,xer,yer);
135 gr->SetMarkerStyle(20);
136 gr->SetMarkerColor(2);