Skip to content

RooInt removed from ROOT, data can't be read any more #16380

Closed as not planned
Closed as not planned
@PetrilloAtWork

Description

@PetrilloAtWork

Check duplicate issues.

  • Checked for duplicates

Description

Reporting on behalf of Fermilab SBN collaboration and SciSoft group.


We have some ROOT data files containing RooInt objects (we used then for storing "metadata").
That class was removed from ROOT (ca29ccf) and we can't read that data any more.
This is not exactly a bug, since ROOT works as intended — but that intention breaks our data.

Twofold question:

  1. how to work around the problem for existing data using newer ROOT
  2. are there other recommended ways to simply store an integer with a name in a ROOT file?
    TNamed comes to mind, but it needs explicit conversions, and that is why RooInt was preferred.

For people with Fermilab access, there is a related Redmine ticket #28974.

Reproducer

  1. Write a RooInt object in a new TFile with ROOT 6.28
  2. Try to read that object from that TFile with the latest ROOT

ROOT version

v6-32-00

Installation method

Build from source

Operating system

Linux

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Issues

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions