ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/Jeng/PVStudy/plugins/PVStudy.cc
(Generate patch)

Comparing UserCode/Jeng/PVStudy/plugins/PVStudy.cc (file contents):
Revision 1.14 by jengbou, Fri Dec 4 20:48:04 2009 UTC vs.
Revision 1.15 by jengbou, Fri Dec 4 21:20:26 2009 UTC

# Line 227 | Line 227 | PVStudy::PVStudy(const edm::ParameterSet
227    theFile->cd();
228    theFile->mkdir("Others");
229    theFile->cd();
230 +  if (analyze_) {
231 +    theFile->mkdir("Results");
232 +    theFile->cd();
233 +  }
234  
235    // Book Histograms:
236    h_pvtrk   = new PVHistograms();
# Line 289 | Line 293 | PVStudy::~PVStudy()
293    theFile->cd("Summary");
294    h_pvtrk->Save();
295    h_pixvtx->Save();
292  h_gen->Save();
296    h_misc->Save();
297    h_summary->Save();
298 <  if (analyze_)
298 >  if (!realData_)
299 >    h_gen->Save();
300 >  if (analyze_) {
301 >    theFile->cd();
302 >    theFile->cd("Results");
303      h_ana->Save();
304 +  }
305    theFile->cd();
306    theFile->cd("Others");
307    h_others->Save();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines