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

TChain:GetMinimum() changes the pointer address of TBranch object

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: High
    • Resolution: Clarified
    • Affects Version/s: 6.10/08
    • Fix Version/s: None
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      CMSSW 9.4.9

      on naf-cms.desy.de (RedHat Scientific 6.10)

    • Development:

      Description

      When running a script which loops over Branches in a TChain and asks for the chain.GetMaximum( branch.GetName()) and chain.GetMinimum( branch.GetName())  the pointers on the branch object is changed.

      Example code:

      chain = ROOT.TChain("Tree")
      for branch in chain.GetListOfBranches:
          print "first branch", branch
          bname = branch.GetName()
          xmax = chain.GetMaximum( branch.GetName())
          print "second branch", branch
      

      The first and second branch printout is not the same anymore.

      chain = ROOT.TChain("Tree")
      for branch in chain.GetListOfBranches:
          print "first branch", branch
          bname = branch.GetName()
          #xmax = chain.GetMaximum( branch.GetName())
          print "second branch", branch
      

      The first and second printout are the same.

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              mhorzela Maximilian Maria Horzela
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: