Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Corryvreckan
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Fabian Simon Lex
Corryvreckan
Commits
1450141e
Commit
1450141e
authored
1 year ago
by
Paul Schuetze
Browse files
Options
Downloads
Patches
Plain Diff
PixelModuleDetector: throw an ERROR when cartesian_module is DUT
parent
4caa9937
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/core/detector/Detector.cpp
+7
-1
7 additions, 1 deletion
src/core/detector/Detector.cpp
with
7 additions
and
1 deletion
src/core/detector/Detector.cpp
+
7
−
1
View file @
1450141e
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment