ATLAS Offline Software
DefaultMerger.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef HDF5Utils_DefaultMerger_H
6 #define HDF5Utils_DefaultMerger_H
7 
8 #include "HDF5Utils/IH5Merger.h"
9 
17 namespace H5Utils {
21  class DefaultMerger : public IH5Merger {
22  public:
36  hsize_t mergeAxis = 0,
37  int chunkSize = -1,
38  bool requireSameFormat = true,
39  std::size_t bufferSize = -1,
40  bool bufferInRows = false);
41 
43 
44  using IH5Merger::merge;
46 
52  void merge(H5::Group& target, const H5::Group& source) override;
53 
59  void merge(H5::DataSet& target, const H5::DataSet& source) override;
60 
61 
67  H5::DataSet createFrom(
68  H5::H5Location& targetLocation,
69  const H5::DataSet& source) override;
70 
71  protected:
73  hsize_t m_mergeAxis;
79  std::size_t m_bufferSize;
82  }; //> end class DefaultMerger
83 } //> end namespace H5Utils
84 
85 #endif //> !HDF5Utils_DefaultMerger_H
H5Utils::IH5Merger
Definition: IH5Merger.h:25
TrigDefs::Group
Group
Properties of a chain group.
Definition: GroupProperties.h:13
H5Utils::DefaultMerger::m_mergeAxis
hsize_t m_mergeAxis
The axis to merge along.
Definition: DefaultMerger.h:73
IH5Merger.h
H5Utils::DefaultMerger::DefaultMerger
DefaultMerger(hsize_t mergeAxis=0, int chunkSize=-1, bool requireSameFormat=true, std::size_t bufferSize=-1, bool bufferInRows=false)
Create the merger.
Definition: DefaultMerger.cxx:12
H5Utils::DefaultMerger::m_chunkSize
int m_chunkSize
The chunk size to apply.
Definition: DefaultMerger.h:75
AthExHiveOpts.chunkSize
chunkSize
Definition: AthExHiveOpts.py:101
H5Utils::DefaultMerger::m_bufferSize
std::size_t m_bufferSize
The size of the buffer.
Definition: DefaultMerger.h:79
H5Utils::IH5Merger::createFrom
virtual H5::Group createFrom(H5::H5Location &targetLocation, const H5::Group &source)
Make a new group from information in a source group.
Definition: IH5Merger.cxx:18
H5Utils::DefaultMerger::merge
void merge(H5::Group &target, const H5::Group &source) override
Merge a source group into a target group.
Definition: DefaultMerger.cxx:26
H5Utils::DefaultMerger::m_requireSameFormat
bool m_requireSameFormat
Whether to require the same group structure.
Definition: DefaultMerger.h:77
H5Utils::DefaultMerger::~DefaultMerger
~DefaultMerger()
Definition: DefaultMerger.cxx:24
H5Utils
HDF5 Tuple Writer.
Definition: common.h:20
H5Utils::DefaultMerger::m_measureBufferInRows
bool m_measureBufferInRows
Whether to measure the buffer in bytes or rows.
Definition: DefaultMerger.h:81
H5Utils::DefaultMerger::createFrom
H5::DataSet createFrom(H5::H5Location &targetLocation, const H5::DataSet &source) override
Make a new dataset from information in a source dataset.
Definition: DefaultMerger.cxx:113
copySelective.target
string target
Definition: copySelective.py:37
copySelective.source
string source
Definition: copySelective.py:32
H5Utils::IH5Merger::merge
virtual void merge(H5::H5File &target, const H5::H5File &source)
Merge a source file into a target file.
Definition: IH5Merger.cxx:11
H5Utils::DefaultMerger
Definition: DefaultMerger.h:21