Bug 406805 - Cannot access histograms within a directory structure in a ROOT file
Summary: Cannot access histograms within a directory structure in a ROOT file
Status: RESOLVED FIXED
Alias: None
Product: LabPlot2
Classification: Applications
Component: backend (show other bugs)
Version: latest
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Semke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-23 10:19 UTC by beojan
Modified: 2019-05-12 15:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.7
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description beojan 2019-04-23 10:19:12 UTC
SUMMARY

The CERN ROOT file format supports a directory structure within a file. When a file with such a structure is opened in the import dialog, only one entry is shown for each unique histogram name, with no indication of which directory that histogram is in.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma
(available in About System)
KDE Plasma Version: 5.15.4 
KDE Frameworks Version: 5.57
Qt Version: 5.12

ADDITIONAL INFORMATION
Comment 1 Alexander Semke 2019-05-01 08:42:49 UTC
Thanks for reporting this issue. Can you please attache an example file for this?
Comment 2 Christoph Roick 2019-05-12 14:10:07 UTC
Git commit 3a2c6ef46980d39675996312ffc26c8c03d9081d by Christoph Roick.
Committed on 12/05/2019 at 14:03.
Pushed by croick into branch 'master'.

Support ROOT directory structure

- display histograms and trees in a directory structure
- internally store key information by their unique file positions

M  +204  -107  src/backend/datasources/filters/ROOTFilter.cpp
M  +11   -3    src/backend/datasources/filters/ROOTFilter.h
M  +77   -62   src/backend/datasources/filters/ROOTFilterPrivate.h
M  +75   -40   src/kdefrontend/datasources/ROOTOptionsWidget.cpp
M  +2    -2    src/kdefrontend/datasources/ROOTOptionsWidget.h

https://commits.kde.org/labplot/3a2c6ef46980d39675996312ffc26c8c03d9081d