323 |
|
tempdrawhisto->Sumw2(); |
324 |
|
if(use_this_sample) { |
325 |
|
(this->collection)[isample].events->Draw(drawthis.str().c_str(),(essentialcut&&Cut)*cutWeight);//this weight is based on PU etc. not XS |
326 |
< |
//cout << "Drawing " << drawthis.str() << " with cut " << (const char*) (essentialcut&&Cut)*cutWeight << endl; |
326 |
> |
//cout << "Drawing " << drawthis.str() << " with cut " << (const char*) (essentialcut&&Cut)*cutWeight << endl; |
327 |
|
if(addoverunderflowbins) { |
328 |
|
//now also adding the overflow & underflow bins: |
329 |
|
tempdrawhisto->SetBinContent(tempdrawhisto->GetNbinsX(),tempdrawhisto->GetBinContent(tempdrawhisto->GetNbinsX()+1)+tempdrawhisto->GetBinContent(tempdrawhisto->GetNbinsX())); |
398 |
|
if(use_this_sample) { |
399 |
|
if(Verbosity>0) dout << "[samplecollection::Draw] : Added contribution from sample " << (this->collection)[isample].samplename << endl; |
400 |
|
(this->collection)[isample].events->Draw(drawthis.str().c_str(),(essentialcut&&Cut)*cutWeight);//this weight is based on PU etc. not XS |
401 |
< |
cout << "About to draw : " << drawthis.str() << " with cut " << (const char*) (essentialcut&&Cut)*cutWeight << endl; |
401 |
> |
// cout << "About to draw : " << drawthis.str() << " with cut " << (const char*) (essentialcut&&Cut)*cutWeight << endl; |
402 |
|
if(addoverunderflowbins) { |
403 |
|
//now also adding the overflow & underflow bins: |
404 |
|
tempdrawhisto->SetBinContent(tempdrawhisto->GetNbinsX(),tempdrawhisto->GetBinContent(tempdrawhisto->GetNbinsX()+1)+tempdrawhisto->GetBinContent(tempdrawhisto->GetNbinsX())); |
429 |
|
{ |
430 |
|
binning.push_back(((float)(m_maxx-m_minx)/((float)m_nbins))*i+m_minx); |
431 |
|
} |
432 |
< |
|
432 |
> |
|
433 |
|
TH1F *histo = this->Draw(m_histoname,m_var, binning, m_xlabel, m_ylabel, Cut, m_is_data, luminosity, onlyindex,drawsignal); |
434 |
|
return histo; |
435 |
|
} |
561 |
|
// TLegend *leg = new TLegend(0.65,0.60,0.89,0.77); |
562 |
|
TLegend *leg = new TLegend(posx,posy,0.89,0.89); |
563 |
|
if(title!="") leg->SetHeader(title.c_str()); |
564 |
< |
if(data->GetName()!="nothing") leg->AddEntry(data,"Data","p"); |
564 |
> |
if(data->GetName()!="nothing") leg->AddEntry(data,"Data","lp"); |
565 |
|
leg->SetFillColor(kWhite); |
566 |
|
leg->SetBorderSize(0); |
567 |
|
leg->SetLineColor(kWhite); |