ATLAS Offline Software
Loading...
Searching...
No Matches
L0MDTSegment.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4
5#ifndef L0MuonMDTTools_L0MDTSEGMENT_H
6#define L0MuonMDTTools_L0MDTSEGMENT_H
7
8namespace L0MDT {
9
17class Segment {
18public:
19 Segment() = default;
20 Segment(float m, float b) : m_m(m), m_b(b) {}
21 ~Segment() = default;
22
23 // Setters
24 void setM(float x) { m_m = x; }
25 void setB(float x) { m_b = x; }
26 void setChi2(float x) { m_chi2 = x; }
27 void setNHits(unsigned int x) { m_nHits = x; }
28
29 void setZMin(float x) { m_zMin = x; }
30 void setZMax(float x) { m_zMax = x; }
31 void setZRef(float x) { m_zRef = x; }
32 void setRRef(float x) { m_rRef = x; }
33
34 // Getters
35 float m() const { return m_m; }
36 float b() const { return m_b; }
37 float chi2() const { return m_chi2; }
38 unsigned int nHits() const { return m_nHits; }
39
40 float zMin() const { return m_zMin; }
41 float zMax() const { return m_zMax; }
42 float zRef() const { return m_zRef; }
43 float rRef() const { return m_rRef; }
44
45private:
46 float m_m{0.f};
47 float m_b{0.f};
48 float m_chi2{0.f};
49 unsigned int m_nHits{0};
50
51 float m_zMin{0.f};
52 float m_zMax{0.f};
53 float m_zRef{0.f};
54 float m_rRef{0.f};
55};
56
57} // end of namespace L0MDT
58
59#endif
#define x
void setM(float x)
float chi2() const
void setRRef(float x)
~Segment()=default
void setZMax(float x)
float rRef() const
float b() const
void setB(float x)
unsigned int nHits() const
void setChi2(float x)
Segment(float m, float b)
float zMin() const
Segment()=default
void setZRef(float x)
float zMax() const
float zRef() const
void setZMin(float x)
void setNHits(unsigned int x)
unsigned int m_nHits
float m() const
Compact Segment Finder algorithm overview.