Hi Rene, I'd already done that and it's definitely this piece of code being called. I think that when it happened before, it was because my afs token had expired.... is this possible? I definitely have a valid token this time, but perhaps there is some other afs problem? Ed On Sat, 13 Sep 2003, Rene Brun wrote: > Ed, > > You must be calling somewhere the TFile constructor with option "new" > instead of "recreate". Could you put print statements around the TFile > constructor to make sure that you are really executing this piece > of code? > > Rene Brun > > On > Sat, 13 Sep 2003, Edward Moyse wrote: > > > Hi, > > > > I've had this problem before, but I can't remember what the resolution > > was, and searching the forums and mailing list archives haven't helped. > > > > I'm trying to save a root file, but always get an error: > > Error in <TFile::TFile>: file idscan_TEST__Barrel.root already exists > > > > The file DEFINITELY doesn't exist (I've tried added random letters to the > > name), and what's really weird is I haven't altered this code for ages, > > and it was working yesterday. I've checked that I have a valid afs token, > > and have tried on several machines. I have plenty of disk space too. > > Basically I'm now stuck! > > > > The relevant bit of code is reproduced below. > > > > TFile fh("idscan_TEST_"+postfix+".root","recreate"); > > m_hidscan1->Write(); > > m_hidscan2->Write(); > > m_hidscan3->Write(); > > fh.Close(); > > > > Cheers, > > > > Ed > > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET