Skip to content
Snippets Groups Projects
Commit 1450141e authored by Paul Schuetze's avatar Paul Schuetze
Browse files

PixelModuleDetector: throw an ERROR when cartesian_module is DUT

parent 4caa9937
No related branches found
No related tags found
No related merge requests found
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
#include "Math/RotationZ.h" #include "Math/RotationZ.h"
#include "Math/RotationZYX.h" #include "Math/RotationZYX.h"
#include "PixelModuleDetector.hpp"
#include "Detector.hpp" #include "Detector.hpp"
#include "HexagonalPixelDetector.hpp" #include "HexagonalPixelDetector.hpp"
#include "PixelModuleDetector.hpp"
#include "core/utils/log.h" #include "core/utils/log.h"
#include "exceptions.h" #include "exceptions.h"
...@@ -61,6 +61,12 @@ Detector::Detector(const Configuration& config) : m_role(DetectorRole::NONE) { ...@@ -61,6 +61,12 @@ Detector::Detector(const Configuration& config) : m_role(DetectorRole::NONE) {
std::transform(m_detectorType.begin(), m_detectorType.end(), m_detectorType.begin(), ::tolower); std::transform(m_detectorType.begin(), m_detectorType.end(), m_detectorType.begin(), ::tolower);
m_detectorCoordinates = config.get<std::string>("coordinates", "cartesian"); m_detectorCoordinates = config.get<std::string>("coordinates", "cartesian");
std::transform(m_detectorCoordinates.begin(), m_detectorCoordinates.end(), m_detectorCoordinates.begin(), ::tolower); std::transform(m_detectorCoordinates.begin(), m_detectorCoordinates.end(), m_detectorCoordinates.begin(), ::tolower);
if(this->isDUT()) {
LOG(ERROR) << "A PixelModuleDetector was configured to be a DUT (" << this->getName()
<< "). Please be aware that regions with large pixels might be treated unexpectedly.";
}
m_timeOffset = config.get<double>("time_offset", 0.0); m_timeOffset = config.get<double>("time_offset", 0.0);
if(m_timeOffset > 0.) { if(m_timeOffset > 0.) {
LOG(TRACE) << "Time offset: " << m_timeOffset; LOG(TRACE) << "Time offset: " << m_timeOffset;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment