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