Skip to content
Snippets Groups Projects

Support for acts@19.0.0

Merged Wouter Deconinck requested to merge acts-19.0.0 into master
9 files
+ 31
35
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -11,6 +11,7 @@
#include "JugTrack/Utilities/GroupBy.hpp"
#include "JugTrack/Utilities/Range.hpp"
#include "Acts/Geometry/GeometryIdentifier.hpp"
#include "Acts/Surfaces/Surface.hpp"
#include <algorithm>
#include <cstddef>
@@ -177,21 +178,11 @@ struct GeometryIdMultisetAccessor {
// pointer to the container
const Container* container = nullptr;
// count the number of elements with requested geoId
size_t count(const Acts::GeometryIdentifier& geoId) const {
assert(container != nullptr);
return container->count(geoId);
}
// get the range of elements with requested geoId
std::pair<Iterator, Iterator> range(
const Acts::GeometryIdentifier& geoId) const {
std::pair<Iterator, Iterator> range(const Acts::Surface& surface) const {
assert(container != nullptr);
return container->equal_range(geoId);
return container->equal_range(surface.geometryId());
}
// get the element using the iterator
const Value& at(const Iterator& it) const { return *it; }
};
} // namespace FW
Loading