ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::HoughTransformUtils::HoughCell< identifier_t > Class Template Reference

data class for the information to store for each cell of the hough histogram. More...

#include <Acts/Seeding/HoughTransformUtils.hpp>

Public Member Functions

 HoughCell ()=default
 construct the cell as empty
void fill (const identifier_t &identifier, unsigned int layer, YieldType weight=1.)
 add an entry to this cell
std::span< const identifier_t, std::dynamic_extent > getHits () const
 Access the span of unique hits compatible with this cell.
std::span< const unsigned, std::dynamic_extent > getLayers () const
 access the span of layers compatible with this cell
YieldType nHits () const
 access the number of unique hits compatible with this cell
YieldType nLayers () const
 access the number of layers with hits compatible with this cell
void reset ()
 reset this cell, removing any existing content.

Detailed Description

template<class identifier_t>
class Acts::HoughTransformUtils::HoughCell< identifier_t >

data class for the information to store for each cell of the hough histogram.

Template Parameters
identifier_tType of the identifier to associate to the hits Should be sortable. Used to uniquely identify each hit and to eventually return the list of hits per cell

Constructor & Destructor Documentation

◆ HoughCell()

template<class identifier_t>
Acts::HoughTransformUtils::HoughCell< identifier_t >::HoughCell ( )
default

construct the cell as empty

Member Function Documentation

◆ fill()

template<class identifier_t>
void Acts::HoughTransformUtils::HoughCell< identifier_t >::fill ( const identifier_t & identifier,
unsigned int layer,
YieldType weight = 1. )

add an entry to this cell

Parameters
identifierIdentifier of the hit (used to distinguish hits from another)
layerLayer of the hit (used when counting layers)
weightOptional weight to assign to the hit

◆ getHits()

template<class identifier_t>
std::span< const identifier_t, std::dynamic_extent > Acts::HoughTransformUtils::HoughCell< identifier_t >::getHits ( ) const

Access the span of unique hits compatible with this cell.

Returns
Span containing the identifiers of hits in this cell

◆ getLayers()

template<class identifier_t>
std::span< const unsigned, std::dynamic_extent > Acts::HoughTransformUtils::HoughCell< identifier_t >::getLayers ( ) const

access the span of layers compatible with this cell

Returns
Span containing the layer indices with hits in this cell

◆ nHits()

template<class identifier_t>
YieldType Acts::HoughTransformUtils::HoughCell< identifier_t >::nHits ( ) const

access the number of unique hits compatible with this cell

Returns
The (weighted) number of unique hits in this cell

◆ nLayers()

template<class identifier_t>
YieldType Acts::HoughTransformUtils::HoughCell< identifier_t >::nLayers ( ) const

access the number of layers with hits compatible with this cell

Returns
The (weighted) number of layers with hits in this cell

◆ reset()

template<class identifier_t>
void Acts::HoughTransformUtils::HoughCell< identifier_t >::reset ( )

reset this cell, removing any existing content.