Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
e8a2b064
Commit
e8a2b064
authored
May 14, 2019
by
Jens Kroeger
Browse files
AnalysisEfficiency: removed static_cast where unnecessary
parent
32593e18
Changes
1
Show whitespace changes
Inline
Side-by-side
src/modules/AnalysisEfficiency/AnalysisEfficiency.cpp
View file @
e8a2b064
...
...
@@ -294,9 +294,7 @@ StatusCode AnalysisEfficiency::run(std::shared_ptr<Clipboard> clipboard) {
m_detector
->
getRow
(
localIntercept
)
-
last_track_row
);
if
((
prev_hit_ts
.
at
(
intercept_col
)).
at
(
intercept_row
)
!=
0
)
{
LOG
(
DEBUG
)
<<
"Found a time difference of "
<<
static_cast
<
double
>
(
Units
::
convert
(
track
->
timestamp
()
-
prev_hit_ts
.
at
(
intercept_col
).
at
(
intercept_row
),
"us"
))
<<
" us"
;
<<
Units
::
display
(
track
->
timestamp
()
-
prev_hit_ts
.
at
(
intercept_col
).
at
(
intercept_row
),
"us"
);
hTrackTimeToPrevHit_notmatched
->
Fill
(
static_cast
<
double
>
(
Units
::
convert
(
track
->
timestamp
()
-
prev_hit_ts
.
at
(
intercept_col
).
at
(
intercept_row
),
"us"
)));
}
...
...
@@ -321,8 +319,7 @@ StatusCode AnalysisEfficiency::run(std::shared_ptr<Clipboard> clipboard) {
}
void
AnalysisEfficiency
::
finalise
()
{
double
totalEff
=
100
*
static_cast
<
double
>
(
matched_tracks
)
/
(
total_tracks
>
0
?
static_cast
<
double
>
(
total_tracks
)
:
1.
);
double
totalEff
=
100
*
static_cast
<
double
>
(
matched_tracks
)
/
(
total_tracks
>
0
?
total_tracks
:
1
);
LOG
(
STATUS
)
<<
"Total efficiency of detector "
<<
m_detector
->
name
()
<<
": "
<<
totalEff
<<
"%, measured with "
<<
matched_tracks
<<
"/"
<<
total_tracks
<<
" matched/total tracks"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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