Skip to content

RooPolyVar.x() yields a default variable Name of "x" #20293

@Phmonski

Description

@Phmonski

Check duplicate issues.

  • Checked for duplicates

Description

When running RooPolyVar().x(), the proxy has a default name of "x" despite different variable name.

Reproducer

import ROOT

y = ROOT.RooRealVar("y", "y", 1, -5, 5)

a = ROOT.RooRealVar("a", "a", 2, -5, 5)
b = ROOT.RooRealVar("b", "b", 3, -5, 5)

func = ROOT.RooPolyVar("myFunc", "myFunc", y, [a, b])
func.Print("t")
print("Function Variable:", func.x().GetName())

ROOT version

6.37.01

Installation method

build from source

Operating system

ArchLinux

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions