ATLAS Offline Software
CompressedTypes.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace {
8 }
9 
10 namespace H5Utils {
11 
12  namespace internal {
13 
15  // start with native float
16  H5::FloatType type(H5Tcopy(H5::PredType::NATIVE_FLOAT.getId()));
17 
18  // These definitions are copied from h5py, see:
19  //
20  // https://github.com/h5py/h5py/blob/596748d52c351258c851bb56c8df1c25d3673110/h5py/h5t.pyx#L212-L217
21  //
22  type.setFields(15, 10, 5, 0, 10);
23  type.setSize(2);
24  type.setEbias(ebias);
25  return type;
26  }
27 
28  }
29 
30 }
DataType
OFFLINE_FRAGMENTS_NAMESPACE::PointerType DataType
Definition: RoIBResultByteStreamTool.cxx:25
H5Utils::internal::halfPrecisionFloat
H5::DataType halfPrecisionFloat(int ebias=15)
Definition: CompressedTypes.cxx:14
H5Utils
HDF5 Tuple Writer.
Definition: common.h:20
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
CompressedTypes.h