Skip to content

RooWorkspace.factory() parse dependence on LC_NUMERIC settings #17797

Open
@anigamova

Description

@anigamova

Check duplicate issues.

  • Checked for duplicates

Description

Combine users with CMSSW installation at DESY noticed a dependence on LC_NUMERIC settings. The variables created with RooWorkspace.factory() if LC_NUMERIC='de_DE.UTF-8' get rounded to int, see the details below

Reproducer

export LC_NUMERIC='de_DE.UTF-8'

Python 3.9.14 (main, May  3 2024, 09:33:06) 
[GCC 12.3.1 20230527] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> 
>>> ws = ROOT.RooWorkspace("ws")
>>> ws.factory("x[3.33,0,5]")
<cppyy.gbl.RooRealVar object at 0x4daec80>
>>> ws.Print()

RooWorkspace(ws) ws contents

variables
---------
(x)

>>> ws.var("x").Print()
RooRealVar::x = 3  L(0 - 5) 

ROOT version

6.30/07

Installation method

combine CMSSW installation https://cms-analysis.github.io/HiggsAnalysis-CombinedLimit/latest/#combine-v10-recommended-version

Operating system

el9_amd64_gcc12

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions