ATLAS Offline Software
StationHoughMaxima.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONR4_STATIONHOUGHMAXIMA__H
5 #define MUONR4_STATIONHOUGHMAXIMA__H
6 
11 
12 namespace MuonR4 {
13 
17 template <class ResultType>
19  public:
24  const std::vector<ResultType>& maxima = {})
25  : m_chamber{chamber}, m_maxima(maxima) {}
26 
29  void addMaximum(const ResultType& m) { m_maxima.push_back(m); }
30 
32  const MuonGMR4::MuonChamber* chamber() const { return m_chamber; }
33 
36  const std::vector<ResultType>& getMaxima() const { return m_maxima; }
37 
44  return ChamberSorter{}(m_chamber, other.m_chamber);
45  }
46 
47  private:
49  m_chamber{}; // the identifier for this station
50  std::vector<ResultType> m_maxima{}; // the list of found maxima
51 };
52 
53 // specialisation for eta-maxima
55 // specialisation for full segment seeds
57 
58 } // namespace MuonR4
59 
60 #endif
HoughSegmentSeed.h
python.SystemOfUnits.m
int m
Definition: SystemOfUnits.py:91
HoughMaximum.h
MuonR4::StationHoughResults::operator<
bool operator<(const StationHoughResults< ResultType > &other) const
sorting operator - uses identifiers for sorting, not the maxima themselves
Definition: StationHoughMaxima.h:42
MuonR4::StationHoughResults::addMaximum
void addMaximum(const ResultType &m)
adds a maximum to the list
Definition: StationHoughMaxima.h:29
MuonGMR4::MuonChamber
Definition: MuonPhaseII/MuonDetDescr/MuonReadoutGeometryR4/MuonReadoutGeometryR4/MuonChamber.h:42
MuonR4::StationHoughResults::chamber
const MuonGMR4::MuonChamber * chamber() const
Returns the associated chamber.
Definition: StationHoughMaxima.h:32
MuonR4::StationHoughResults
Small data class to collect the hough maxima for one given station.
Definition: StationHoughMaxima.h:18
MuonChamber.h
MuonR4::StationHoughResults::getMaxima
const std::vector< ResultType > & getMaxima() const
getter
Definition: StationHoughMaxima.h:36
MuonR4::StationHoughResults::m_chamber
const MuonGMR4::MuonChamber * m_chamber
Definition: StationHoughMaxima.h:49
MuonR4::StationHoughResults::StationHoughResults
StationHoughResults(const MuonGMR4::MuonChamber *chamber, const std::vector< ResultType > &maxima={})
constructor
Definition: StationHoughMaxima.h:23
MuonHoughDefs.h
MuonR4
The CsvMuonSimHitDumper reads a Simulation Hit container for muons and dumps information to csv files...
Definition: MuonSpacePoint.h:11
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