Commit c752c056 authored by Simon Spannagel's avatar Simon Spannagel Committed by Jens Kroeger
Browse files

Detector: make calibration_file optional

(cherry picked from commit 08f6457e)
parent cb4636bb
...@@ -112,7 +112,9 @@ Detector::Detector(const Configuration& config) : m_role(DetectorRole::NONE) { ...@@ -112,7 +112,9 @@ Detector::Detector(const Configuration& config) : m_role(DetectorRole::NONE) {
LOG(TRACE) << " Time resolution: " << Units::display(m_timeResolution, {"ms", "us"}); LOG(TRACE) << " Time resolution: " << Units::display(m_timeResolution, {"ms", "us"});
} }
m_calibrationfile = config.getPath("calibration_file"); if(config.has("calibration_file")) {
m_calibrationfile = config.getPath("calibration_file");
}
if(!isAuxiliary()) { if(!isAuxiliary()) {
if(config.has("mask_file")) { if(config.has("mask_file")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment