[ROOT] saving root files

From: Edward Moyse (Edward.Moyse@cern.ch)
Date: Sat Sep 13 2003 - 12:06:53 MEST


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