5#ifndef HDF5Utils_HistogramMerger_H
6#define HDF5Utils_HistogramMerger_H
39 void add(
const std::string& path,
const H5::Group& src);
45 void write(H5::Group& root)
const;
48 std::map<std::string, std::unique_ptr<IHistogram>>
m_hists;
52 std::unique_ptr<IHistogram>
make(
const H5::Group& src);
Accumulates UHI histogram groups from multiple source files and writes the merged result once all inp...
std::unique_ptr< IHistogram > make(const H5::Group &src)
Factory: read the storage type from src and return a zero-initialised concrete IHistogram of the appr...
std::map< std::string, std::unique_ptr< IHistogram > > m_hists
void add(const std::string &path, const H5::Group &src)
Accumulate one UHI histogram group.
void write(H5::Group &root) const
Write every accumulated histogram into the output file.
Abstract interface for a mergeable histogram.