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,
"/sphenix/user/pinkenbu/jade/ntuple/%s_eta0_%dGeV.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(
"de");
31 sprintf(radn,
"RAD==%d", rad[j]);
32 nt->Project(hname,calo[k],radn);
35 cout <<
"sz" <<
" not found - bozo!!!" << endl;
68 sprintf(fname,
"%scondor.root",part);
69 TFile *
fout = TFile::Open(fname,
"UPDATE");
72 cout << h1->Integral() <<
" " << hname << endl;