ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/JetFitAnalyzer/test/JetFinderAnalyzer.cc
(Generate patch)

Comparing UserCode/JetFitAnalyzer/test/JetFinderAnalyzer.cc (file contents):
Revision 1.26 by dnisson, Sun Jan 10 01:36:29 2010 UTC vs.
Revision 1.27 by dnisson, Fri Jan 22 23:53:10 2010 UTC

# Line 93 | Line 93 | void JetFinderAnalyzer::analyze_results(
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines