ATLAS Offline Software
HoughMaximum.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MUONR4_MUONPATTERNRECOGNITION_HOUGHMAXIMUM__H
6 #define MUONR4_MUONPATTERNRECOGNITION_HOUGHMAXIMUM__H
7 #include <vector>
8 
11 
12 namespace MuonR4 {
14 class HoughMaximum {
15  public:
16  using HitType = const SpacePoint*;
23  HoughMaximum(double tanTheta, double interceptY, double counts,
24  std::vector<HitType>&& hits,
25  const SpacePointBucket* bucket):
28  m_counts{counts},
30  m_bucket{bucket} {}
33  HoughMaximum() = default;
36  double tanTheta() const { return m_tanTheta; }
37 
40  double interceptY() const { return m_interceptY; }
43  double getCounts() const { return m_counts; }
46  const std::vector<HitType>& getHitsInMax() const {
47  return m_hitsInMax;
48  }
51  const SpacePointBucket* parentBucket() const {
52  return m_bucket;
53  }
57  return m_bucket->msSector();
58  }
59 
60  private:
61  double m_tanTheta{0.}; // first coordinate
62  double m_interceptY{0.}; // second coordinate
63  double m_counts{0.}; // weighted counts
64  std::vector<HitType> m_hitsInMax{}; // list of hits on maximum
65  const SpacePointBucket* m_bucket{nullptr};
66 };
67 } // namespace MuonR4
68 
69 #endif
UncalibratedMeasurement.h
MuonR4::HoughMaximum::HoughMaximum
HoughMaximum()=default
default c-tor, creates empty maximum with zero counts in the origin
MuonR4::HoughMaximum::tanTheta
double tanTheta() const
getter
Definition: HoughMaximum.h:36
MuonR4::HoughMaximum::m_bucket
const SpacePointBucket * m_bucket
Definition: HoughMaximum.h:65
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
MuonGMR4::SpectrometerSector
A spectrometer sector forms the envelope of all chambers that are placed in the same MS sector & laye...
Definition: SpectrometerSector.h:39
MuonR4::SpacePointBucket
: The muon space point bucket represents a collection of points that will bre processed together in t...
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:21
MuonR4::SpacePointBucket::msSector
const MuonGMR4::SpectrometerSector * msSector() const
returns th associated muonChamber
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePointContainer.h:35
MuonR4::HoughMaximum::HoughMaximum
HoughMaximum(double tanTheta, double interceptY, double counts, std::vector< HitType > &&hits, const SpacePointBucket *bucket)
constructor.
Definition: HoughMaximum.h:23
MuonR4::HoughMaximum::getHitsInMax
const std::vector< HitType > & getHitsInMax() const
getter
Definition: HoughMaximum.h:46
MuonR4::HoughMaximum::parentBucket
const SpacePointBucket * parentBucket() const
getter
Definition: HoughMaximum.h:51
MuonR4::SpacePoint
The muon space point is the combination of two uncalibrated measurements one of them measures the eta...
Definition: MuonSpectrometer/MuonPhaseII/Event/MuonSpacePoint/MuonSpacePoint/SpacePoint.h:18
MuonR4::HoughMaximum::getCounts
double getCounts() const
getter
Definition: HoughMaximum.h:43
MuonR4
This header ties the generic definitions in this package.
Definition: HoughEventData.h:16
MuonR4::HoughMaximum
Data class to represent an eta maximum in hough space.
Definition: HoughMaximum.h:14
SpacePointContainer.h
MuonR4::HoughMaximum::m_hitsInMax
std::vector< HitType > m_hitsInMax
Definition: HoughMaximum.h:64
MuonR4::HoughMaximum::interceptY
double interceptY() const
getter
Definition: HoughMaximum.h:40
MuonR4::HoughMaximum::msSector
const MuonGMR4::SpectrometerSector * msSector() const
getter
Definition: HoughMaximum.h:56
MuonR4::HoughMaximum::m_interceptY
double m_interceptY
Definition: HoughMaximum.h:62
MuonR4::HoughMaximum::m_tanTheta
double m_tanTheta
Definition: HoughMaximum.h:61
MuonR4::HoughMaximum::m_counts
double m_counts
Definition: HoughMaximum.h:63