Re: [ROOT] arbitrary length limit on TFile filenames?

From: Suyong Choi (suyong@fnal.gov)
Date: Thu Oct 05 2000 - 22:37:38 MEST


"Matthew D. Langston" wrote:

> Hi Suyong,
>
> I'm not sure I understood your email.  Were you suggesting that you have
> created ROOT TFiles with filenames which are over 32 characters long?  Or,
> did you create them with shorter file names and then rename them with
> filenames greater than 32 characters.  Thank you for any help.
>

Dear Matthew,

Yes, I create them in programs regularly.

You might try to do the following example in command line mode
and if it works, everything should be OK, in principle.


TFile *f1=new TFile("abcdefghijklmnopqrstuvwxyz123456789.root","NEW");
TTree *tree = new TTree("T","An example of a ROOT tree");
TPolyLine3D *track;
track=new TPolyLine3D(100);
TBranch *b = tree->Branch("event", "TPolyLine3D", track);
tree->Fill();
f1->Write();

Regards,
Suyong



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:34 MET