mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-19 21:16:18 +02:00
enum TiminMode same as in slsDetectorPackage (#360)
**BugFix: ** - enum TimingMode same as in slsDetectorPackage - supports reading all timing modes from RawMasterFile
This commit is contained in:
1 parent
641ef047b5
commit
4eb2bfcfcc
6 files changed
+45
-22
No files matched your search
+8
-2
@@ -35,9 +35,15 @@ template <> DetectorType string_to(const std::string &arg) {
|
||||
|
||||
template <> TimingMode string_to(const std::string &arg) {
|
||||
if (arg == "auto")
|
||||
return TimingMode::Auto;
|
||||
return TimingMode::AUTO_TIMING;
|
||||
if (arg == "trigger")
|
||||
return TimingMode::Trigger;
|
||||
return TimingMode::TRIGGER_EXPOSURE;
|
||||
if (arg == "gating")
|
||||
return TimingMode::GATED;
|
||||
if (arg == "burst_trigger")
|
||||
return TimingMode::BURST_TRIGGER;
|
||||
if (arg == "trigger_gating")
|
||||
return TimingMode::TRIGGER_GATED;
|
||||
throw std::runtime_error("Could not decode timing mode from: \"" + arg +
|
||||
"\"");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user