Class Acts::SeedFinder

template<typename external_spacepoint_t, typename platform_t = void*>
class SeedFinder

Disallow default instantiation, copy, assignment

SeedFinder() = default
SeedFinder(const SeedFinder<external_spacepoint_t, platform_t>&) = delete
SeedFinder<external_spacepoint_t, platform_t> &operator=(const SeedFinder<external_spacepoint_t, platform_t>&) = default

Public Functions

SeedFinder(const Acts::SeedFinderConfig<external_spacepoint_t> &config)

The only constructor.

Requires a config object.

Parameters

config – the configuration for the SeedFinder

~SeedFinder() = default
template<template<typename...> typename container_t, typename sp_range_t>
void createSeedsForGroup(const Acts::SeedFinderOptions &options, SeedingState &state, const Acts::SpacePointGrid<external_spacepoint_t> &grid, std::back_insert_iterator<container_t<Seed<external_spacepoint_t>>> outIt, const sp_range_t &bottomSPs, const std::size_t middleSPs, const sp_range_t &topSPs, const Acts::Range1D<float> &rMiddleSPRange) const

Create all seeds from the space points in the three iterators.

Can be used to parallelize the seed creation

Note

Ranges must return pointers.

Note

Ranges must be separate objects for each parallel call.

Parameters
  • options – frequently changing configuration (like beam position)

  • state – State object that holds memory used

  • grid – The grid with space points

  • outIt – Output iterator for the seeds in the group

  • bottomSPs – group of space points to be used as innermost SP in a seed.

  • middleSPs – group of space points to be used as middle SP in a seed.

  • topSPs – group of space points to be used as outermost SP in a seed.

  • rMiddleSPRange – range object containing the minimum and maximum r for middle SP for a certain z bin.

template<typename sp_range_t>
std::vector<Seed<external_spacepoint_t>> createSeedsForGroup(const Acts::SeedFinderOptions &options, const Acts::SpacePointGrid<external_spacepoint_t> &grid, const sp_range_t &bottomSPs, const std::size_t middleSPs, const sp_range_t &topSPs) const

Compatibility method for the new-style seed finding API.

This method models the old-style seeding API where we only need a container for the bottom, middle, and top space points. Also, the results are returned by value instead of inserted into an inserter.

Note

This method is a very simply wrapper around the more modern API.

Warning

The performance of the seeding code is far greater if the new API is used, and this is recommended for all new uses which do not require backwards-compatibility.

Template Parameters

sp_range_t – container type for the seed point collections.

Parameters
  • options – frequently changing configuration (like beam position)

  • grid – The grid with space points

  • bottomSPs – group of space points to be used as innermost SP in a seed.

  • middleSPs – group of space points to be used as middle SP in a seed.

  • topSPs – group of space points to be used as outermost SP in a seed.

Returns

a vector of seeds.

struct SeedingState

Public Members

boost::container::small_vector<Acts::Neighbour<external_spacepoint_t>, 9> bottomNeighbours
CandidatesForMiddleSp<const InternalSpacePoint<external_spacepoint_t>> candidates_collector
std::vector<InternalSpacePoint<external_spacepoint_t>*> compatBottomSP
std::vector<InternalSpacePoint<external_spacepoint_t>*> compatTopSP
std::vector<float> curvatures
std::vector<float> impactParameters
std::vector<LinCircle> linCircleBottom
std::vector<LinCircle> linCircleTop
Acts::SpacePointData spacePointData
boost::container::small_vector<Acts::Neighbour<external_spacepoint_t>, 9> topNeighbours
std::vector<const InternalSpacePoint<external_spacepoint_t>*> topSpVec