Skip to content

Commit

Permalink
Merge branch 'main' into build/update_traccc_externals
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Aug 5, 2024
2 parents f291f92 + e4bbec9 commit ba4e420
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
Binary file modified CI/physmon/reference/performance_ambi_ttbar.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_gridseeder_ttbar_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_ttbar_hist.root
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of the Acts project.
//
// Copyright (C) 2020 CERN for the benefit of the Acts project
// Copyright (C) 2023-2024 CERN for the benefit of the Acts project
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of the Acts project.
//
// Copyright (C) 2020 CERN for the benefit of the Acts project
// Copyright (C) 2023-2024 CERN for the benefit of the Acts project
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
Expand All @@ -9,6 +9,7 @@
#pragma once

#include "Acts/AmbiguityResolution/GreedyAmbiguityResolution.hpp"
#include "Acts/EventData/TrackStateType.hpp"

#include <unordered_map>

Expand Down Expand Up @@ -36,7 +37,9 @@ void GreedyAmbiguityResolution::computeInitialState(
}
std::vector<std::size_t> measurements;
for (auto ts : track.trackStatesReversed()) {
if (ts.typeFlags().test(Acts::TrackStateFlag::MeasurementFlag)) {
bool isMeasurement = ts.typeFlags().test(TrackStateFlag::MeasurementFlag);
bool isOutlier = ts.typeFlags().test(TrackStateFlag::OutlierFlag);
if (isMeasurement && !isOutlier) {
SourceLink sourceLink = ts.getUncalibratedSourceLink();
// assign a new measurement index if the source link was not seen yet
auto emplace = measurementIndexMap.try_emplace(
Expand Down
2 changes: 1 addition & 1 deletion Core/src/AmbiguityResolution/GreedyAmbiguityResolution.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file is part of the Acts project.
//
// Copyright (C) 2023 CERN for the benefit of the Acts project
// Copyright (C) 2023-2024 CERN for the benefit of the Acts project
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down

0 comments on commit ba4e420

Please sign in to comment.