Opening a new xrootd file in a root session requires TFile::Open() to be executed twice. Example with debug=1 below.
-bash-3.2$ root
Info in TROOT::InitSystem: running with gDebug = 1
Info in TPluginManager::LoadHandlerMacros: /afs/rhic.bnl.gov/x8664_sl5/opt/dayabay/offline-opt/external/ROOT/5.22.00a/x86_64-slc5-gcc43-opt/root/etc/plugins/TSystem
-
*
-
W E L C O M E to R O O T *
-
*
- Version 5.22/00a 12 February 2009 *
-
*
- You are welcome to visit our Web site *
-
[root.cern.ch](http://root.cern.ch) *
-
*
ROOT 5.22/00a (branches/v5-22-00-patches@27437, Nov 16 2009, 16:07:00 on linuxx8664gcc)
CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] e32=TFile::Open(“root://daya0001.rcf.bnl.gov//xrootd/testMDC09b/output/e32.root”,“NEW”,“test file e32”)
Info in TCint::AutoLoadCallback: loaded dependent library libRIO.so for class TFile
Info in TUnixSystem::Load: loaded library /afs/rhic.bnl.gov/x8664_sl5/opt/dayabay/offline-opt/external/ROOT/5.22.00a/x86_64-slc5-gcc43-opt/root/lib/libRIO.so, status 0
Info in TCint::AutoLoadCallback: loaded library libRIO.so for class TFile
Info in TPluginManager::LoadHandlerMacros: /afs/rhic.bnl.gov/x8664_sl5/opt/dayabay/offline-opt/external/ROOT/5.22.00a/x86_64-slc5-gcc43-opt/root/etc/plugins/TFile
Info in TPluginManager::FindHandler: found plugin for TXNetFile
Info in TUnixSystem::Load: loading dependent library libRIO.so for library libThread.so
Info in TUnixSystem::Load: loaded library /afs/rhic.bnl.gov/x8664_sl5/opt/dayabay/offline-opt/external/ROOT/5.22.00a/x86_64-slc5-gcc43-opt/root/lib/libThread.so, status 0
Info in TCint::AutoLoad: loaded dependent library libThread.so for class TXNetFile
Info in TCint::AutoLoad: loaded dependent library libRIO.so for class TXNetFile
Info in TUnixSystem::Load: loading dependent library libMathCore.so for library libNet.so
Info in TUnixSystem::Load: loading dependent library libRIO.so for library libNet.so
Info in TUnixSystem::Load: loaded library /afs/rhic.bnl.gov/x8664_sl5/opt/dayabay/offline-opt/external/ROOT/5.22.00a/x86_64-slc5-gcc43-opt/root/lib/libNet.so, status 0
Info in TCint::AutoLoad: loaded dependent library libNet.so for class TXNetFile
Info in TUnixSystem::Load: loading dependent library libThread.so for library libNetx.so
Info in TUnixSystem::Load: loading dependent library libRIO.so for library libNetx.so
Info in TUnixSystem::Load: loading dependent library libNet.so for library libNetx.so
Info in TUnixSystem::Load: loaded library /afs/rhic.bnl.gov/x8664_sl5/opt/dayabay/offline-opt/external/ROOT/5.22.00a/x86_64-slc5-gcc43-opt/root/lib/libNetx.so, status 0
Info in TCint::AutoLoad: loaded library libNetx.so for class TXNetFile
Info in TPluginManager::LoadHandlerMacros: /afs/rhic.bnl.gov/x8664_sl5/opt/dayabay/offline-opt/external/ROOT/5.22.00a/x86_64-slc5-gcc43-opt/root/etc/plugins/TArchiveFile
Info in TXNetFile::ParseCacheOptions: found: cachesz = -1, readaheadsz = -1, rmpolicy = -1, mxredir = -1
Error in TXNetFile::CreateXClient: open attempt failed on root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root
Info in TFile::~TFile: dtor called for root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root [306148416]
Info in TDirectoryFile::~TDirectoryFile: dtor called for root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root
Info in TDirectory::~TDirectory: dtor called for root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root
(class TFile*)0x0
root [1] e32=TFile::Open(“root://daya0001.rcf.bnl.gov//xrootd/testMDC09b/output/e32.root”,“NEW”,“test file e32”)
Info in TPluginManager::FindHandler: found plugin for TXNetFile
Info in TXNetFile::ParseCacheOptions: found: cachesz = -1, readaheadsz = -1, rmpolicy = -1, mxredir = -1
TKey Writing 250 bytes at address 100 for ID= root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root Title= test file e32
Info in TFileCacheWrite::TFileCacheWrite: Creating a write cache with buffersize=512000 bytes
(class TFile*)0x123b6a50
root [2] .q
TKey Writing 117 bytes at address 350 for ID= root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root Title= test file e32
TKey Writing 123 bytes at address 467 for ID= root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root Title= test file e32
Info in TFile::~TFile: dtor called for root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root [305883728]
Info in TDirectoryFile::~TDirectoryFile: dtor called for root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root
Info in TDirectory::~TDirectory: dtor called for root://daya0001.rcf.bnl.gov//xrootd/tes … t/e32.root