Skip to content

Commit

Permalink
only seed of externals
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni committed Nov 2, 2024
1 parent b7aa9f8 commit d0c0a6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
7 changes: 0 additions & 7 deletions Core/include/Acts/Seeding/SeedFilter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,6 @@ class SeedFilter final {
private:
const Logger& logger() const { return *m_logger; }

template <typename collection_t>
void createAndStoreSeeds(collection_t& outputCollection,
const external_spacepoint_t& bottom,
const external_spacepoint_t& middle,
const external_spacepoint_t& top, float zOrigin,
float bestSeedQuality) const;

template <typename collection_t>
requires Acts::CollectionStoresSeedsToProxied<collection_t,
external_spacepoint_t, 3ul>
Expand Down
13 changes: 0 additions & 13 deletions Core/include/Acts/Seeding/SeedFilter.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,6 @@ void SeedFilter<external_spacepoint_t>::filterSeeds_1SpFixed(
ACTS_VERBOSE("Identified " << numTotalSeeds << " seeds");
}

template <typename external_spacepoint_t>
template <typename collection_t>
void SeedFilter<external_spacepoint_t>::createAndStoreSeeds(
collection_t& outputCollection, const external_spacepoint_t& bottom,
const external_spacepoint_t& middle, const external_spacepoint_t& top,
float zOrigin, float bestSeedQuality) const {
Acts::Seed<external_spacepoint_t, 3ul> seed(bottom, middle, top);
seed.setVertexZ(zOrigin);
seed.setQuality(bestSeedQuality);

Acts::detail::pushBackOrInsertAtEnd(outputCollection, std::move(seed));
}

template <typename external_spacepoint_t>
template <typename collection_t>
requires Acts::CollectionStoresSeedsToProxied<collection_t,
Expand Down
12 changes: 6 additions & 6 deletions Tests/UnitTests/Core/Seeding/SeedFinderTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int main(int argc, char** argv) {
<< " in " << elapsed_read.count() << "s" << std::endl;

using value_type = typename decltype(spContainer)::SpacePointProxyType;
using seed_type = Acts::Seed<value_type>;
using seed_type = Acts::Seed<SpacePoint>;

Acts::SeedFinderConfig<value_type> config;
// silicon detector max
Expand Down Expand Up @@ -236,15 +236,15 @@ int main(int argc, char** argv) {
for (auto& regionVec : seedVector) {
for (std::size_t i = 0; i < regionVec.size(); i++) {
const seed_type* seed = &regionVec[i];
const value_type* sp = seed->sp()[0];
const auto* sp = seed->sp()[0];
std::cout << " (" << sp->x() << ", " << sp->y() << ", " << sp->z()
<< ") ";
sp = seed->sp()[1];
std::cout << sp->externalSpacePoint()->layer << " (" << sp->x() << ", "
<< sp->y() << ", " << sp->z() << ") ";
std::cout << sp->layer << " (" << sp->x() << ", " << sp->y() << ", "
<< sp->z() << ") ";
sp = seed->sp()[2];
std::cout << sp->externalSpacePoint()->layer << " (" << sp->x() << ", "
<< sp->y() << ", " << sp->z() << ") ";
std::cout << sp->layer << " (" << sp->x() << ", " << sp->y() << ", "
<< sp->z() << ") ";
std::cout << std::endl;
}
}
Expand Down

0 comments on commit d0c0a6e

Please sign in to comment.