mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-20 10:57:57 +02:00
threshold energy
This commit is contained in:
@ -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;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user