Skip to content

Commit

Permalink
fix: MeasSel error output, config check
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Oct 30, 2024
1 parent 0b8e768 commit 1ace19a
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 1ace19a

Please sign in to comment.