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
5bec5161
Commit
5bec5161
authored
Nov 15, 2017
by
Simon Spannagel
Browse files
TestAlgorithm: fix inverted logic
parent
dd7a71de
Pipeline
#239260
passed with stages
in 1 minute and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/algorithms/TestAlgorithm/TestAlgorithm.cpp
View file @
5bec5161
...
...
@@ -100,17 +100,13 @@ StatusCode TestAlgorithm::run(Clipboard* clipboard) {
if
(
referenceClusters
==
NULL
)
{
LOG
(
DEBUG
)
<<
"Reference detector "
<<
m_config
.
get
<
std
::
string
>
(
"reference"
)
<<
" does not have any clusters on the clipboard"
;
//
continue;
continue
;
}
// Loop over all clusters and fill histograms
if
(
!
makeCorrelations
)
{
if
(
makeCorrelations
)
{
for
(
auto
&
cluster
:
(
*
clusters
))
{
// Loop over reference plane pixels to make correlation plots
if
(
referenceClusters
==
NULL
)
continue
;
for
(
auto
&
refCluster
:
(
*
referenceClusters
))
{
long
long
int
timeDifferenceInt
=
(
refCluster
->
timestamp
()
-
cluster
->
timestamp
())
/
4096
;
...
...
@@ -129,7 +125,7 @@ StatusCode TestAlgorithm::run(Clipboard* clipboard) {
}
correlationTime
[
detector
->
name
()]
->
Fill
(
timeDifference
);
correlationTimeInt
[
detector
->
name
()]
->
Fill
(
timeDifferenceInt
);
}
//*/
}
}
}
}
...
...
Write
Preview
Supports
Markdown
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