ATLAS Offline Software
MergeUtils.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_MergeUtils_H
6 #define HDF5Utils_MergeUtils_H
7 
8 #include "H5Cpp.h"
9 #include <string>
10 
17 namespace H5Utils {
26  const H5::DataSet& target,
27  const H5::DataSet& source,
28  hsize_t mergeAxis);
29 
40  const H5::DataSet& target,
41  const H5::DataSet& source,
42  hsize_t mergeAxis,
43  std::string& errMsg);
44 
58  void mergeDatasets(
59  H5::DataSet& target,
60  const H5::DataSet& source,
61  hsize_t mergeAxis,
62  std::size_t bufferSize = -1);
63 
76  H5::DataSet createDataSet(
77  H5::H5Location& targetLocation,
78  const H5::DataSet& source,
79  hsize_t mergeAxis,
80  int chunkSize = -1,
81  int mergeExtent = -1);
82 
93  std::size_t getRowSize(const H5::DataSet& ds, hsize_t axis);
94 
95 } //> end namespace H5Utils
96 
97 #endif //> !HDF5Utils_MergeUtils_H
checkxAOD.ds
ds
Definition: Tools/PyUtils/bin/checkxAOD.py:257
yodamerge_tmp.axis
list axis
Definition: yodamerge_tmp.py:241
AthExHiveOpts.chunkSize
chunkSize
Definition: AthExHiveOpts.py:101
H5Utils
HDF5 Tuple Writer.
Definition: common.h:20
H5Utils::getRowSize
std::size_t getRowSize(const H5::DataSet &ds, hsize_t axis)
Calculate the size of a row of a dataset in bytes.
Definition: MergeUtils.cxx:254
H5Utils::mergeDatasets
void mergeDatasets(H5::DataSet &target, const H5::DataSet &source, hsize_t mergeAxis, std::size_t bufferSize=-1)
Merge two datasets.
Definition: MergeUtils.cxx:130
H5Utils::checkDatasetsToMerge
bool checkDatasetsToMerge(const H5::DataSet &target, const H5::DataSet &source, hsize_t mergeAxis)
Make sure that two datasets can be merged.
Definition: MergeUtils.cxx:53
H5Utils::createDataSet
H5::DataSet createDataSet(H5::H5Location &targetLocation, const H5::DataSet &source, hsize_t mergeAxis, int chunkSize=-1, int mergeExtent=-1)
Make a new dataset using the properties of another.
Definition: MergeUtils.cxx:222
COOLRates.target
target
Definition: COOLRates.py:1106