Re: [ROOT] how to create a file on Castor with v3.10.02

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Apr 06 2004 - 21:32:06 MEST


Hi Matthieu,

  it might be that the afs version was build with a wrong version of the
CASTOR libraries. It also might be a (temporary) CASTOR problem.
Hopefully Olof Barring from the CASTOR team can give some hints.

Cheers, Fons.


On Tue, 2004-04-06 at 10:46, Matthieu LECHOWSKI wrote:
> Hello,
> 
> I would like to create a file on castor with ROOT, but my usual method to 
> do that does not work anymore with the version 3.10.02 of ROOT (on lxplus, 
> my ROOTSYS is /afs/cern.ch/sw/root/v3.10.02/rh73_gcc2952/root ).
> 
> below a simple example :
> 
> void start()
> {
>   TFile *F=TFile::Open("rfio:/castor/cern.ch/user/l/lechowsk/test.root", 
> "RECREATE");
>   TH1F *H=new TH1F("h","h",100,-5,5);
>   H->FillRandom("gaus",10000);
>   H->Write();
>   F->Close();
> }
> 
> With 3.5.05 this works, but with 3.10.02 I have the message " 
> stage_updc_filcp " several times. The file has been created on castor (the 
> Open works), but has 0 octets (the Close doesn't work).
> 
> Do you know something about that ? Has something changed ?
> I see that now there is TCastorFile, I tried it but ROOT doesn't know it :
> Error: Symbol TCastorFile is not defined in current scope
> How could I use it ?
> 
> Thank you.
> 
> Matthieu Lechowski.
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET