ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/IPHCalignment2/analysis/Layout.cpp
(Generate patch)

Comparing UserCode/IPHCalignment2/analysis/Layout.cpp (file contents):
Revision 1.6 by cgoetzma, Tue Nov 29 07:52:14 2011 UTC vs.
Revision 1.8 by cgoetzma, Tue Nov 29 19:56:00 2011 UTC

# Line 75 | Line 75 | void Layout::DrawInit()
75   }
76  
77  
78 < void Layout::Draw(const std::vector<HistoBlock>& histos,
78 > void Layout::Draw(const std::string title, const std::vector<HistoBlock>& histos,
79                    const std::string& xlabel, bool fit, float K, float MU, float SIG)
80   {
81    std::cout << "----------------- Draw : " << histos[0].histo->GetName() << std::endl;
# Line 109 | Line 109 | void Layout::Draw(const std::vector<Hist
109    float xmax = mystack->GetXaxis()->GetXmin();
110  
111    // Draw legend
112 <  TLegend* mylegend = new TLegend(0.40,0.85-(0.04*histos.size()),0.90,0.85);
112 >  TLegend* mylegend = new TLegend(0.55,0.90-(0.04*histos.size()),0.90,0.90);
113    mylegend->SetFillColor(0);
114    for (unsigned int i=0;i<histos.size();i++)
115    {
# Line 154 | Line 154 | void Layout::Draw(const std::vector<Hist
154    }
155  
156    // Save
157 <  std::string filename = GetFileName(histos[3].histo->GetTitle());
157 >  std::string filename = GetFileName(title);
158    mycanvas->SaveAs((filename+".gif").c_str());
159    mycanvas->SaveAs((filename+".root").c_str());
160  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines