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
3e3366da
Commit
3e3366da
authored
Oct 25, 2017
by
Daniel Hynds
Browse files
check if tot is 0 for a cluster
parent
21946f73
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/algorithms/Timepix3Clustering.cpp
View file @
3e3366da
...
...
@@ -183,6 +183,10 @@ void Timepix3Clustering::calculateClusterCentre(Cluster* cluster) {
timestamp
=
(
*
pixels
)[
pix
]
->
m_timestamp
;
}
// Row and column positions are tot-weighted
if
(
tot
==
0
){
LOG
(
WARNING
)
<<
"Cluster with ToT 0!"
;
tot
=
1.
;
}
row
/=
tot
;
column
/=
tot
;
...
...
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