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
Naomi Davis
Corryvreckan
Commits
181da4e0
Commit
181da4e0
authored
2 years ago
by
Lennart Huth
Browse files
Options
Downloads
Patches
Plain Diff
FilterEvents: Cut histogram filled correctly now
parent
a19264a5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/FilterEvents/FilterEvents.cpp
+4
-4
4 additions, 4 deletions
src/modules/FilterEvents/FilterEvents.cpp
with
4 additions
and
4 deletions
src/modules/FilterEvents/FilterEvents.cpp
+
4
−
4
View file @
181da4e0
...
@@ -82,11 +82,11 @@ bool FilterEvents::filter_tracks(const std::shared_ptr<Clipboard>& clipboard) {
...
@@ -82,11 +82,11 @@ bool FilterEvents::filter_tracks(const std::shared_ptr<Clipboard>& clipboard) {
}
}
if
(
num_tracks
>
max_number_tracks_
)
{
if
(
num_tracks
>
max_number_tracks_
)
{
hFilter_
->
Fill
(
2
);
// too many tracks
hFilter_
->
Fill
(
3
);
// too many tracks
LOG
(
TRACE
)
<<
"Number of tracks above maximum"
;
LOG
(
TRACE
)
<<
"Number of tracks above maximum"
;
return
true
;
return
true
;
}
else
if
(
num_tracks
<
min_number_tracks_
)
{
}
else
if
(
num_tracks
<
min_number_tracks_
)
{
hFilter_
->
Fill
(
3
);
// too few tracks
hFilter_
->
Fill
(
2
);
// too few tracks
LOG
(
TRACE
)
<<
"Number of tracks below minimum"
;
LOG
(
TRACE
)
<<
"Number of tracks below minimum"
;
return
true
;
return
true
;
}
}
...
@@ -100,12 +100,12 @@ bool FilterEvents::filter_cluster(const std::shared_ptr<Clipboard>& clipboard) {
...
@@ -100,12 +100,12 @@ bool FilterEvents::filter_cluster(const std::shared_ptr<Clipboard>& clipboard) {
// Check if number of Clusters on plane is within acceptance
// Check if number of Clusters on plane is within acceptance
auto
num_clusters
=
clipboard
->
getData
<
Cluster
>
(
det
).
size
();
auto
num_clusters
=
clipboard
->
getData
<
Cluster
>
(
det
).
size
();
if
(
num_clusters
>
max_clusters_per_reference_
)
{
if
(
num_clusters
>
max_clusters_per_reference_
)
{
hFilter_
->
Fill
(
4
);
// too many clusters
hFilter_
->
Fill
(
5
);
// too many clusters
LOG
(
TRACE
)
<<
"Number of Clusters on above maximum"
;
LOG
(
TRACE
)
<<
"Number of Clusters on above maximum"
;
return
true
;
return
true
;
}
}
if
(
num_clusters
<
min_clusters_per_reference_
)
{
if
(
num_clusters
<
min_clusters_per_reference_
)
{
hFilter_
->
Fill
(
5
);
// too few clusters
hFilter_
->
Fill
(
4
);
// too few clusters
LOG
(
TRACE
)
<<
"Number of Clusters on below minimum"
;
LOG
(
TRACE
)
<<
"Number of Clusters on below minimum"
;
return
true
;
return
true
;
}
}
...
...
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