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

Inherited method in PyROOT/RooFit not found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.04/14
    • Fix Version/s: 6.10/00, 6.08/06
    • Component/s: PyROOT, RooFit/RooStats
    • Labels:
      None
    • Environment:

      ROOT 6.04/14 was tested on SLC6 with python 2.7.9 and gcc 4.9.1 (lxplus)
      master was tested on OSX 10.11.4 with python 2.7.11 and clang-703.0.31

    • Development:

      Description

      Using root6 and PyROOT to add a RooArgSet to another one, I notice the following behaviour:

      import ROOT
      set1 = ROOT.RooArgSet()
      set2 = ROOT.RooArgSet()
      set1.add(set2)

      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      TypeError: bool RooArgSet::add(const RooAbsArg& var, bool silent = kFALSE) =>
      could not convert argument 1

      even though

      RooArgSet inherits the function Bool_t RooAbsCollection::add (const RooAbsCollection& list, Bool_t silent = kFALSE)

      .

      Doing the same in an interactive ROOT session behaves as expected:

      RooArgSet set1;
      RooArgSet set2;
      set1.add(set2);

      (Bool_t) false

      With root5 and PyROOT the behaviour is as expected naively:

      import ROOT
      set1 = ROOT.RooArgSet()
      set2 = ROOT.RooArgSet()
      set1.add(set2)

      False

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              gadatsch Stefan Gadatsch
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: