ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::IndexGridFiller Struct Reference

A helper class that fills surfaces into predefined grids. More...

#include <Acts/Geometry/IndexGrid.hpp>

Collaboration diagram for Acts::IndexGridFiller:
[legend]

Public Member Functions

template<typename index_grid, typename indices>
void assignToAll (index_grid &iGrid, const indices &idcs) const
 Helper method to fill a dedicated list of indices into the entire grid.
template<typename index_grid, typename indexed_objects, typename reference_generator>
void fill (const GeometryContext &gctx, index_grid &iGrid, const indexed_objects &iObjects, const reference_generator &rGenerator, const typename index_grid::grid_type::value_type &aToAll={}) const
 This method takes a collection of objects and fills them into an index grid - it uses a reference generator for grid query points and then completes the bins in between.
const Loggerlogger () const
 Access to the logger.

Public Attributes

std::vector< std::size_t > binExpansion = {}
 Bin expansion where needed - in integer bins.
std::unique_ptr< const LoggeroLogger
 Screen output logger.
std::vector< double > referenceExpansion = {}
 Reference expansion - is applied before bin expansion.

Detailed Description

A helper class that fills surfaces into predefined grids.

Member Function Documentation

◆ assignToAll()

template<typename index_grid, typename indices>
void Acts::IndexGridFiller::assignToAll ( index_grid & iGrid,
const indices & idcs ) const

Helper method to fill a dedicated list of indices into the entire grid.

This is useful if e.g. certain objects are to be attempted in any case, regardless of their binning.

◆ fill()

template<typename index_grid, typename indexed_objects, typename reference_generator>
void Acts::IndexGridFiller::fill ( const GeometryContext & gctx,
index_grid & iGrid,
const indexed_objects & iObjects,
const reference_generator & rGenerator,
const typename index_grid::grid_type::value_type & aToAll = {} ) const

This method takes a collection of objects and fills them into an index grid - it uses a reference generator for grid query points and then completes the bins in between.

It also allows for expanding the fill view.

Template Parameters
index_gridthe type of the index grid
indexed_objectsthe type of the object container
reference_generatorthe generator for reference points to be filled
Parameters
gctxthe geometry context of the operation
iGrid[in,out] the index grid object to be filled
iObjectsthe object container to be indexed
rGeneratorthe reference point generator for position queries
aToAllthe indices that are assigned to all bins
Note
as this is a Detector module, the objects within the indexed_objects container are assumed to have pointer semantics

◆ logger()

const Logger & Acts::IndexGridFiller::logger ( ) const

Access to the logger.

Returns
a const reference to the logger

Member Data Documentation

◆ binExpansion

std::vector<std::size_t> Acts::IndexGridFiller::binExpansion = {}

Bin expansion where needed - in integer bins.

◆ oLogger

std::unique_ptr<const Logger> Acts::IndexGridFiller::oLogger
Initial value:
=
getDefaultLogger("IndexGridFiller", Logging::INFO)
@ INFO
General information messages.
Definition Logger.hpp:159
std::unique_ptr< const Logger > getDefaultLogger(const std::string &name, const Logging::Level &lvl, std::ostream *log_stream=&std::cout)
get default debug output logger

Screen output logger.

◆ referenceExpansion

std::vector<double> Acts::IndexGridFiller::referenceExpansion = {}

Reference expansion - is applied before bin expansion.