34 TFile*
fout =
new TFile(
voi_stem(out_name,
".root").c_str(),
"recreate");
36 array<TH1D*,10> harr_sub1, harr_rhoA;
37 for (
int i=0;
i<10; ++
i) {
40 harr_sub1[
i] =
new TH1D(Form(
"fluct_sub1_%i",
i),
41 Form(
"impact param [%4.2f-%4.2f];p_{T,jet}^{SUB1+probe}-p_{T}^{probe};N_{events}",
IP_DEC[
i],
IP_DEC[i+1]), 400, -50, 50);
42 harr_rhoA[
i] =
new TH1D(Form(
"fluct_rhoA_%i",i),
43 Form(
"impact param [%4.2f-%4.2f];(p_{T,jet}^{calo+probe}-#rho#timesA)-p_{T}^{probe};N_{events}",
IP_DEC[i],
IP_DEC[i+1]), 400, -50, 50);
46 Long64_t nentries =
fChain->GetEntriesFast();
48 Long64_t nbytes = 0, nb = 0;
49 for (Long64_t jentry=0; jentry<nentries;jentry++) {
51 if (ientry < 0)
break;
52 nb =
fChain->GetEntry(jentry); nbytes += nb;
57 cout <<
"bad impact parameter; should NEVER happen" << endl;
72 for (
int k=0;
k<10;++
k) {
73 harr_sub1[
k]->Write();
74 harr_rhoA[
k]->Write();