--- UserCode/IPHCalignment2/analysis/Layout.cpp 2011/11/29 07:52:14 1.6 +++ UserCode/IPHCalignment2/analysis/Layout.cpp 2011/11/29 19:56:00 1.8 @@ -75,7 +75,7 @@ void Layout::DrawInit() } -void Layout::Draw(const std::vector& histos, +void Layout::Draw(const std::string title, const std::vector& histos, const std::string& xlabel, bool fit, float K, float MU, float SIG) { std::cout << "----------------- Draw : " << histos[0].histo->GetName() << std::endl; @@ -109,7 +109,7 @@ void Layout::Draw(const std::vectorGetXaxis()->GetXmin(); // Draw legend - TLegend* mylegend = new TLegend(0.40,0.85-(0.04*histos.size()),0.90,0.85); + TLegend* mylegend = new TLegend(0.55,0.90-(0.04*histos.size()),0.90,0.90); mylegend->SetFillColor(0); for (unsigned int i=0;iGetTitle()); + std::string filename = GetFileName(title); mycanvas->SaveAs((filename+".gif").c_str()); mycanvas->SaveAs((filename+".root").c_str());