ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/joshmt/PlotUtil.cxx
(Generate patch)

Comparing UserCode/joshmt/PlotUtil.cxx (file contents):
Revision 1.1 by joshmt, Mon Mar 29 16:06:36 2010 UTC vs.
Revision 1.2 by joshmt, Fri Apr 23 16:41:12 2010 UTC

# Line 17 | Line 17 | PlotUtil::PlotUtil(HistHolder* hh) :
17  
18   PlotUtil::~PlotUtil() {}
19  
20 < Double_t PlotUtil::ErrorOnIntegral(const TH1F* h, const Int_t lowbin, const Int_t highbin) {
20 > Double_t PlotUtil::ErrorOnIntegral(const TH1F* h, const Int_t lowbin, Int_t highbin) {
21    
22 +  if ( highbin == 0)  highbin = h->GetNbinsX();
23 +
24    Double_t err=0;
25  
26    Double_t thisbin=0;
# Line 74 | Line 76 | void PlotUtil::addQCD(TString varname) {
76    for ( map<TString,TTree*>::const_iterator i=samples_.begin() ; i!=samples_.end() ; ++i) {
77      TString fullname=getFullName(varname,i->first);
78      if (  fullname!= qcdhist && fullname.Contains("_qcd") ) {
79 <      cout<<"Adding to base qcd histo: "<<fullname<<endl;
79 >      if (debug_)   cout<<"Adding to base qcd histo: "<<fullname<<endl;
80        TH1F* htoadd=hh_->find(fullname);
81        hbase->Add(htoadd);
82      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines