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.19 by tschum, Fri Feb 12 15:21:17 2010 UTC vs.
Revision 1.20 by tschum, Wed Feb 17 15:42:23 2010 UTC

# Line 248 | Line 248 | TH1* PlotTool::plot(int chainIndex, stri
248  
249  
250          //Draw histogram:
251 <        string cutNameWithGlobal = cutName;
251 >        string cutNameWithGlobal = "";
252 >        if(cutName!="" && globalCuts!="")    cutNameWithGlobal += "(";
253 >        if(cutName!="")                      cutNameWithGlobal += cutName;
254 >        if(cutName!="" && globalCuts!="")    cutNameWithGlobal += ")";
255          if(cutName!="" && globalCuts!="")    cutNameWithGlobal += "&&";
256 +        if(cutName!="" && globalCuts!="")    cutNameWithGlobal += "(";
257          if(globalCuts!="")                   cutNameWithGlobal += globalCuts;
258 +        if(cutName!="" && globalCuts!="")    cutNameWithGlobal += ")";
259  
260          histName += ">>htemp";
261          if(bins != "") histName += bins;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines