Skip to content

Commit

Permalink
Merge branch 'main' into patch-6
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Oct 30, 2024
2 parents dad4990 + 1ace19a commit 42b5486
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ class CombinatorialKalmanFilter {
measurementSelector(trackStateCandidates, isOutlier, logger);
if (!selectorResult.ok()) {
ACTS_ERROR("Selection of calibrated measurements failed: "
<< selectorResult.error());
<< selectorResult.error().message());
resultTrackStateList =
ResultTrackStateList::failure(selectorResult.error());
} else {
Expand Down
5 changes: 5 additions & 0 deletions Core/src/TrackFinding/MeasurementSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ MeasurementSelector::MeasurementSelector(const MeasurementSelectorCuts& cuts)
: MeasurementSelector({{GeometryIdentifier(), cuts}}) {}

MeasurementSelector::MeasurementSelector(const Config& config) {
if (config.empty()) {
throw std::invalid_argument(
"MeasurementSelector: Configuration must not be empty");
}

std::vector<InternalConfig::InputElement> tmp;
tmp.reserve(config.size());
for (std::size_t i = 0; i < config.size(); ++i) {
Expand Down

0 comments on commit 42b5486

Please sign in to comment.