![]() |
ATLAS Offline Software
|
Accumulates UHI histogram groups from multiple source files and writes the merged result once all inputs have been consumed. More...
#include <HistogramMerger.h>
Public Member Functions | |
| ~HistogramMerger () | |
| 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. | |
Private Member Functions | |
| 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 appropriate type. | |
Private Attributes | |
| std::map< std::string, std::unique_ptr< IHistogram > > | m_hists |
Accumulates UHI histogram groups from multiple source files and writes the merged result once all inputs have been consumed.
Usage: HistogramMerger hm; for each source file: hm.add("/path/to/hist", src_group); hm.write(output_root_group);
Definition at line 30 of file HistogramMerger.h.
|
default |
Accumulate one UHI histogram group.
| path | Full HDF5 object path, e.g. "/jets/mass" (same in all files). |
| src | The UHI histogram group from a source file. |
Definition at line 548 of file HistogramMerger.cxx.
|
private |
Factory: read the storage type from src and return a zero-initialised concrete IHistogram of the appropriate type.
Definition at line 518 of file HistogramMerger.cxx.
| void H5Utils::hist::HistogramMerger::write | ( | H5::Group & | root | ) | const |
Write every accumulated histogram into the output file.
| root | The root group of the output file (or any common ancestor). |
Definition at line 555 of file HistogramMerger.cxx.
|
private |
Definition at line 48 of file HistogramMerger.h.