threshold energy
All checks were successful
Build on RHEL9 / build (push) Successful in 2m54s
Build on RHEL8 / build (push) Successful in 2m55s

This commit is contained in:
2025-06-10 11:02:13 +02:00
parent b4a9b4caec
commit cba2e46e2f
2 changed files with 14 additions and 4 deletions

View File

@ -66,7 +66,7 @@ class Hdf5MasterFile {
std::optional<size_t> m_number_of_udp_interfaces;
size_t m_bitdepth{};
std::optional<size_t> m_ten_giga;
// thresholdenergy
std::optional<size_t> m_threshold_energy;
// thresholdall energy
std::optional<ns> m_subexptime{};
std::optional<ns> m_subperiod{};
@ -124,7 +124,7 @@ class Hdf5MasterFile {
std::optional<size_t> number_of_udp_interfaces() const;
size_t bitdepth() const;
std::optional<size_t> ten_giga() const;
// thresholdenergy
std::optional<size_t> threshold_energy() const;
// thresholdall energy
std::optional<ns> subexptime() const;
std::optional<ns> subperiod() const;

View File

@ -122,7 +122,9 @@ size_t Hdf5MasterFile::bitdepth() const { return m_bitdepth; }
std::optional<size_t> Hdf5MasterFile::ten_giga() const {
return m_ten_giga;
}
// thresholdenergy
std::optional<size_t> Hdf5MasterFile::threshold_energy() const {
return m_threshold_energy;
}
// thresholdall energy
std::optional<ns> Hdf5MasterFile::subexptime() const {
return m_subexptime;
@ -351,7 +353,15 @@ void Hdf5MasterFile::parse_acquisition_metadata(
// keep the optional empty
}
// thresholdenergy
// Threshold Energy
try {
m_threshold_energy = h5_get_scalar_dataset<int>(
file, std::string(metadata_group_name + "Threshold Energy"));
LOG(logDEBUG) << "Threshold Energy: " << m_threshold_energy;
} catch (H5::FileIException &e) {
// keep the optional empty
}
// thresholdall energy
// Subexptime