--- UserCode/IPHCalignment2/analysis/Layout.cpp 2011/11/29 07:52:14 1.6 +++ UserCode/IPHCalignment2/analysis/Layout.cpp 2011/11/29 11:01:00 1.7 @@ -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; @@ -154,7 +154,7 @@ void Layout::Draw(const std::vectorGetTitle()); + std::string filename = GetFileName(title); mycanvas->SaveAs((filename+".gif").c_str()); mycanvas->SaveAs((filename+".root").c_str());