Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9344

TChain does not recognize folder ending in .root

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • 6.10/06, 6.12/06
    • 6.14/00
    • None
    • None
    • lxplus (but should be environment-independent)

    Description

      Dear all,

      as reported here, starting from version 6.10/XX (checked with 6.10/06 and 6.12/06, while 6.08/06 is not affected) when a file inside a folder named foo.root is added to a TChain, root does not properly recognize it.

      As an example, if I do:

       

      chain = TChain( "nominal", "nominal" )

      {{ chain.Add( "./foo.root/bar.root" )}}{{}}

       

      Then the following error is raised when I try to access the TChain:

      SysError in TFile::ReadBuffer: error reading from file foo.root (Is a directory)
      {{ Error in TFile::Init: foo.root failed to read the file type data.}}

       

      It seems like the way the strings are parsed changed when moving from 6.08 to 6.10.

      Unfortunately, the aforementioned naming convention is the one adopted by the ATLAS Collaboration and we can not easily change it.

      Cheers,

      Matteo

      Attachments

        Activity

          People

            ganis Gerardo Ganis
            mscornaj Matteo Scornajenghi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual Start:
              Actual End: