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
734f5cd7
Commit
734f5cd7
authored
Aug 21, 2019
by
Katharina Dort
Browse files
Fixed hNoAssocCls by moving check if clusters are nullptr inside the loop over tracks.
parent
62a9b4ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/DUTAssociation/DUTAssociation.cpp
View file @
734f5cd7
...
...
@@ -83,16 +83,18 @@ StatusCode DUTAssociation::run(std::shared_ptr<Clipboard> clipboard) {
// Get the DUT clusters from the clipboard
Clusters
*
clusters
=
reinterpret_cast
<
Clusters
*>
(
clipboard
->
get
(
m_detector
->
name
(),
"clusters"
));
if
(
clusters
==
nullptr
)
{
LOG
(
DEBUG
)
<<
"No DUT clusters on the clipboard"
;
return
StatusCode
::
Success
;
}
// Loop over all tracks
for
(
auto
&
track
:
(
*
tracks
))
{
int
assoc_cls_per_track
=
0
;
auto
min_distance
=
std
::
numeric_limits
<
double
>::
max
();
if
(
clusters
==
nullptr
)
{
hNoAssocCls
->
Fill
(
0
);
LOG
(
DEBUG
)
<<
"No DUT clusters on the clipboard"
;
continue
;
}
// Loop over all DUT clusters
for
(
auto
&
cluster
:
(
*
clusters
))
{
// Check distance between track and cluster
...
...
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