Re: Recovering badly closed file?

From: Brett Viren <bv_at_bnl.gov>
Date: Fri, 22 Jan 2010 16:16:13 -0500


Philippe Canal <pcanal_at_fnal.gov> writes:

>   TFile *_file0 = TFile::Open("B100112_080001.mbeam-fix.root")

> t = BeamMon;
> out = new TFile("copy.root","RECREATE");
> t->CloneTree();
> out->Write();

Thanks Phillipe! I did this with our application that included the streamers as dictionary libraries and the output file can now be re-read in our application as well as a bare root.exe session.

Cheers,
-Brett. Received on Fri Jan 22 2010 - 22:16:18 CET

This archive was generated by hypermail 2.2.0 : Sat Jan 23 2010 - 17:50:02 CET