Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Back in the good old days, one could use a wild card in the TChain.Add() method to create a long chain of files to read. This does not (currently) work with xrootd.

Incidentally, to read a single ROOT file which resides in xroot, you may use the following 1-line construction:

Code Block

TFile *f = TFile::Open("root://glast-rdr.slac.stanford.edu//glast/Data/Flight/Level1/LPA/prod/1.56/digi/r0236102471_v000_digi.root")

New recipe that works for ROOT v5.18 (added 5/22/2008)

The second recipe below works for ROOT version 5.16 but not for 5.18. Please see this Root Talk discussion for a method that works with 5.18. http://root.cern.ch/phpBB2/viewtopic.php?t=4857&highlight=tfileinfo+createlist
in particular the response posted by user ganis on Wed Jan 23, 2008 13:04

...