Commit 5bec5161 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

TestAlgorithm: fix inverted logic

parent dd7a71de
Pipeline #239260 passed with stages
in 1 minute and 39 seconds
......@@ -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);
} //*/
}
}
}
}
......
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