ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/tschum/FWlite_Analysis/PlotTool.cc
(Generate patch)

Comparing UserCode/tschum/FWlite_Analysis/PlotTool.cc (file contents):
Revision 1.1 by tschum, Wed Nov 11 15:36:55 2009 UTC vs.
Revision 1.2 by tschum, Fri Nov 13 15:41:42 2009 UTC

# Line 14 | Line 14 | PlotTool::PlotTool()
14    sameCanv_cuts  = false;
15  
16    showLegend = false;
17 +  logY = true;
18 +
19  
20   }
21  
# Line 110 | Line 112 | int  PlotTool::plot(int chainIndex, stri
112    
113    if( ! pads_[currPadName.str()] || ! gROOT->FindObject(currPadName.str().c_str()) ) {
114      pads_[currPadName.str()] = new TCanvas(currPadName.str().c_str(), currPadName.str().c_str());
115 +    if(logY) pads_[currPadName.str()]->SetLogy(1);
116    } else {
117      pads_[currPadName.str()]->cd();
118      currOpt += "SAMES";
# Line 288 | Line 291 | void PlotTool::setCanvas(TCanvas* thisCa
291    thisCanvas->SetBottomMargin(0.2);
292    thisCanvas->SetTopMargin(0.1);
293  
294 +  if(logY) thisCanvas->SetLogy(1);
295 +  else     thisCanvas->SetLogy(0);
296  
297    if(showLegend)  thisLeg = new TLegend();
298  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines