Commit d2939b83 authored by Daniel Hynds's avatar Daniel Hynds
Browse files

ignore pixels with ADC 0

parent f8efbb18
Pipeline #233693 passed with stage
in 1 minute and 35 seconds
...@@ -72,6 +72,8 @@ StatusCode Timepix3Clustering::run(Clipboard* clipboard) { ...@@ -72,6 +72,8 @@ StatusCode Timepix3Clustering::run(Clipboard* clipboard) {
if(used[pixel]) if(used[pixel])
continue; continue;
if(pixel->m_adc == 0.) continue;
// Make the new cluster object // Make the new cluster object
Cluster* cluster = new Cluster(); Cluster* cluster = new Cluster();
LOG(DEBUG) << "==== New cluster"; LOG(DEBUG) << "==== New cluster";
...@@ -95,6 +97,9 @@ StatusCode Timepix3Clustering::run(Clipboard* clipboard) { ...@@ -95,6 +97,9 @@ StatusCode Timepix3Clustering::run(Clipboard* clipboard) {
// Check if they have been used // Check if they have been used
if(used[neighbour]) if(used[neighbour])
continue; continue;
if(neighbour->m_adc == 0.) continue;
// Check if they are touching cluster pixels // Check if they are touching cluster pixels
if(!touching(neighbour, cluster)) if(!touching(neighbour, cluster))
continue; continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment