Bug 406805

Summary: Cannot access histograms within a directory structure in a ROOT file
Product: [Applications] LabPlot2 Reporter: beojan <beojan>
Component: backendAssignee: Alexander Semke <alexander.semke>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: latest   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 2.7
Sentry Crash Report:

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