ATLAS Offline Software
Loading...
Searching...
No Matches
IHistogram.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef HDF5Utils_IHistogram_H
6#define HDF5Utils_IHistogram_H
7
8#include "H5Cpp.h"
9#include <string>
10
11namespace H5Utils::hist {
12
20 class IHistogram {
21 public:
22 virtual ~IHistogram() = default;
23
28 virtual void add(const H5::Group& src) = 0;
29
35 virtual void write(H5::Group& parent, const std::string& name) const = 0;
36 };
37
38} //> end namespace H5Utils::hist
39
40#endif //> !HDF5Utils_IHistogram_H
Abstract interface for a mergeable histogram.
Definition IHistogram.h:20
virtual ~IHistogram()=default
virtual void add(const H5::Group &src)=0
Accumulate data from a UHI histogram group in a source file.
virtual void write(H5::Group &parent, const std::string &name) const =0
Write the accumulated histogram as a new UHI group.