Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Experimental::detail::IndexedGridFiller Struct Reference

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

#include <acts/blob/sPHENIX/Core/include/Acts/Detector/detail/IndexedGridFiller.hpp>

+ Collaboration diagram for Acts::Experimental::detail::IndexedGridFiller:

Public Member Functions

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.
 
template<typename index_grid , typename indices >
void assignToAll (index_grid &iGrid, const indices &idcs) const
 
const Loggerlogger () const
 

Public Attributes

std::vector< std::size_t > binExpansion = {}
 Bin expansion where needed.
 
std::unique_ptr< const LoggeroLogger
 Screen output logger.
 

Detailed Description

A helper class that fills surfaces into predefined grids.

Definition at line 161 of file IndexedGridFiller.hpp.

View newest version in sPHENIX GitHub at line 161 of file IndexedGridFiller.hpp

Member Function Documentation

template<typename index_grid , typename indices >
void Acts::Experimental::detail::IndexedGridFiller::assignToAll ( index_grid &  iGrid,
const indices &  idcs 
) const
inline

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.

Definition at line 236 of file IndexedGridFiller.hpp.

View newest version in sPHENIX GitHub at line 236 of file IndexedGridFiller.hpp

template<typename index_grid , typename indexed_objects , typename reference_generator >
void Acts::Experimental::detail::IndexedGridFiller::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
inline

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

Definition at line 190 of file IndexedGridFiller.hpp.

View newest version in sPHENIX GitHub at line 190 of file IndexedGridFiller.hpp

const Logger& Acts::Experimental::detail::IndexedGridFiller::logger ( ) const
inline

Access to the logger

Returns
a const reference to the logger

Definition at line 250 of file IndexedGridFiller.hpp.

View newest version in sPHENIX GitHub at line 250 of file IndexedGridFiller.hpp

References oLogger.

Member Data Documentation

std::vector<std::size_t> Acts::Experimental::detail::IndexedGridFiller::binExpansion = {}

Bin expansion where needed.

Definition at line 163 of file IndexedGridFiller.hpp.

View newest version in sPHENIX GitHub at line 163 of file IndexedGridFiller.hpp

std::unique_ptr<const Logger> Acts::Experimental::detail::IndexedGridFiller::oLogger
Initial value:
=
getDefaultLogger("IndexedGridFiller", Logging::INFO)

Screen output logger.

Definition at line 166 of file IndexedGridFiller.hpp.

View newest version in sPHENIX GitHub at line 166 of file IndexedGridFiller.hpp

Referenced by BOOST_AUTO_TEST_CASE(), and logger().


The documentation for this struct was generated from the following file: