93 |
|
rNtuple->Fill(r.pval[nFits-1][4*i], r.pval[nFits-1][4*i+1], r.pval[nFits-1][4*i+2], |
94 |
|
r.pval[nFits-1][4*i+3]); |
95 |
|
} |
96 |
+ |
|
97 |
+ |
// save chisquares to ntuple |
98 |
+ |
for (unsigned i = 0; i < r.chisquare.size(); i++) { |
99 |
+ |
ostringstream csNtupleName, csNtupleTitle; |
100 |
+ |
csNtupleName << hist_orig->GetName() << "_chi2_" << i << flush; |
101 |
+ |
csNtupleTitle << "Chisquare "<<i<<" for histo "<<hist_orig->GetName() |
102 |
+ |
<< flush; |
103 |
+ |
TNtuple *csNtuple = fs->make<TNtuple>(csNtupleName.str().c_str(), |
104 |
+ |
csNtupleTitle.str().c_str(), |
105 |
+ |
"chisq"); |
106 |
+ |
csNtuple->Fill(r.chisquare[i]); |
107 |
+ |
} |
108 |
|
} |
109 |
|
|
110 |
|
DEFINE_FWK_MODULE(JetFinderAnalyzer); |