Commit ea2661ad authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'fix_hNoAssocCls_histo' into 'master'

Follow-up: DUTAssociation -> historam hNoAssocCls should have entries = number of tracks

See merge request !150
parents 62a9b4ea 734f5cd7
Pipeline #1051093 passed with stages
in 24 minutes and 44 seconds
...@@ -83,16 +83,18 @@ StatusCode DUTAssociation::run(std::shared_ptr<Clipboard> clipboard) { ...@@ -83,16 +83,18 @@ StatusCode DUTAssociation::run(std::shared_ptr<Clipboard> clipboard) {
// Get the DUT clusters from the clipboard // Get the DUT clusters from the clipboard
Clusters* clusters = reinterpret_cast<Clusters*>(clipboard->get(m_detector->name(), "clusters")); 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 // Loop over all tracks
for(auto& track : (*tracks)) { for(auto& track : (*tracks)) {
int assoc_cls_per_track = 0; int assoc_cls_per_track = 0;
auto min_distance = std::numeric_limits<double>::max(); 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 // Loop over all DUT clusters
for(auto& cluster : (*clusters)) { for(auto& cluster : (*clusters)) {
// Check distance between track and cluster // Check distance between track and cluster
......
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