ROOTFilter
A description for ROOTFilter.
- 
class ROOTFilter : public AbstractFileFilter
 Manages the importing of histograms from ROOT files.
Public Functions
- 
virtual void readDataFromFile(const QString &fileName, AbstractDataSource* = nullptr, ImportMode = ImportMode::Replace) override
 Read data from the currently selected histogram.
The ROOT file is kept open until the file name is changed
- 
virtual void write(const QString &fileName, AbstractDataSource*) override
 Currently writing to ROOT files is not supported.
- 
Directory listHistograms(const QString &fileName) const
 List names of histograms contained in ROOT file.
- 
QVector<QStringList> listLeaves(const QString &fileName, qint64 pos) const
 List names of leaves contained in ROOT tree.
- 
void setCurrentObject(const QString&)
 Set the current histograms, which is one out of listHistograms.
- 
const QString currentObject() const
 Get the name of the currently set object.
- 
QVector<QStringList> previewCurrentObject(const QString &fileName, int first, int last) const
 Get preview data of the currently set object.
- 
int rowsInCurrentObject(const QString &fileName) const
 Get the number of rows in the current object.
- 
void setStartRow(const int bin)
 Set the last bin of the object to be read.
-1 skips the underflow bin of histograms
- 
int startRow() const
 Get the index of the first row to be read.
- 
void setEndRow(const int bin)
 Set the last row of the object to be read.
-1 skips the overflow bin of histograms
- 
int endRow() const
 Get the index of the last row to be read.
- 
void setColumns(const QVector<QStringList> &columns)
 Set the columns of the object to be read.
For histograms the following are available: center, low, content, error
- 
QVector<QStringList> columns() const
 Get the columns to be read.
For histograms, the identifiers for location, content and error are given as the first part, the corresponding translation as the second part. For trees, the branch name and the leaf name are returned.
- Returns:
 A pair of strings with different content depending on the object type
- 
virtual void save(QXmlStreamWriter*) const override
 Save bin limitation settings.
- 
virtual bool load(XmlStreamReader*) override
 Load bin limitation settings.
- 
struct Directory
 Internal directory structure in a ROOT file.
- 
virtual void readDataFromFile(const QString &fileName, AbstractDataSource* = nullptr, ImportMode = ImportMode::Replace) override