Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
cfaf61ca
Commit
cfaf61ca
authored
Mar 25, 2020
by
Jin Zhang
Browse files
suggestion to remove m_coordinate
parent
c35ebaf8
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/core/detector/Detector.cpp
View file @
cfaf61ca
...
...
@@ -59,7 +59,6 @@ Detector::Detector(const Configuration& config) : m_role(DetectorRole::NONE) {
}
m_detectorType
=
config
.
get
<
std
::
string
>
(
"type"
);
m_detectorCoordinate
=
config
.
get
<
std
::
string
>
(
"coordinate"
);
std
::
transform
(
m_detectorType
.
begin
(),
m_detectorType
.
end
(),
m_detectorType
.
begin
(),
::
tolower
);
m_timeOffset
=
config
.
get
<
double
>
(
"time_offset"
,
0.0
);
if
(
m_timeOffset
>
0.
)
{
...
...
@@ -93,9 +92,6 @@ std::string Detector::name() const {
std
::
string
Detector
::
type
()
const
{
return
m_detectorType
;
}
std
::
string
Detector
::
coordinate
()
const
{
return
m_detectorCoordinate
;
}
bool
Detector
::
isReference
()
const
{
return
static_cast
<
bool
>
(
m_role
&
DetectorRole
::
REFERENCE
);
...
...
src/core/detector/Detector.hpp
View file @
cfaf61ca
...
...
@@ -327,7 +327,6 @@ namespace corryvreckan {
// Detector information
std
::
string
m_detectorType
;
std
::
string
m_detectorName
;
std
::
string
m_detectorCoordinate
;
double
m_timeOffset
;
double
m_timeResolution
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment