Sorry, it is even simpler ResultTree1->Autosave(); Now, if you want to write the algorithm in the same files as you have your Trees, do: ResultTree1->GetCurrentFile()->cd(); ResultTree1->Write(); Write(); ResultTree2->GetCurrentFile()->cd(); ResultTree2->Write(); Write(); Rene Brun On Mon, 16 Sep 2002, Ole Streicher wrote: > Hello Rene! > > Rene Brun writes: > > do "ResultTree1->GetCurrentFile()->AutoSave(); > > The TFile doesn't have an "AutoSave()" member function? > > Could you write the complete sequence to store the algorithm to the > two files (connected to the two trees)? > > Something like the following? > > Algorithm::WriteMetadataToTrees(void) { > ResultTree1->GetCurrentFile()->AutoSave(); > Write(); > ResultTree2->GetCurrentFile()->AutoSave(); > Write(); > } > > Ole >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET