Hi,
I am wondering if there is a reason the TFill constructor cannot handle xroot files - and one must use instead the Open method, i.e.,
TFile f(“xroot:…”)
fails (file does not exist), but
TFile f
f.Open(“xroot:…”)
works.
Thanks,
- Tom
Hi,
I am wondering if there is a reason the TFill constructor cannot handle xroot files - and one must use instead the Open method, i.e.,
TFile f(“xroot:…”)
fails (file does not exist), but
TFile f
f.Open(“xroot:…”)
works.
Thanks,
TFile::Open is a static function that returns a TFile. You should call this function when accessing remove objects via the root,xrootd,rfio,http,etc protocols, eg
TFile *f = TFile::Open("http://root.cern.ch/files/alice.root");
f->ls()
Rene