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

Read branch error in TTree::GetEntry

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.12/00, 6.10/08
    • Component/s: I/O, TTree
    • Labels:
      None
    • Environment:

      ROOT 6.11/01 built on Ubuntu 14.04.

    • Development:

      Description

      I run MainEvent.cxx and built thousands events and read them back. However, none of events have been successfully read back. The problems is due to this line of code in TTree::GetEntry:

      https://github.com/root-project/root/blob/master/tree/tree/src/TTree.cxx#L5416

      Particularly, the Foreach function parses 0 as the second arguments and it actually invoke 0 task:
      pool.Foreach(mapFunction, nbranches - fSeqBranches.size());

      In my case, nbranches = 1 and fSeqBranches.size() = 1. I tries to remove fSeqBranches.size() and only parse nbranches into Foreach function. It worked. I guess there must be some reasonings behind the implementation. Could anyone look at it and give some explanation?

      Thanks,

      Zhe

        Attachments

          Activity

            People

            Assignee:
            etejedor Enric Tejedor Saavedra
            Reporter:
            64d35259e78ec152c660 Zhe Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: