I’m trying to run an analysis on some files I have on castor at CERN (I’m working from lxplus) and I can’t seem to get to the files properly. Some complete code that replicates the problem for me is:
{
TChain *chain = new TChain(“CollectionTree”);
chain->Add(“rfio:///castor/cern.ch/user/j/jgoodson/release14METAANs/1420/Zmumu5151/user.JeremiahJetGoodson.005151.ZmumuMcAtNLO.AAN.v1420Nightly.AANT._00001.root”);
chain->MakeClass(“analysisClass”);
}
which I just have in a little file called classMaker that I run with root classMaker.
When I run this in ROOT 5.10/00 I get:
SysError in TRFIOFile::TRFIOFile: file /castor/cern.ch/user/j/jgoodson/release14METAANs/1420/Zmumu5151/user.JeremiahJetGoodson.005151.ZmumuMcAtNLO.AAN.v1420Nightly.AANT._00001.root can not be opened for reading (Internal error)
repeated a few times. If I switch to 5.14/00i or 5.16/00 I get a segmentation violation.
If I rfcp the file into /tmp/jgoodson/ and try the program off of there, it works fine and produces a full class. The root file is readable in /tmp and in castor its permissions are mrw-r–r--
I’ve tried adding environment variables, specifically:
export STAGE_HOST=castoratlas
export RFIO_USE_CASTOR_V2=YES
export STAG_SVCCLASS=default
to no avail, but I’m also not sure if those are ideal. My connection to ROOT is setup with:
export ROOTSYS=/afs/cern.ch/sw/root/v5.10.00/slc3_gcc3.2.3/root
export PATH=$PATH:${ROOTSYS}/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${ROOTSYS}/lib
Is there something else I should be doing in order to make this work? The basic documentation I’ve seen seems to just add up to “add rfio:// to the path”.
Any help is much appreciated.