ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/cbrown/Development/Plotting/Modules/SampleClass.C
(Generate patch)

Comparing UserCode/cbrown/Development/Plotting/Modules/SampleClass.C (file contents):
Revision 1.12 by buchmann, Fri Aug 10 12:59:45 2012 UTC vs.
Revision 1.14 by fronga, Thu Aug 23 16:05:40 2012 UTC

# Line 323 | Line 323 | TH1F* samplecollection::Draw(string m_hi
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()));
# Line 398 | Line 398 | TH2F* samplecollection::Draw(string m_hi
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()));
# Line 429 | Line 429 | TH1F* samplecollection::Draw(string m_hi
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    }
# Line 561 | Line 561 | TLegend* samplecollection::allbglegend(s
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines