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; |
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 |
|
} |