ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonR4::StationHoughResults< ResultType > Class Template Reference

Small data class to collect the hough maxima for one given station. More...

#include <StationHoughMaxima.h>

Collaboration diagram for MuonR4::StationHoughResults< ResultType >:

Public Member Functions

 StationHoughResults (const MuonGMR4::MuonChamber *chamber, const std::vector< ResultType > &maxima={})
 constructor More...
 
void addMaximum (const ResultType &m)
 adds a maximum to the list More...
 
const MuonGMR4::MuonChamberchamber () const
 Returns the associated chamber. More...
 
const std::vector< ResultType > & getMaxima () const
 getter More...
 
bool operator< (const StationHoughResults< ResultType > &other) const
 sorting operator - uses identifiers for sorting, not the maxima themselves More...
 

Private Attributes

const MuonGMR4::MuonChamberm_chamber {}
 
std::vector< ResultType > m_maxima {}
 

Detailed Description

template<class ResultType>
class MuonR4::StationHoughResults< ResultType >

Small data class to collect the hough maxima for one given station.

Contains a list of maxima and a station identifier. Sorts by station identifier to allow set / map insertion

Definition at line 18 of file StationHoughMaxima.h.

Constructor & Destructor Documentation

◆ StationHoughResults()

template<class ResultType >
MuonR4::StationHoughResults< ResultType >::StationHoughResults ( const MuonGMR4::MuonChamber chamber,
const std::vector< ResultType > &  maxima = {} 
)
inline

constructor

Parameters
chamberAssociated chamber serving as Identifier
maximalist of maxima (can be extended later)

Definition at line 23 of file StationHoughMaxima.h.

24  {})
25  : m_chamber{chamber}, m_maxima(maxima) {}

Member Function Documentation

◆ addMaximum()

template<class ResultType >
void MuonR4::StationHoughResults< ResultType >::addMaximum ( const ResultType &  m)
inline

adds a maximum to the list

Parameters
mMaximum to add

Definition at line 29 of file StationHoughMaxima.h.

29 { m_maxima.push_back(m); }

◆ chamber()

template<class ResultType >
const MuonGMR4::MuonChamber* MuonR4::StationHoughResults< ResultType >::chamber ( ) const
inline

Returns the associated chamber.

Definition at line 32 of file StationHoughMaxima.h.

32 { return m_chamber; }

◆ getMaxima()

template<class ResultType >
const std::vector<ResultType>& MuonR4::StationHoughResults< ResultType >::getMaxima ( ) const
inline

getter

Returns
the maxima for this station

Definition at line 36 of file StationHoughMaxima.h.

36 { return m_maxima; }

◆ operator<()

template<class ResultType >
bool MuonR4::StationHoughResults< ResultType >::operator< ( const StationHoughResults< ResultType > &  other) const
inline

sorting operator - uses identifiers for sorting, not the maxima themselves

Parameters
otherstation maxima list to compare to
Returns
Comparison between the station identifiers

Definition at line 42 of file StationHoughMaxima.h.

42  {
44  return ChamberSorter{}(m_chamber, other.m_chamber);
45  }

Member Data Documentation

◆ m_chamber

template<class ResultType >
const MuonGMR4::MuonChamber* MuonR4::StationHoughResults< ResultType >::m_chamber {}
private

Definition at line 49 of file StationHoughMaxima.h.

◆ m_maxima

template<class ResultType >
std::vector<ResultType> MuonR4::StationHoughResults< ResultType >::m_maxima {}
private

Definition at line 50 of file StationHoughMaxima.h.


The documentation for this class was generated from the following file:
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
MuonR4::StationHoughResults::chamber
const MuonGMR4::MuonChamber * chamber() const
Returns the associated chamber.
Definition: StationHoughMaxima.h:32
MuonR4::StationHoughResults::m_chamber
const MuonGMR4::MuonChamber * m_chamber
Definition: StationHoughMaxima.h:49
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
MuonGMR4::MuonDetectorManager::ChamberSorter
Helper struct to ensur that the sorting of the MuonChambers remains constants across the jobs.
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonDetectorManager.h:100
MuonR4::StationHoughResults::m_maxima
std::vector< ResultType > m_maxima
Definition: StationHoughMaxima.h:50