version 1.0.0-rc.16
This commit is contained in:
@@ -171,3 +171,34 @@ DetectorSettings &DetectorSettings::PedestalMinImageCount(uint32_t input) {
|
||||
pedestal_min_image_count = input;
|
||||
return *this;
|
||||
}
|
||||
|
||||
std::optional<float> DetectorSettings::GetEIGERThreshold_keV() const {
|
||||
return eiger_threshold_keV;
|
||||
}
|
||||
|
||||
DetectorSettings &DetectorSettings::EigerThreshold_keV(const std::optional<float> &input) {
|
||||
check_min("EIGER Threshold (keV)", input, 1.0);
|
||||
check_max("EIGER Threshold (keV)", input, 100.0);
|
||||
eiger_threshold_keV = input;
|
||||
return *this;
|
||||
}
|
||||
|
||||
DetectorSettings &DetectorSettings::Timing(DetectorTiming input) {
|
||||
switch(input) {
|
||||
case DetectorTiming::Auto:
|
||||
case DetectorTiming::Trigger:
|
||||
case DetectorTiming::Burst:
|
||||
case DetectorTiming::Gated:
|
||||
timing = input;
|
||||
break;
|
||||
default:
|
||||
// Handle invalid input, e.g., throw an exception, log an error, set a default value, etc.
|
||||
throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,
|
||||
"Invalid DetectorTiming value");
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
DetectorTiming DetectorSettings::GetTiming() const {
|
||||
return timing;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user