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

Read branch error in TTree::GetEntry

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • High
    • Resolution: Fixed
    • None
    • 6.12/00, 6.10/08
    • I/O, TTree
    • None
    • ROOT 6.11/01 built on Ubuntu 14.04.

    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

            etejedor Enric Tejedor Saavedra
            64d35259e78ec152c660 Zhe Zhang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: